[llvm] [BOLT] Drop parsing sample PC when processing perf data with LBR (PR #123420)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 15:13:59 PST 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff be21bd9bbf3bc906f9b98ac3de1fc88a4a8ac4b4 9af0e9a9d4d540aa885f311a8d77cdbb43cfabd4 --extensions h,cpp -- bolt/include/bolt/Profile/DataAggregator.h bolt/lib/Profile/DataAggregator.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Profile/DataAggregator.cpp b/bolt/lib/Profile/DataAggregator.cpp
index a5252e18a0..3c92a763ce 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -172,10 +172,9 @@ void DataAggregator::start() {
findPerfExecutable();
if (opts::BasicAggregation) {
- launchPerfProcess("events without LBR",
- MainEventsPPI,
+ launchPerfProcess("events without LBR", MainEventsPPI,
"script -F pid,event,ip",
- /*Wait = */false);
+ /*Wait = */ false);
} else {
std::string Name = "branch events";
std::string PerfScriptArgs = "script -F pid,brstack";
@@ -183,10 +182,8 @@ void DataAggregator::start() {
Name += " with itrace";
PerfScriptArgs += " --itrace=" + opts::ITraceAggregation;
}
- launchPerfProcess(Name,
- MainEventsPPI,
- PerfScriptArgs.c_str(),
- /*Wait = */false);
+ launchPerfProcess(Name, MainEventsPPI, PerfScriptArgs.c_str(),
+ /*Wait = */ false);
}
// Note: we launch script for mem events regardless of the option, as the
``````````
</details>
https://github.com/llvm/llvm-project/pull/123420
More information about the llvm-commits
mailing list