summaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorYosry Ahmed <yosryahmed@google.com>2022-08-24 16:31:15 -0700
committerAlexei Starovoitov <ast@kernel.org>2022-08-25 11:35:37 -0700
commita319185be9f5ad13c2a296d448ac52ffe45d194c (patch)
treec3a4cd7169243259f429e8784236f602638d7230 /arch/arc
parentfe0dd9d4b7402c9773fc7a453fa65875abaa24ec (diff)
downloadlinux-a319185be9f5ad13c2a296d448ac52ffe45d194c.tar.bz2
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 <yosryahmed@google.com> Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Hao Luo <haoluo@google.com> Link: https://lore.kernel.org/r/20220824233117.1312810-4-haoluo@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'arch/arc')
0 files changed, 0 insertions, 0 deletions