diff options
author | Alexei Starovoitov <[email protected]> | 2023-09-11 12:41:37 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-09-11 12:41:37 -0700 |
commit | 9458964a6da621873a92f7cf03242c020799ecd3 (patch) | |
tree | 7a64861ed83752ac413a6fa9e14969ee728442ff /tools/perf/scripts/python/libxed.py | |
parent | 7182e56411b9a8b76797ed7b6095fc84be76dfb0 (diff) | |
parent | f0a42ab5890f749626b35f9fddd8d0704fc89524 (diff) |
Merge branch 'fix-the-unmatched-unit_size-of-bpf_mem_cache'
Hou Tao says:
====================
Fix the unmatched unit_size of bpf_mem_cache
From: Hou Tao <[email protected]>
Hi,
The patchset aims to fix the reported warning [0] when the unit_size of
bpf_mem_cache is mismatched with the object size of underly slab-cache.
Patch #1 fixes the warning by adjusting size_index according to the
value of KMALLOC_MIN_SIZE, so bpf_mem_cache with unit_size which is
smaller than KMALLOC_MIN_SIZE or is not aligned with KMALLOC_MIN_SIZE
will be redirected to bpf_mem_cache with bigger unit_size. Patch #2
doesn't do prefill for these redirected bpf_mem_cache to save memory.
Patch #3 adds further error check in bpf_mem_alloc_init() to ensure the
unit_size and object_size are always matched and to prevent potential
issues due to the mismatch.
Please see individual patches for more details. And comments are always
welcome.
[0]: https://lore.kernel.org/bpf/[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