]> git.baikalelectronics.ru Git - kernel.git/commit
perf/hw_breakpoint: Add KUnit test for constraints accounting
authorMarco Elver <elver@google.com>
Mon, 29 Aug 2022 12:47:06 +0000 (14:47 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 30 Aug 2022 08:56:20 +0000 (10:56 +0200)
commitf4f9f97df6d3d272cd79f78db1e9ba324eeca700
tree8bfb8217cd894939bed900141bc2bb37c6663eeb
parent9a841961be9da345c8b2ad24634f5c78f1446842
perf/hw_breakpoint: Add KUnit test for constraints accounting

Add KUnit test for hw_breakpoint constraints accounting, with various
interesting mixes of breakpoint targets (some care was taken to catch
interesting corner cases via bug-injection).

The test cannot be built as a module because it requires access to
hw_breakpoint_slots(), which is not inlinable or exported on all
architectures.

Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Acked-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20220829124719.675715-2-elver@google.com
kernel/events/Makefile
kernel/events/hw_breakpoint_test.c [new file with mode: 0644]
lib/Kconfig.debug