[llvm] [Perf2bolt] Support multi-PID filtering for multiple perf inputs (PR #215541)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 05:30:54 PDT 2026


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 origin/main HEAD --extensions cpp -- bolt/lib/Profile/DataAggregator.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</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 499821a36..b99557d22 100644
--- a/bolt/lib/Profile/DataAggregator.cpp
+++ b/bolt/lib/Profile/DataAggregator.cpp
@@ -85,11 +85,10 @@ static cl::opt<bool> ParseMemProfile(
     cl::init(true), cl::cat(AggregatorCategory));
 
 static cl::list<unsigned long long>
-FilterPID("pid",
-  cl::desc("only use samples from process with specified PID(s) (comma-separated)"),
-  cl::CommaSeparated,
-  cl::ZeroOrMore,
-  cl::cat(AggregatorCategory));
+    FilterPID("pid",
+              cl::desc("only use samples from process with specified PID(s) "
+                       "(comma-separated)"),
+              cl::CommaSeparated, cl::ZeroOrMore, cl::cat(AggregatorCategory));
 
 static cl::opt<bool> ImputeTraceFallthrough(
     "impute-trace-fall-through",

``````````

</details>


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


More information about the llvm-commits mailing list