aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2023-09-08 21:39:22 +0800
committerAlexei Starovoitov <[email protected]>2023-09-11 12:41:37 -0700
commitc930472552022bd09aab3cd946ba3f243070d5c7 (patch)
treee38f453dca80f3838bd511a479362857907e1149 /tools/perf/scripts/python/libxed.py
parentb1d53958b69312e43c118d4093d8f93d3f6f80af (diff)
bpf: Ensure unit_size is matched with slab cache object size
Add extra check in bpf_mem_alloc_init() to ensure the unit_size of bpf_mem_cache is matched with the object_size of underlying slab cache. If these two sizes are unmatched, print a warning once and return -EINVAL in bpf_mem_alloc_init(), so the mismatch can be found early and the potential issue can be prevented. Suggested-by: Alexei Starovoitov <[email protected]> Signed-off-by: Hou Tao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions