Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[BOLT][test] Disable PLT check in callcont-fallthru #139953

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

Conversation

aaupov
Copy link
Contributor

@aaupov aaupov commented May 14, 2025

Some testing configurations don't support nm --synthetic option (where
nm is a symlink to llvm-nm), which prevents us from resolving puts@plt
symbol address in profile generation inside the test.
Disable the check until llvm-nm support is landed (#138232).

Test Plan: bin/llvm-lit -a tools/bolt/test/X86/callcont-fallthru.s

Created using spr 1.3.4
@llvmbot
Copy link
Member

llvmbot commented May 14, 2025

@llvm/pr-subscribers-bolt

Author: Amir Ayupov (aaupov)

Changes

Some testing configurations don't support nm --synthetic option (where
nm is a symlink to llvm-nm), which prevents us from resolving puts@<!-- -->plt
symbol address in profile generation inside the test.
Disable the check until llvm-nm support is landed (#138232).

Test Plan: bin/llvm-lit -a tools/bolt/test/X86/callcont-fallthru.s


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

1 Files Affected:

  • (modified) bolt/test/X86/callcont-fallthru.s (+3-3)
diff --git a/bolt/test/X86/callcont-fallthru.s b/bolt/test/X86/callcont-fallthru.s
index 44e3bf21c14c0..7799e017691f6 100644
--- a/bolt/test/X86/callcont-fallthru.s
+++ b/bolt/test/X86/callcont-fallthru.s
@@ -6,7 +6,7 @@
 # RUN: %clangxx %cxxflags %s %t.so -o %t -Wl,-q -nostdlib
 # RUN: link_fdata %s %t %t.pat PREAGGT1
 # RUN: link_fdata %s %t %t.pat2 PREAGGT2
-# RUN: link_fdata %s %t %t.patplt PREAGGPLT
+# DONTRUN: link_fdata %s %t %t.patplt PREAGGPLT
 
 # RUN: llvm-strip --strip-unneeded %t -o %t.strip
 # RUN: llvm-objcopy --remove-section=.eh_frame %t.strip %t.noeh
@@ -26,8 +26,8 @@
 
 ## Check pre-aggregated traces don't report zero-sized PLT fall-through as
 ## invalid trace
-# RUN: llvm-bolt %t.strip --pa -p %t.patplt -o %t.out | FileCheck %s \
-# RUN:   --check-prefix=CHECK-PLT
+# DONTRUN: llvm-bolt %t.strip --pa -p %t.patplt -o %t.out | FileCheck %s \
+# DONTRUN:   --check-prefix=CHECK-PLT
 # CHECK-PLT: traces mismatching disassembled function contents: 0
 
   .globl foo

Copy link
Member

@paschalis-mpeis paschalis-mpeis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Great, thank you so much, Amir!

@aaupov aaupov merged commit e24d866 into main May 14, 2025
12 checks passed
@aaupov aaupov deleted the users/aaupov/spr/bolttest-disable-plt-check-in-callcont-fallthru branch May 14, 2025 20:43
@MaskRay
Copy link
Member

MaskRay commented May 15, 2025

You may also inspect the a@plt output from llvm-objdump -d. I prefer it (as you can test additional useful stuff) even if llvm-nm implements --synthetic.

@aaupov
Copy link
Contributor Author

aaupov commented May 15, 2025

You may also inspect the a@plt output from llvm-objdump -d. I prefer it (as you can test additional useful stuff) even if llvm-nm implements --synthetic.

The problem is that the call to nm is inside a wrapper constructing the profile, and replacing nm with objdump is non-trivial.

paschalis-mpeis added a commit that referenced this pull request May 15, 2025
PR #139953 used `DONTRUN` to disable some run lines, but that
didn't work. Now switching to `RUN-DISABLED` for disabling the
tests until llvm-nm support is  landed (#138232).
paschalis-mpeis added a commit that referenced this pull request May 15, 2025
…0026)

PR #139953 used `DONTRUN` to disable some run lines, but that didn't
work. Now switching to `RUN-DISABLED` for disabling the tests until
llvm-nm support is landed (#138232).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.