Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[llvm-exegesis][AArch64] Adding missing PR_PAC_ macro defintions #138040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025

Conversation

zeroomega
Copy link
Contributor

This is a follow up of 3beacfa, which adds PR_PAC_APIAKEY macro to resolve the build failures on older Linux distros. However, it missed a few other definitions. This patch fixed this issue.

The defined values matches the linux header: https://github.com/torvalds/linux/blob/8bac8898fe398ffa3e09075ecea2be511725fb0b/include/uapi/linux/prctl.h#L227

This is a follow up of 3beacfa,
which adds PR_PAC_APIAKEY macro to resolve the build failures on
older Linux distros. However, it missed a few other definitions.
This patch fixed this issue.
@llvmbot
Copy link
Member

llvmbot commented Apr 30, 2025

@llvm/pr-subscribers-tools-llvm-exegesis

Author: Haowei (zeroomega)

Changes

This is a follow up of 3beacfa, which adds PR_PAC_APIAKEY macro to resolve the build failures on older Linux distros. However, it missed a few other definitions. This patch fixed this issue.

The defined values matches the linux header: https://github.com/torvalds/linux/blob/8bac8898fe398ffa3e09075ecea2be511725fb0b/include/uapi/linux/prctl.h#L227


Full diff: https://github.com/llvm/llvm-project/pull/138040.diff

1 Files Affected:

  • (modified) llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp (+9)
diff --git a/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp b/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
index b7ea1a75feee6..a1eb5a46f21fc 100644
--- a/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/AArch64/Target.cpp
@@ -21,6 +21,15 @@
 #ifndef PR_PAC_APIAKEY
 #define PR_PAC_APIAKEY (1UL << 0)
 #endif
+#ifndef PR_PAC_APIBKEY
+#define PR_PAC_APIBKEY (1UL << 1)
+#endif
+#ifndef PR_PAC_APDAKEY
+#define PR_PAC_APDAKEY (1UL << 2)
+#endif
+#ifndef PR_PAC_APDBKEY
+#define PR_PAC_APDBKEY (1UL << 3)
+#endif
 #endif
 
 #define GET_AVAILABLE_OPCODE_CHECKER

@zeroomega zeroomega merged commit 5dc3cd0 into llvm:main Apr 30, 2025
10 of 12 checks passed
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…m#138040)

This is a follow up of 3beacfa, which
added the PR_PAC_APIAKEY macro to resolve the build failures on older Linux
distros. However, it missed a few other definitions. This patch fixes
this issue.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…m#138040)

This is a follow up of 3beacfa, which
added the PR_PAC_APIAKEY macro to resolve the build failures on older Linux
distros. However, it missed a few other definitions. This patch fixes
this issue.
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…m#138040)

This is a follow up of 3beacfa, which
added the PR_PAC_APIAKEY macro to resolve the build failures on older Linux
distros. However, it missed a few other definitions. This patch fixes
this issue.
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
…m#138040)

This is a follow up of 3beacfa, which
added the PR_PAC_APIAKEY macro to resolve the build failures on older Linux
distros. However, it missed a few other definitions. This patch fixes
this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants