]> Gentwo Git Trees - linux/.git/commit
perf test: Extend branch stack sampling test for Arm64 BRBE
authorJames Clark <james.clark@linaro.org>
Wed, 13 Aug 2025 13:38:51 +0000 (14:38 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 1 Oct 2025 18:31:49 +0000 (15:31 -0300)
commit9f0fa213790e3633d37e981386da99149573135b
tree7731bde94ae25719c245a3e6423661b6e17ebeea
parent11e59335b0d1c4bc259ee6f0533e04c4b3a9f1dd
perf test: Extend branch stack sampling test for Arm64 BRBE

BRBE emits IRQ and ERET branches for branching and returning from
trapped instructions. Add a test that loops on a trapped instruction
(MRS - Read special register) for this.

Extend the expected 'any_call' branches to include FAULT_DATA and
FAULT_INST as these are emitted by BRBE.

Reviewed-by: Ian Rogers <irogers@google.com>
Co-developed-by: German Gomez <german.gomez@arm.com>
Signed-off-by: German Gomez <german.gomez@arm.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Cc: Adam Young <admiyo@os.amperecomputing.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/builtin-test.c
tools/perf/tests/shell/test_brstack.sh
tools/perf/tests/tests.h
tools/perf/tests/workloads/Build
tools/perf/tests/workloads/traploop.c [new file with mode: 0644]