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-08 Thread Marco Elver
On Fri, 8 Dec 2023 at 02:08, Kyle Huey wrote: > > 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 Yonghong Song
On 12/7/23 5:08 PM, Kyle Huey wrote: 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: The test sets a hardware breakpoint and uses a bpf

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: > > > > > > > > The test sets a hardware breakpoint and uses a bpf

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 > > > side effects of a perf event sample,

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

2023-12-07 Thread Marco Elver
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 > > side effects of a perf event sample, including I/O availability signals, > > SIGTRAPs, and decrementing

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

2023-12-07 Thread Andrii Nakryiko
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 > side effects of a perf event sample, including I/O availability signals, > SIGTRAPs, and decrementing the event counter limit, if the ip matches the > expected value.

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

2023-12-07 Thread Kyle Huey
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, SIGTRAPs, and decrementing the event counter limit, if the ip matches the expected value. Then the function with the breakpoint is executed multiple