diff options
| author | Athira Rajeev <[email protected]> | 2022-06-10 19:10:49 +0530 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2022-06-29 08:57:42 +1000 |
| commit | 11bbc524390572dfe1bd0375c7e7ab8f9ddf4b34 (patch) | |
| tree | 5ab72a81b0f21219a52748e84fc7abe65f433584 /tools/perf/scripts/python | |
| parent | 2ac05f8f2e4b9068e5bbc0836b35abafd70f02c1 (diff) | |
selftests/powerpc/pmu: Add selftest to check PERF_SAMPLE_REGS_INTR option will not crash on any platforms
With sampling, --intr-regs option is used for capturing
interrupt regs. When --intr-regs option is used, PMU code
uses is_sier_available() function which uses PMU flags in
the code. In environment where platform specific PMU is
not registered, PMU flags is not defined. A fix was added
in kernel to address crash while accessing is_sier_available()
function when pmu is not set. commit f75e7d73bdf7 ("powerpc/perf:
Fix crash with is_sier_available when pmu is not set").
Add perf sampling test to exercise this code and make sure
enabling intr_regs shouldn't crash in any platform. Testcase
uses software event cycles since software event will work even
in cases without PMU.
Signed-off-by: Athira Rajeev <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions