selftests/powerpc/pmu: Add support for branch sampling in get_intr_regs function
authorKajol Jain <kjain@linux.ibm.com>
Fri, 10 Jun 2022 13:40:42 +0000 (19:10 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 28 Jun 2022 13:57:51 +0000 (23:57 +1000)
commit61d89900315aa25f6da0c1bc800ce295d74d69f1
treeed09bf9ff46e715fc496fc08a2a471c14108f850
parent50d9c30a685c14e41e44d48a08a08703c680d861
selftests/powerpc/pmu: Add support for branch sampling in get_intr_regs function

Add support for sample type as PERF_SAMPLE_BRANCH_STACK in sampling
tests. This change is a precursor/helper for sampling testcases, that
test branck stack feature in perf interface.

Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220610134113.62991-5-atrajeev@linux.vnet.ibm.com
tools/testing/selftests/powerpc/pmu/sampling_tests/misc.c