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

2024-01-19 Thread Song Liu
On Thu, Jan 18, 2024 at 4:14 PM Kyle Huey wrote: > Acked-by: Song Liu with a couple nitpicks below. [...] > +int sigio_count, sigtrap_count; > + > +static void handle_sigio(int sig __always_unused) > +{ > + ++sigio_count; > +} > + > +static void handle_sigtrap(int signum __always_unused,

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

2024-01-18 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 ti