public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "dsmith at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug tapsets/13501] Some arguments for 'stap -L "*, *.*, *.*.*" ' probe points not found
Date: Mon, 19 Dec 2011 21:09:00 -0000	[thread overview]
Message-ID: <bug-13501-6586-6kMHcDww4o@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-13501-6586@http.sourceware.org/bugzilla/>

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

--- Comment #10 from David Smith <dsmith at redhat dot com> 2011-12-19 20:57:30 UTC ---
Here is my analysis of the results of 'stap -L "**" > /dev/null' on F16.  All
the failures have the same problem - systemtap can't find inlined function
arguments.

====
semantic error: unable to find local 'task' near pc 0x336e3  in  nfs_read_done
fs/nfs/proc.c ( (alternatives: $data): identifier '$task' at
/usr/local/share/systemtap/tapset/nfs_proc.stp:798:11
        source:     status = $task->tk_status
====

nfs.proc2.read_done - inline version missing $task

# stap -L 'module("nfs").function("nfs_read_done").*'
module("nfs").function("nfs_read_done@fs/nfs/proc.c:632").call $task:struct
rpc_task* $data:struct nfs_read_data*
module("nfs").function("nfs_read_done@fs/nfs/proc.c:632").inline $data:struct
nfs_read_data*
module("nfs").function("nfs_read_done@fs/nfs/proc.c:632").return $return:int
$task:struct rpc_task* $data:struct nfs_read_data*


====
semantic error: unable to find local 'task' near pc 0x33645  in  nfs_write_done
fs/nfs/proc.c ( (alternatives: $data): identifier '$task' at :1035:11
        source:     status = $task->tk_status
                             ^
====

nfs.proc2.write_done - inline version missing $task:

# stap -L 'module("nfs").function("nfs_write_done").*'
module("nfs").function("nfs_write_done@fs/nfs/proc.c:654").call $task:struct
rpc_task* $data:struct nfs_write_data*
module("nfs").function("nfs_write_done@fs/nfs/proc.c:654").inline $data:struct
nfs_write_data*
module("nfs").function("nfs_write_done@fs/nfs/proc.c:654").return $return:int
$task:struct rpc_task* $data:struct nfs_write_data*


====
semantic error: unable to find local 'task' near pc 0x3b0e3  in 
nfs3_write_done fs/nfs/nfs3proc.c ( (alternatives: $data): identifier '$task'
at :1066:11
        source:     status = $task->tk_status
====                             ^

nfs.proc3.write_done - inline version missing $task:

# stap -L 'module("nfs").function("nfs3_write_done").*'
module("nfs").function("nfs3_write_done@fs/nfs/nfs3proc.c:817").call
$task:struct rpc_task* $data:struct nfs_write_data*
module("nfs").function("nfs3_write_done@fs/nfs/nfs3proc.c:817").inline
$data:struct nfs_write_data*
module("nfs").function("nfs3_write_done@fs/nfs/nfs3proc.c:817").return
$return:int $task:struct rpc_task* $data:struct nfs_write_data*


====
semantic error: unable to find local 'rqstp' near pc 0x25e49  in  nfsd_open
fs/nfsd/vfs.c ( (alternatives: $filp $access $fhp): identifier '$rqstp' at
/usr/local/share/systemtap/tapset/nfsd.stp:996:33
        source:     client_ip = addr_from_rqst_str($rqstp)
                                                   ^
semantic error: unable to find local 'type' near pc 0x25e49  in  nfsd_open
fs/nfsd/vfs.c ( (alternatives: $filp $access $fhp): identifier '$type' at
:1000:9
        source:     type = $type
====

nfsd.open - inline version missing $rqstp, $type

# stap -L
'module("nfsd").function("nfsd_open").*'module("nfsd").function("nfsd_open@fs/nfsd/vfs.c:715").call
$rqstp:struct svc_rqst* $fhp:struct svc_fh* $type:int $access:int $filp:struct
file** $flags:int $host_err:int
module("nfsd").function("nfsd_open@fs/nfsd/vfs.c:715").exported $rqstp:struct
svc_rqst* $fhp:struct svc_fh* $type:int $access:int $filp:struct file**
$flags:int $host_err:int
module("nfsd").function("nfsd_open@fs/nfsd/vfs.c:715").inline $filp:struct
file** $access:int $fhp:struct svc_fh*
module("nfsd").function("nfsd_open@fs/nfsd/vfs.c:715").return $return:__be32
$rqstp:struct svc_rqst* $fhp:struct svc_fh* $type:int $access:int $filp:struct
file** $flags:int $host_err:int


====
semantic error: unable to find local 'signr' near pc 0xffffffff81013168  in 
handle_signal arch/x86/kernel/signal.c ( (alternatives: $regs $ka $info $sig):
identifier '$signr' at /usr/local/share/systemtap/tapset/signal.stp:606:15
        source:         sig = $signr
                              ^
semantic error: unable to find local 'signr' near pc 0xffffffff81013168  in 
handle_signal arch/x86/kernel/signal.c ( (alternatives: $regs $ka $info $sig):
identifier '$signr' at :607:33
        source:         sig_name = _signal_name($signr)
                                                ^
semantic error: not accessible at this address (0xffffffff81013168, dieoffset:
0x127bfc): identifier '$info' at :609:13
        source:     sinfo = $info
                            ^
semantic error: not accessible at this address (0xffffffff81013168, dieoffset:
0x127bfc): identifier '$info' at :610:16
        source:     sig_code = $info->si_code
                               ^
semantic error: not accessible at this address (0xffffffff81013168, dieoffset:
0x127bf3): identifier '$ka' at :611:15
        source:     ka_addr = $ka
                              ^
semantic error: unable to find local 'set' near pc 0xffffffff81013168  in 
handle_signal arch/x86/kernel/signal.c ( (alternatives: $regs $ka $info $sig):
identifier '$set' at :612:50
        source:     oldset_addr = (@defined($oldset) ? $oldset : $set)
                                                                 ^
semantic error: not accessible at this address (0xffffffff81013168, dieoffset:
0x127bea): identifier '$regs' at :613:12
        source:     regs = $regs
====

signal.handle - inlined function missing all args

# stap -L 'kernel.function("handle_*signal*").*'
kernel.function("handle_signal@arch/x86/kernel/signal.c:682").inline


====
semantic error: failed to retrieve location attribute for local 'clnt'
(dieoffset: 0x17132): identifier '$clnt' at
/usr/local/share/systemtap/tapset/rpc.stp:437:29
        source:     servername = kernel_string($clnt->cl_server)
                                               ^
semantic error: failed to retrieve location attribute for local 'clnt'
(dieoffset: 0x17132): identifier '$clnt' at :438:27
        source:     progname = kernel_string($clnt->cl_protname)
                                             ^
semantic error: failed to retrieve location attribute for local 'clnt'
(dieoffset: 0x17132): identifier '$clnt' at :439:24
        source:     prog = prog_from_clnt($clnt)
                                          ^
semantic error: failed to retrieve location attribute for local 'clnt'
(dieoffset: 0x17132): identifier '$clnt' at :440:24
        source:     vers = vers_from_clnt($clnt)
                                          ^
semantic error: failed to retrieve location attribute for local 'clnt'
(dieoffset: 0x17132): identifier '$clnt' at :441:24
        source:     prot = prot_from_clnt($clnt)
                                          ^
semantic error: failed to retrieve location attribute for local 'clnt'
(dieoffset: 0x17132): identifier '$clnt' at :442:24
        source:     port = port_from_clnt($clnt)
                                          ^
semantic error: failed to retrieve location attribute for local 'clnt'
(dieoffset: 0x17132): identifier '$clnt' at :443:23
        source:     xid  = xid_from_clnt($clnt)
                                         ^
semantic error: failed to retrieve location attribute for local 'clnt'
(dieoffset: 0x17132): identifier '$clnt' at :447:22
        source:            : (atomic_read(&$clnt->cl_count) == 0)))
                                           ^
semantic error: failed to retrieve location attribute for local 'msg'
(dieoffset: 0x1712c): identifier '$msg' at :449:23
        source:     proc = proc_from_msg($msg)
                                         ^
semantic error: failed to retrieve location attribute for local 'flags'
(dieoffset: 0x17126): identifier '$flags' at :454:10
        source:     flags = $flags
====

sunrpc.clnt.call_sync - inlined function missing all args

# stap -L 'module("sunrpc").function("rpc_call_sync").*'
module("sunrpc").function("rpc_call_sync@net/sunrpc/clnt.c:667").call
module("sunrpc").function("rpc_call_sync@net/sunrpc/clnt.c:667").exported
module("sunrpc").function("rpc_call_sync@net/sunrpc/clnt.c:667").return
$return:int

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

  parent reply	other threads:[~2011-12-19 20:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-14 22:01 [Bug tapsets/13501] New: " wcohen at redhat dot com
2011-12-15 11:35 ` [Bug tapsets/13501] " wcohen at redhat dot com
2011-12-15 15:32 ` dsmith at redhat dot com
2011-12-15 15:53 ` dsmith at redhat dot com
2011-12-15 16:14 ` dsmith at redhat dot com
2011-12-15 18:34 ` dsmith at redhat dot com
2011-12-15 19:14 ` dsmith at redhat dot com
2011-12-15 19:30 ` dsmith at redhat dot com
2011-12-16 17:42 ` dsmith at redhat dot com
2011-12-16 17:57 ` dsmith at redhat dot com
2011-12-17  1:08 ` dsmith at redhat dot com
2011-12-19 21:09 ` dsmith at redhat dot com [this message]
2017-05-08 20:31 ` fche at redhat 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=bug-13501-6586-6kMHcDww4o@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.org \
    /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).