diff options
author | Andrea Righi <[email protected]> | 2024-04-25 16:06:27 +0200 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-04-25 11:46:04 -0700 |
commit | 638a485c4996be1d38303cf25ea8d12dfd16011b (patch) | |
tree | e37af36defb714e5389207c788c35f4ae534f837 /net/ipv4/tcp_input.c | |
parent | 8ec3bf5c31d2a59c320ff59397f6ac362341d9d7 (diff) |
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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/lkml/CAEf4BzaR4zqUpDmj44KNLdpJ=Tpa97GrvzuzVNO5nM6b7oWd1w@mail.gmail.com
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions