[llvm] [llvm-exegesis][AArch64] Check for PAC keys before disabling them (PR #138643)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 6 00:19:07 PDT 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 HEAD~1 HEAD --extensions cpp -- llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp b/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
index d1da6f414..734ec5629 100644
--- a/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
@@ -207,14 +207,14 @@ private:
 
     if (isPointerAuth(Opcode)) {
 #if defined(__aarch64__) && defined(__linux__)
-      
-      // Fix for some systems where PAC/PAG keys are present but is 
+
+      // Fix for some systems where PAC/PAG keys are present but is
       // explicitly getting disabled
       unsigned long pac_keys = 0;
       if (prctl(PR_PAC_GET_ENABLED_KEYS, &pac_keys, 0, 0, 0) < 0) {
         return "Failed to get PAC key status";
       }
-      
+
       // Disable all PAC keys. Note that while we expect the measurements to
       // be the same with PAC keys disabled, they could potentially be lower
       // since authentication checks are bypassed.
@@ -226,7 +226,7 @@ private:
                   0, 0) < 0) {
           return "Failed to disable PAC keys";
         }
-      } 
+      }
 #else
       return "Unsupported opcode: isPointerAuth";
 #endif

``````````

</details>


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


More information about the llvm-commits mailing list