summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2021-10-21 13:41:32 +0200
committerAndrii Nakryiko <andrii@kernel.org>2021-10-21 15:59:31 -0700
commit99d099757ab487e0d317c69541b47aaae0b6c431 (patch)
treea0f3e9cfb7a844854a681fe0bfb77eb5128b1677 /tools/testing/selftests/bpf/progs
parentaa274f98b269b2babf37b6308f8a1a009ca4fc41 (diff)
selftests/bpf: Use nanosleep tracepoint in perf buffer test
The perf buffer tests triggers trace with nanosleep syscall, but monitors all syscalls, which results in lot of data in the buffer and makes it harder to debug. Let's lower the trace traffic and monitor just nanosleep syscall. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: John Fastabend <john.fastabend@gmail.com> Link: https://lore.kernel.org/bpf/20211021114132.8196-4-jolsa@kernel.org
Diffstat (limited to 'tools/testing/selftests/bpf/progs')
-rw-r--r--tools/testing/selftests/bpf/progs/test_perf_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/progs/test_perf_buffer.c b/tools/testing/selftests/bpf/progs/test_perf_buffer.c
index d37ce29fd393..a08874c5bdf2 100644
--- a/tools/testing/selftests/bpf/progs/test_perf_buffer.c
+++ b/tools/testing/selftests/bpf/progs/test_perf_buffer.c
@@ -12,7 +12,7 @@ struct {
__type(value, int);
} perf_buf_map SEC(".maps");
-SEC("tp/raw_syscalls/sys_enter")
+SEC("tp/syscalls/sys_enter_nanosleep")
int handle_sys_enter(void *ctx)
{
int cpu = bpf_get_smp_processor_id();