aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorHou Tao <[email protected]>2023-01-18 16:46:30 +0800
committerAlexei Starovoitov <[email protected]>2023-01-18 18:36:26 -0800
commit36024d023d139a0c8b552dc3b7f4dc7b4c139e8f (patch)
treed9b467655efdc282615f11275f5783dea4561c86 /tools/perf/scripts/python/Perf-Trace-Util/lib
parentb9fb10d131b8c84af9bb14e2078d5c63600c7dea (diff)
bpf: Fix off-by-one error in bpf_mem_cache_idx()
According to the definition of sizes[NUM_CACHES], when the size passed to bpf_mem_cache_size() is 256, it should return 6 instead 7. Fixes: 7c8199e24fa0 ("bpf: Introduce any context BPF specific memory allocator.") Signed-off-by: Hou Tao <[email protected]> Acked-by: Yonghong Song <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions