diff options
| author | T.J. Mercier <[email protected]> | 2025-04-28 18:02:54 +0000 |
|---|---|---|
| committer | Martin KaFai Lau <[email protected]> | 2025-04-29 20:21:48 +0000 |
| commit | 38d976c32d85ef12dcd2b8a231196f7049548477 (patch) | |
| tree | aeac99ba00700681fb794007208320acd9dcdb8b /tools/lib/bpf/linker.c | |
| parent | libbpf: Add identical pointer detection to btf_dedup_is_equiv() (diff) | |
| download | kernel-38d976c32d85ef12dcd2b8a231196f7049548477.tar.gz kernel-38d976c32d85ef12dcd2b8a231196f7049548477.zip | |
selftests/bpf: Fix kmem_cache iterator draining
The closing parentheses around the read syscall is misplaced, causing
single byte reads from the iterator instead of buf sized reads. While
the end result is the same, many more read calls than necessary are
performed.
$ tools/testing/selftests/bpf/vmtest.sh "./test_progs -t kmem_cache_iter"
145/1 kmem_cache_iter/check_task_struct:OK
145/2 kmem_cache_iter/check_slabinfo:OK
145/3 kmem_cache_iter/open_coded_iter:OK
145 kmem_cache_iter:OK
Summary: 1/3 PASSED, 0 SKIPPED, 0 FAILED
Fixes: a496d0cdc84d ("selftests/bpf: Add a test for kmem_cache_iter")
Signed-off-by: T.J. Mercier <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Acked-by: Song Liu <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'tools/lib/bpf/linker.c')
0 files changed, 0 insertions, 0 deletions
