selftests/powerpc/pmu: Add support for perf sampling tests
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Thu, 27 Jan 2022 07:19:54 +0000 (12:49 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 1 Mar 2022 12:37:49 +0000 (23:37 +1100)
commitc315669e2fbd71bb9387066f60f0d91b0ceb28f3
treeb514170841045565ffe93c3622fe5eef3cfad45f
parentf961e20f15ed35e9ca154a099897d600b78b0311
selftests/powerpc/pmu: Add support for perf sampling tests

Add support functions for enabling perf sampling test in a new folder
"sampling_tests" under "selftests/powerpc/pmu". This includes support
functions for allocating and processing the mmap buffer. These functions
are added/defined in "sampling_tests/misc.*" files.

Also updates the corresponding Makefiles in "selftests/powerpc" and
"sampling_tests" folder.

Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
[mpe: Drop unneeded bits from the Makefile]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220127072012.662451-3-kjain@linux.ibm.com
tools/testing/selftests/powerpc/pmu/Makefile
tools/testing/selftests/powerpc/pmu/sampling_tests/Makefile [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/sampling_tests/misc.c [new file with mode: 0644]
tools/testing/selftests/powerpc/pmu/sampling_tests/misc.h [new file with mode: 0644]