[PATCH v3 3/3] selftests/perf_events: Test FASYNC with watermark wakeups

2024-04-13 Thread Kyle Huey
The test uses PERF_RECORD_SWITCH records to fill the ring buffer and trigger the watermark wakeup, which in turn should trigger an IO signal. Signed-off-by: Kyle Huey --- .../testing/selftests/perf_events/.gitignore | 1 + tools/testing/selftests/perf_events/Makefile | 2 +- .../selftests

[PATCH v6 7/7] selftest/bpf: Test a perf bpf program that suppresses side effects.

2024-04-11 Thread Kyle Huey
times to test that all effects behave as expected. Signed-off-by: Kyle Huey Acked-by: Song Liu Acked-by: Jiri Olsa Acked-by: Andrii Nakryiko --- .../selftests/bpf/prog_tests/perf_skip.c | 137 ++ .../selftests/bpf/progs/test_perf_skip.c | 15 ++ 2 files changed, 152

Re: [PATCH][next] selftests/perf_events: Fix spelling mistake "sycnhronize" -> "synchronize"

2024-03-27 Thread Kyle Huey
"failed to sycnhronize with child errno=%d > status=%x\n", > + "failed to synchronize with child errno=%d > status=%x\n", > errno, > child_status); > goto cleanup; > -- > 2.39.2 > Nice catch. Acked-by: Kyle Huey - Kyle

[PATCH v2 2/2] selftests/perf_events: Test FASYNC with watermark wakeups.

2024-03-04 Thread Kyle Huey
The test uses PERF_RECORD_SWITCH records to fill the ring buffer and trigger the watermark wakeup, which in turn should trigger an IO signal. Signed-off-by: Kyle Huey --- .../testing/selftests/perf_events/.gitignore | 1 + tools/testing/selftests/perf_events/Makefile | 2 +- .../selftests

[RESEND PATCH v5 4/4] selftest/bpf: Test a perf bpf program that suppresses side effects.

2024-02-14 Thread Kyle Huey
times to test that all effects behave as expected. Signed-off-by: Kyle Huey Acked-by: Song Liu Acked-by: Jiri Olsa --- .../selftests/bpf/prog_tests/perf_skip.c | 137 ++ .../selftests/bpf/progs/test_perf_skip.c | 15 ++ 2 files changed, 152 insertions(+) create mode

[PATCH v5 4/4] selftest/bpf: Test a perf bpf program that suppresses side effects.

2024-01-21 Thread Kyle Huey
times to test that all effects behave as expected. Signed-off-by: Kyle Huey Acked-by: Song Liu Acked-by: Jiri Olsa --- .../selftests/bpf/prog_tests/perf_skip.c | 137 ++ .../selftests/bpf/progs/test_perf_skip.c | 15 ++ 2 files changed, 152 insertions(+) create mode

[PATCH v4 4/4] selftest/bpf: Test a perf bpf program that suppresses side effects.

2024-01-18 Thread Kyle Huey
times to test that all effects behave as expected. Signed-off-by: Kyle Huey --- .../selftests/bpf/prog_tests/perf_skip.c | 136 ++ .../selftests/bpf/progs/test_perf_skip.c | 15 ++ 2 files changed, 151 insertions(+) create mode 100644 tools/testing/selftests/bpf

Re: [PATCH v3 4/4] selftest/bpf: Test a perf bpf program that suppresses side effects.

2024-01-18 Thread Kyle Huey
On Tue, Jan 2, 2024 at 2:49 PM Song Liu wrote: > > On Sun, Dec 10, 2023 at 8:56 PM Kyle Huey wrote: > > > > The test sets a hardware breakpoint and uses a bpf program to suppress the > > side effects of a perf event sample, including I/O availability signals, > &

[PATCH v3 4/4] selftest/bpf: Test a perf bpf program that suppresses side effects.

2023-12-10 Thread Kyle Huey
times to test that all effects behave as expected. Signed-off-by: Kyle Huey --- .../selftests/bpf/prog_tests/perf_skip.c | 140 ++ .../selftests/bpf/progs/test_perf_skip.c | 15 ++ 2 files changed, 155 insertions(+) create mode 100644 tools/testing/selftests/bpf

Re: [PATCH v2 3/3] selftest/bpf: Test a perf bpf program that suppresses side effects.

2023-12-08 Thread Kyle Huey
On Fri, Dec 8, 2023 at 12:07 AM Marco Elver wrote: > I think that's easy to fix by just defining TRAP_PERF yourself Yeah that would work here. - Kyle

Re: [PATCH v2 3/3] selftest/bpf: Test a perf bpf program that suppresses side effects.

2023-12-07 Thread Kyle Huey
On Thu, Dec 7, 2023 at 2:56 PM Kyle Huey wrote: > > On Thu, Dec 7, 2023 at 11:20 AM Marco Elver wrote: > > > > On Thu, 7 Dec 2023 at 20:12, Andrii Nakryiko > > wrote: > > > > > > On Thu, Dec 7, 2023 at 8:35 AM Kyle Huey wrote: > > > > >

Re: [PATCH v2 3/3] selftest/bpf: Test a perf bpf program that suppresses side effects.

2023-12-07 Thread Kyle Huey
On Thu, Dec 7, 2023 at 11:20 AM Marco Elver wrote: > > On Thu, 7 Dec 2023 at 20:12, Andrii Nakryiko > wrote: > > > > On Thu, Dec 7, 2023 at 8:35 AM Kyle Huey wrote: > > > > > > The test sets a hardware breakpoint and uses a bpf program to suppress the &g

[PATCH v2 3/3] selftest/bpf: Test a perf bpf program that suppresses side effects.

2023-12-07 Thread Kyle Huey
times to test that all effects behave as expected. Signed-off-by: Kyle Huey --- .../selftests/bpf/prog_tests/perf_skip.c | 145 ++ .../selftests/bpf/progs/test_perf_skip.c | 15 ++ 2 files changed, 160 insertions(+) create mode 100644 tools/testing/selftests/bpf

Re: [PATCH 2/2] selftest/bpf: Test returning zero from a perf bpf program suppresses SIGIO.

2023-12-05 Thread Kyle Huey
On Mon, Dec 4, 2023 at 2:14 PM Andrii Nakryiko wrote: > > On Mon, Dec 4, 2023 at 12:14 PM Kyle Huey wrote: > > > > The test sets a hardware breakpoint and uses a bpf program to suppress the > > I/O availability signal if the ip matches the expected value. > >

Re: [PATCH 2/2] selftest/bpf: Test returning zero from a perf bpf program suppresses SIGIO.

2023-12-05 Thread Kyle Huey
On Tue, Dec 5, 2023 at 8:54 AM Yonghong Song wrote: > > > On 12/4/23 3:14 PM, Kyle Huey wrote: > > The test sets a hardware breakpoint and uses a bpf program to suppress the > > I/O availability signal if the ip matches the expected value. > > &

[PATCH 2/2] selftest/bpf: Test returning zero from a perf bpf program suppresses SIGIO.

2023-12-04 Thread Kyle Huey
The test sets a hardware breakpoint and uses a bpf program to suppress the I/O availability signal if the ip matches the expected value. Signed-off-by: Kyle Huey --- .../selftests/bpf/prog_tests/perf_skip.c | 95 +++ .../selftests/bpf/progs/test_perf_skip.c | 23