diff options
author | Andrea Righi <andrea.righi@canonical.com> | 2024-04-25 17:06:27 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-04-25 21:46:04 +0300 |
commit | 638a485c4996be1d38303cf25ea8d12dfd16011b (patch) | |
tree | e37af36defb714e5389207c788c35f4ae534f837 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 8ec3bf5c31d2a59c320ff59397f6ac362341d9d7 (diff) | |
download | linux-638a485c4996be1d38303cf25ea8d12dfd16011b.tar.xz |
selftests/bpf: Add ring_buffer__consume_n test.
Add a testcase for the ring_buffer__consume_n() API.
The test produces multiple samples in a ring buffer, using a
sys_getpid() fentry prog, and consumes them from user-space in batches,
rather than consuming all of them greedily, like ring_buffer__consume()
does.
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/lkml/CAEf4BzaR4zqUpDmj44KNLdpJ=Tpa97GrvzuzVNO5nM6b7oWd1w@mail.gmail.com
Link: https://lore.kernel.org/bpf/20240425140627.112728-1-andrea.righi@canonical.com
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions