public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "ananth at in dot ibm dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sources.redhat.com
Subject: [Bug tapsets/9876] New: Syscall tapset broken on architectures that use SYSCALL_WRAPPERS
Date: Fri, 20 Feb 2009 12:38:00 -0000	[thread overview]
Message-ID: <20090220112441.9876.ananth@in.ibm.com> (raw)

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.

             reply	other threads:[~2009-02-20 11:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-20 12:38 ananth at in dot ibm dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090220112441.9876.ananth@in.ibm.com \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).