public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug tapsets/9876] New: Syscall tapset broken on architectures that use SYSCALL_WRAPPERS
@ 2009-02-20 12:38 ananth at in dot ibm dot com
  2009-02-20 12:39 ` [Bug tapsets/9876] " ananth at in dot ibm dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: ananth at in dot ibm dot com @ 2009-02-20 12:38 UTC (permalink / raw)
  To: systemtap

Recently, the upstream kernel acquired the SYSCALL_WRAPPER code that is now
being used by multiple architectures including ARM, SPARC, POWERPC and s390.
With that change the current syscall tapsets are broken.

The change necessarily creates the an asmlinkage SyS_* routines that encapsulate
the sys_* routines that are inlined. With the change, even simple scripts as fail:

[ananth@... ~]$ stap -ve 'probe syscall.access {print("here\n") exit() }'
Pass 1: parsed user script and 47 library script(s) in 450usr/0sys/509real ms.
semantic error: no match while resolving probe point kernel.function("sys_access")
semantic error: no match while resolving probe point syscall.access
semantic error: no probes found
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0 global(s) in
520usr/880sys/1633real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.
[ananth@... ~]$ stap -ve 'probe kernel.function("sys_access") {print("here\n")
exit() }'
Pass 1: parsed user script and 47 library script(s) in 450usr/0sys/509real ms.
semantic error: no match while resolving probe point kernel.function("sys_access")
semantic error: no probes found
Pass 2: analyzed script: 0 probe(s), 0 function(s), 0 embed(s), 0 global(s) in
520usr/880sys/1663real ms.
Pass 2: analysis failed.  Try again with another '--vp 01' option.

While probing the wrapper works:
[ananth@... ~]$ 'stap -ve 'probe kernel.function("SyS_access") {print("here\n")
exit() }'
Pass 1: parsed user script and 47 library script(s) in 450usr/10sys/511real ms.
Pass 2: analyzed script: 1 probe(s), 2 function(s), 0 embed(s), 0 global(s) in
510usr/860sys/1616real ms.
Pass 3: translated to C into
"/tmp/stapnRd0lO/stap_2b2ebb56d31314a25fff4a30d7eda8c2_527.c" in
870usr/1310sys/2499real ms.
Pass 4: compiled C into "stap_2b2ebb56d31314a25fff4a30d7eda8c2_527.ko" in
6640usr/610sys/10331real ms.
Pass 5: starting run.

-- 
           Summary: Syscall tapset broken on architectures that use
                    SYSCALL_WRAPPERS
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P2
         Component: tapsets
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: ananth at in dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=9876

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-02-24  3:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-20 12:38 [Bug tapsets/9876] New: Syscall tapset broken on architectures that use SYSCALL_WRAPPERS ananth at in dot ibm dot com
2009-02-20 12:39 ` [Bug tapsets/9876] " ananth at in dot ibm dot com
2009-02-20 12:43 ` fche at redhat dot com
2009-02-20 23:51 ` mahesh at linux dot vnet dot ibm dot com
2009-02-21 15:27 ` mahesh at linux dot vnet dot ibm dot com
2009-02-21 16:13 ` fche at redhat dot com
2009-02-23 10:00   ` Ananth N Mavinakayanahalli
2009-02-22 22:22 ` ananth at in dot ibm dot com
2009-02-23  9:47 ` ananth at in dot ibm dot com
2009-02-23 13:28 ` ananth at in dot ibm dot com
2009-02-23 13:29 ` ananth at in dot ibm dot com
2009-02-24 10:10 ` ananth at in dot ibm dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).