selftests/perf_events: Add a SIGTRAP stress test with disables
authorMarco Elver <elver@google.com>
Tue, 11 Oct 2022 12:45:35 +0000 (14:45 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 17 Oct 2022 14:32:06 +0000 (16:32 +0200)
commit23488ec66867f7e673b694623a951fb583e464a7
tree84f49e4e6e9fc095219cc3ea6686f58fd2d70fcf
parentca6c21327c6af02b7eec31ce4b9a740a18c6c13f
selftests/perf_events: Add a SIGTRAP stress test with disables

Add a SIGTRAP stress test that exercises repeatedly enabling/disabling
an event while it concurrently keeps firing.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/all/Y0E3uG7jOywn7vy3@elver.google.com/
tools/testing/selftests/perf_events/sigtrap_threads.c