summaryrefslogtreecommitdiffstats
path: root/kernel/power/autosleep.c
diff options
context:
space:
mode:
authorAnton Protopopov <aspsk@isovalent.com>2023-07-06 15:39:29 +0200
committerAlexei Starovoitov <ast@kernel.org>2023-07-06 21:42:25 +0200
commit803370d3d37579e080e8c59f2360a072d0e45aff (patch)
tree1e8f0de6a26079d782006f042f0f44b1bb97002a /kernel/power/autosleep.c
parentbpf: add percpu stats for bpf_map elements insertions/deletions (diff)
downloadlinux-803370d3d37579e080e8c59f2360a072d0e45aff.tar.xz
linux-803370d3d37579e080e8c59f2360a072d0e45aff.zip
bpf: add a new kfunc to return current bpf_map elements count
A bpf_map_sum_elem_count kfunc was added to simplify getting the sum of the map per-cpu element counters. If a map doesn't implement the counter, then the function will always return 0. Signed-off-by: Anton Protopopov <aspsk@isovalent.com> Link: https://lore.kernel.org/r/20230706133932.45883-3-aspsk@isovalent.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/power/autosleep.c')
0 files changed, 0 insertions, 0 deletions