[llvm] [BOLT][AArch64] Introduce SPE mode in BasicAggregation (PR #120741)

Vladislav Khmelevsky via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 20 08:49:03 PST 2024


================
@@ -0,0 +1,14 @@
+## Check that Arm SPE mode is available on AArch64 with BasicAggregation.
+
+REQUIRES: system-linux,perf,target=aarch64{{.*}}
+
+RUN: %clang %cflags %p/../../Inputs/asm_foo.s %p/../../Inputs/asm_main.c -o %t.exe
+RUN: touch %t.empty.perf.data
+RUN: perf2bolt -p %t.empty.perf.data -o %t.perf.boltdata --nl --spe --pa %t.exe 2>&1 | FileCheck %s --check-prefix=CHECK-SPE-NO-LBR
+
+CHECK-SPE-NO-LBR: PERF2BOLT: Starting data aggregation job
+
+RUN: perf record -e cycles -q -o %t.perf.data -- %t.exe
----------------
yota9 wrote:

Maybe it would be better to add static perf record rather then launching perf every time for this test...

https://github.com/llvm/llvm-project/pull/120741


More information about the llvm-commits mailing list