Skip to content

Conversation

paschalis-mpeis
Copy link
Member

Lit recently started failing on some machines when using a subshell. The test used a subshell to handle kernels where SPE's brstack option is unavailable (<6.14), but it appears to work without it now.

Tested with perf 6.8 and 6.17.

Lit recently started failing on some machines when using a subshell.
The test used a subshell to handle kernels where SPE's brstack option is
unavailable (<6.14), but it appears to work without it now.

Tested with perf 6.8 and 6.17.
@paschalis-mpeis paschalis-mpeis marked this pull request as ready for review October 7, 2025 16:06
@llvmbot llvmbot added the BOLT label Oct 7, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 7, 2025

@llvm/pr-subscribers-bolt

Author: Paschalis Mpeis (paschalis-mpeis)

Changes

Lit recently started failing on some machines when using a subshell. The test used a subshell to handle kernels where SPE's brstack option is unavailable (<6.14), but it appears to work without it now.

Tested with perf 6.8 and 6.17.


Full diff: https://github.com/llvm/llvm-project/pull/162312.diff

1 Files Affected:

  • (modified) bolt/test/perf2bolt/AArch64/perf2bolt-spe.test (+1-2)
diff --git a/bolt/test/perf2bolt/AArch64/perf2bolt-spe.test b/bolt/test/perf2bolt/AArch64/perf2bolt-spe.test
index 91f5c857fbab0..1f44f7510a9fb 100644
--- a/bolt/test/perf2bolt/AArch64/perf2bolt-spe.test
+++ b/bolt/test/perf2bolt/AArch64/perf2bolt-spe.test
@@ -6,7 +6,6 @@ RUN: %clang %cflags %p/../../Inputs/asm_foo.s %p/../../Inputs/asm_main.c -o %t.e
 
 RUN: perf record -e cycles -q -o %t.perf.data -- %t.exe 2> /dev/null
 
-RUN: (perf2bolt -p %t.perf.data -o %t.perf.boltdata --spe %t.exe 2> /dev/null; exit 0) | FileCheck %s --check-prefix=CHECK-SPE-LBR
+RUN: perf2bolt -p %t.perf.data -o %t.perf.boltdata --spe %t.exe | FileCheck %s --check-prefix=CHECK-SPE-LBR
 
 CHECK-SPE-LBR: PERF2BOLT: parse SPE branch events in LBR-format
-

@paschalis-mpeis
Copy link
Member Author

(also want to add @kaadam to the reviewers on this patch, but can't just yet).

@kaadam
Copy link
Contributor

kaadam commented Oct 8, 2025

Paschalis, thanks for fixing this test, it works. Informal LGTM from me.

@paschalis-mpeis
Copy link
Member Author

Great, thanks a lot @kaadam. Could someone stamp this please?

@paschalis-mpeis paschalis-mpeis merged commit 0d6c5e0 into main Oct 8, 2025
13 checks passed
@paschalis-mpeis paschalis-mpeis deleted the users/paschalis-mpeis/perf2bolt-spe-fix branch October 8, 2025 16:24
svkeerthy pushed a commit that referenced this pull request Oct 9, 2025
Lit recently started failing on some machines when using a subshell. The
test used a subshell to handle kernels where SPE's brstack option is
unavailable (<6.14), but it appears to work without it now.

Tested with perf 6.8 and 6.17.
clingfei pushed a commit to clingfei/llvm-project that referenced this pull request Oct 10, 2025
Lit recently started failing on some machines when using a subshell. The
test used a subshell to handle kernels where SPE's brstack option is
unavailable (<6.14), but it appears to work without it now.

Tested with perf 6.8 and 6.17.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants