Skip to content

Commit 374c1b5

Browse files
committed
Address reviewers 4
1 parent cd58b83 commit 374c1b5

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

bolt/lib/Profile/DataAggregator.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,12 @@ void DataAggregator::start() {
190190
// P/M: whether branch was Predicted or Mispredicted.
191191
// N: optionally appears when the branch was Not-Taken (ie fall-through)
192192
// 12345 0x123/0x456/PN/-/-/8/RET/-
193-
launchPerfProcess("SPE brstack events", MainEventsPPI,
194-
"script -F pid,brstack --itrace=bl",
195-
/*Wait = */ false);
196-
} else if (opts::BasicAggregation) {
193+
opts::ITraceAggregation = "bl";
194+
opts::ParseMemProfile = true;
195+
opts::BasicAggregation = false;
196+
}
197+
198+
if (opts::BasicAggregation) {
197199
launchPerfProcess("events without LBR", MainEventsPPI,
198200
"script -F pid,event,ip",
199201
/*Wait = */ false);
@@ -1524,8 +1526,8 @@ std::error_code DataAggregator::parseBranchEvents() {
15241526
std::string BranchEventTypeStr =
15251527
opts::ArmSPE ? "SPE branch events in LBR-format" : "branch events";
15261528
outs() << "PERF2BOLT: parse " << BranchEventTypeStr << "...\n";
1527-
NamedRegionTimer T("parseBranch", "Parsing " + BranchEventTypeStr,
1528-
TimerGroupName, TimerGroupDesc, opts::TimeAggregator);
1529+
NamedRegionTimer T("parseBranch", "Parsing branch events", TimerGroupName,
1530+
TimerGroupDesc, opts::TimeAggregator);
15291531

15301532
uint64_t NumEntries = 0;
15311533
uint64_t NumSamples = 0;

bolt/test/perf2bolt/AArch64/perf2bolt-spe.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ RUN: perf record -e cycles -q -o %t.perf.data -- %t.exe 2> /dev/null
88

99
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
1010

11-
CHECK-SPE-LBR: PERF2BOLT: spawning perf job to read SPE brstack events
11+
CHECK-SPE-LBR: PERF2BOLT: parse SPE branch events in LBR-format
1212

0 commit comments

Comments
 (0)