[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-04-10 Thread Ádám Kallai via llvm-branch-commits
https://github.com/kaadam updated https://github.com/llvm/llvm-project/pull/129231 From 93c958c3f016092c340e897aeabbb470e58b9dbb Mon Sep 17 00:00:00 2001 From: Adam Kallai Date: Wed, 19 Feb 2025 17:00:47 +0100 Subject: [PATCH 1/2] Add initial support for SPE brstack Perf will be able to report

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-04-10 Thread Ádám Kallai via llvm-branch-commits
@@ -113,6 +153,37 @@ TEST_F(PerfSpeEventsTestHelper, SpeBranches) { EXPECT_TRUE(checkEvents(1234, 10, {"branches-spe:"})); } +TEST_F(PerfSpeEventsTestHelper, SpeBranchesWithBrstack) { + // Check perf input with SPE branch events as brstack format. + // Example collection c

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-04-10 Thread Ádám Kallai via llvm-branch-commits
@@ -11,4 +11,4 @@ CHECK-SPE-NO-LBR: PERF2BOLT: Starting data aggregation job RUN: perf record -e cycles -q -o %t.perf.data -- %t.exe RUN: not perf2bolt -p %t.perf.data -o %t.perf.boltdata --spe %t.exe 2>&1 | FileCheck %s --check-prefix=CHECK-SPE-LBR -CHECK-SPE-LBR: PERF2BOLT-

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-04-10 Thread Ádám Kallai via llvm-branch-commits
https://github.com/kaadam updated https://github.com/llvm/llvm-project/pull/129231 From 93c958c3f016092c340e897aeabbb470e58b9dbb Mon Sep 17 00:00:00 2001 From: Adam Kallai Date: Wed, 19 Feb 2025 17:00:47 +0100 Subject: [PATCH 1/3] Add initial support for SPE brstack Perf will be able to report

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-04-10 Thread Ádám Kallai via llvm-branch-commits
@@ -88,6 +89,45 @@ struct PerfSpeEventsTestHelper : public testing::Test { return SampleSize == DA.BasicSamples.size(); } + + /// Compare LBREntries + bool checkLBREntry(const LBREntry &Lhs, const LBREntry &Rhs) { +return Lhs.From == Rhs.From && Lhs.To == Rhs.To &&

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-04-10 Thread Ádám Kallai via llvm-branch-commits
@@ -180,13 +178,16 @@ void DataAggregator::start() { if (opts::ArmSPE) { if (!opts::BasicAggregation) { - errs() << "PERF2BOLT-ERROR: Arm SPE mode is combined only with " -"BasicAggregation.\n"; - exit(1); + // pidfrom_ip to_ip

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-04-15 Thread Ádám Kallai via llvm-branch-commits
https://github.com/kaadam updated https://github.com/llvm/llvm-project/pull/129231 From 93c958c3f016092c340e897aeabbb470e58b9dbb Mon Sep 17 00:00:00 2001 From: Adam Kallai Date: Wed, 19 Feb 2025 17:00:47 +0100 Subject: [PATCH 1/4] Add initial support for SPE brstack Perf will be able to report

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Ádám Kallai via llvm-branch-commits
@@ -180,13 +178,16 @@ void DataAggregator::start() { if (opts::ArmSPE) { if (!opts::BasicAggregation) { - errs() << "PERF2BOLT-ERROR: Arm SPE mode is combined only with " -"BasicAggregation.\n"; - exit(1); + // pidfrom_ip to_ip

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Ádám Kallai via llvm-branch-commits
https://github.com/kaadam edited https://github.com/llvm/llvm-project/pull/129231 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Ádám Kallai via llvm-branch-commits
@@ -113,6 +153,37 @@ TEST_F(PerfSpeEventsTestHelper, SpeBranches) { EXPECT_TRUE(checkEvents(1234, 10, {"branches-spe:"})); } +TEST_F(PerfSpeEventsTestHelper, SpeBranchesWithBrstack) { + // Check perf input with SPE branch events as brstack format. + // Example collection c

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Ádám Kallai via llvm-branch-commits
@@ -88,6 +89,45 @@ struct PerfSpeEventsTestHelper : public testing::Test { return SampleSize == DA.BasicSamples.size(); } + + /// Compare LBREntries + bool checkLBREntry(const LBREntry &Lhs, const LBREntry &Rhs) { +return Lhs.From == Rhs.From && Lhs.To == Rhs.To &&

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-02-28 Thread Ádám Kallai via llvm-branch-commits
https://github.com/kaadam created https://github.com/llvm/llvm-project/pull/129231 Perf will be able to report SPE branch events as similar as it does with LBR brstack. Therefore we can utilize the existing LBR parsing process for SPE as well. Example of the SPE brstack input format: ```bash p