Summary: | systemtap with --kelf option looks for data symbol to probe a function on powerpc systemtap | ||
---|---|---|---|
Product: | systemtap | Reporter: | Srinivasa DS <srinivasa> |
Component: | translator | Assignee: | Unassigned <systemtap> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jkenisto |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | Possible fix: rejects symbols in .odp section |
Description
Srinivasa DS
2008-06-06 10:16:16 UTC
Created attachment 2774 [details]
Possible fix: rejects symbols in .odp section
Hmmm. Apparently at least some function-descriptor symbols like do_exit show
up in elf as type STT_FUNC even though nm labels them "D". (You don't see this
problem with --kmap=/proc/kallsyms --ignore-vmlinux, do you?) One way to
screen these out is to reject all symbols in the .opd section. The attached
patch does that. Please give it a try and let me know how it works.
(In reply to comment #1) > Created an attachment (id=2774) > Possible fix: rejects symbols in .odp section > > Hmmm. Apparently at least some function-descriptor symbols like do_exit show > up in elf as type STT_FUNC even though nm labels them "D". (You don't see this > problem with --kmap=/proc/kallsyms --ignore-vmlinux, do you?) I tried with --kmap option, But it didn't work as --kelf, > One way to > screen these out is to reject all symbols in the .opd section. The attached > patch does that. Please give it a try and let me know how it works. After applying the patch, stap worked well with --kelf and --kmap option. Fix pushed today, commit 46f7b6b. The systemtap.context/num_args test, augmented today to test with --kelf --ignore-dwarf, should serve as a regression test for this bug. Closing this PR. |