Summary: | stap_staticmarkers.stp tapset has no test case | ||
---|---|---|---|
Product: | systemtap | Reporter: | David Smith <dsmith> |
Component: | tapsets | Assignee: | Unassigned <systemtap> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jistone |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
David Smith
2015-06-25 15:23:42 UTC
The more direct way to check existence is "readelf -n", and this is revealing: $ readelf -n /usr/local/bin/staprun readelf: Error: Input file '/usr/local/bin/staprun' is not readable. That's because staprun has mode 4110 (suid|xusr|xgrp). Nobody has read permission, which effectively means only root can read it. Although you wrote a '#' before your commands, which usually indicates a root prompt... Is that so, or were you running as a user? $ sudo readelf -n /usr/local/bin/staprun [...] Displaying notes found at file offset 0x0002ba98 with length 0x000001f4: Owner Data size Description stapsdt 0x00000036 NT_STAPSDT (SystemTap probe descriptors) Provider: staprun Name: remove__module Location: 0x000000000040856e, Base: 0x0000000000427358, Semaphore: 0x0000000000000000 Arguments: 8@%rbx stapsdt 0x00000036 NT_STAPSDT (SystemTap probe descriptors) Provider: staprun Name: insert__module Location: 0x000000000040aa18, Base: 0x0000000000427358, Semaphore: 0x0000000000000000 Arguments: 8@%r12 [etc] (In reply to Josh Stone from comment #1) > The more direct way to check existence is "readelf -n", and this is > revealing: > > $ readelf -n /usr/local/bin/staprun > readelf: Error: Input file '/usr/local/bin/staprun' is not readable. > > That's because staprun has mode 4110 (suid|xusr|xgrp). Nobody has read > permission, which effectively means only root can read it. > > Although you wrote a '#' before your commands, which usually indicates a > root prompt... Is that so, or were you running as a user? Ah, that was definitely it. With sudo: ==== # sudo stap -l 'process("staprun").mark("*")' process("/usr/bin/staprun").mark("insert__module") process("/usr/bin/staprun").mark("remove__module") process("/usr/bin/staprun").mark("send__ctlmsg") process("/usr/bin/staprun").mark("stap_system__complete") process("/usr/bin/staprun").mark("stap_system__spawn") process("/usr/bin/staprun").mark("stap_system__start") ==== I'll still write a buildok test case for this tapset. Test case added in commit f4943fb. |