[llvm] [llvm-profgen] Add support for Linux kenrel profile (PR #92831)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 11:28:45 PDT 2024


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 7ecdf620330d8e044a48b6f59f8eddd2f88f01d4 15c884bd0f2773068ba1cdc01b02f64af1944df1 -- llvm/tools/llvm-profgen/PerfReader.cpp llvm/tools/llvm-profgen/PerfReader.h llvm/tools/llvm-profgen/ProfiledBinary.cpp llvm/tools/llvm-profgen/ProfiledBinary.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/tools/llvm-profgen/PerfReader.cpp b/llvm/tools/llvm-profgen/PerfReader.cpp
index 87abd1e3f7..dd211e9b26 100644
--- a/llvm/tools/llvm-profgen/PerfReader.cpp
+++ b/llvm/tools/llvm-profgen/PerfReader.cpp
@@ -1244,7 +1244,8 @@ void PerfScriptReader::parsePerfTraces() {
   // Parse perf traces and do aggregation.
   parseAndAggregateTrace();
   if (Binary->isKernel() && !Binary->getIsLoadedByMMap()) {
-    exitWithError("Kernel is requested, but no kernel is found in mmap events.");
+    exitWithError(
+        "Kernel is requested, but no kernel is found in mmap events.");
   }
 
   emitWarningSummary(NumLeafExternalFrame, NumTotalSample,

``````````

</details>


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


More information about the llvm-commits mailing list