Skip to content

Commit b23afe4

Browse files
Jiri OlsaNobody
authored andcommitted
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>
1 parent 30a6891 commit b23afe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/bpf/progs/test_perf_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ struct {
1212
__type(value, int);
1313
} perf_buf_map SEC(".maps");
1414

15-
SEC("tp/raw_syscalls/sys_enter")
15+
SEC("tp/syscalls/sys_enter_nanosleep")
1616
int handle_sys_enter(void *ctx)
1717
{
1818
int cpu = bpf_get_smp_processor_id();

0 commit comments

Comments
 (0)