[PATCH 0/1] perf test: Add branch stack sampling tests for ARM64

From: German Gomez
Date: Tue Jan 25 2022 - 11:32:49 EST


Adds testing of branch stack sampling on ARM64. Branch stack sampling is
supported by the Branch Record Buffer Extension (BRBE). In order to run
the tests, the Kernel must have BRBE support enabled.

At the time of writing, BRBE support in the Kernel is provided by the
patches in RFC [1]. If BRBE support is not detected, the tests will be
skipped.

Information about BRBE can be found in [2].

[1]: https://lore.kernel.org/all/1642998653-21377-1-git-send-email-anshuman.khandual@xxxxxxx/
[2]: https://developer.arm.com/documentation/ddi0608/latest

German Gomez (1):
perf test: Add branch stack sampling tests for ARM64

.../perf/tests/shell/test_arm_brbe_kernel.sh | 42 ++++++++++
.../tests/shell/test_arm_brbe_userspace.sh | 80 +++++++++++++++++++
2 files changed, 122 insertions(+)
create mode 100755 tools/perf/tests/shell/test_arm_brbe_kernel.sh
create mode 100755 tools/perf/tests/shell/test_arm_brbe_userspace.sh

--
2.25.1