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

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 15:23:17 PST 2025


================
@@ -180,22 +187,29 @@ void DataAggregator::start() {
 
   findPerfExecutable();
 
-  if (opts::BasicAggregation) {
-    launchPerfProcess("events without LBR",
-                      MainEventsPPI,
+  if (opts::ArmSPE) {
+    if (!opts::BasicAggregation) {
+      errs() << "PERF2BOLT-ERROR: Arm SPE mode is combined only with "
+                "BasicAggregation.\n";
+      exit(1);
+    }
+    launchPerfProcess("branch events with SPE", MainEventsPPI,
+                      "script -F pid,event,ip,addr --itrace=i1i",
----------------
maksfb wrote:

What's the expected output of this perf script? On my system `ip` is always 0.

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


More information about the llvm-commits mailing list