diff options
| author | Yosry Ahmed <[email protected]> | 2022-08-24 16:31:15 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-08-25 11:35:37 -0700 |
| commit | a319185be9f5ad13c2a296d448ac52ffe45d194c (patch) | |
| tree | c3a4cd7169243259f429e8784236f602638d7230 /tools/perf/scripts/python | |
| parent | fe0dd9d4b7402c9773fc7a453fa65875abaa24ec (diff) | |
cgroup: bpf: enable bpf programs to integrate with rstat
Enable bpf programs to make use of rstat to collect cgroup hierarchical
stats efficiently:
- Add cgroup_rstat_updated() kfunc, for bpf progs that collect stats.
- Add cgroup_rstat_flush() sleepable kfunc, for bpf progs that read stats.
- Add an empty bpf_rstat_flush() hook that is called during rstat
flushing, for bpf progs that flush stats to attach to. Attaching a bpf
prog to this hook effectively registers it as a flush callback.
Signed-off-by: Yosry Ahmed <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Hao Luo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions