aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tracing_struct.c
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2023-02-16 02:48:21 +0000
committerAlexei Starovoitov <[email protected]>2023-02-22 20:59:32 +0000
commit5d5de3a431d87ac51d43da8d796891d014975ab7 (patch)
treed9c0e756cf0fc202271c07a39b9ea57030da69db /tools/testing/selftests/bpf/prog_tests/tracing_struct.c
parentbpf: Wrap register invalidation with a helper (diff)
downloadkernel-5d5de3a431d87ac51d43da8d796891d014975ab7.tar.gz
kernel-5d5de3a431d87ac51d43da8d796891d014975ab7.zip
bpf: Only allocate one bpf_mem_cache for bpf_cpumask_ma
The size of bpf_cpumask is fixed, so there is no need to allocate many bpf_mem_caches for bpf_cpumask_ma, just one bpf_mem_cache is enough. Also add comments for bpf_mem_alloc_init() in bpf_mem_alloc.h to prevent future miuse. Signed-off-by: Hou Tao <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions