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: Thu, 15 Dec 2011 18:34:00 -0000	[thread overview]
Message-ID: <bug-13501-6586-LjZK3fd3B2@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 #4 from David Smith <dsmith at redhat dot com> 2011-12-15 16:13:50 UTC ---
The following set of errors are a bit bogus, but I'm not sure how to quiet
them.

====
# stap -L '__scheduler.ctxswitch.kp'
semantic error: unable to find local 'new' near pc 0xffffffff8150aff7  in 
context_switch kernel/sched.c ( (alternatives: $next $prev $rq): identifier
'$new' at /usr/local/share/systemtap/tapset/scheduler.stp:174:19
        source:         next_priority = $new->prio
                                        ^
semantic error: unable to find local 'new' near pc 0xffffffff8150aff7  in 
context_switch kernel/sched.c ( (alternatives: $next $prev $rq): identifier
'$new' at :175:14
        source:         next_pid = $new->tgid
                                   ^
semantic error: unable to find local 'new' near pc 0xffffffff8150aff7  in 
context_switch kernel/sched.c ( (alternatives: $next $prev $rq): identifier
'$new' at :176:14
        source:         next_tid = $new->pid
                                   ^
semantic error: unable to find local 'new' near pc 0xffffffff8150aff7  in 
context_switch kernel/sched.c ( (alternatives: $next $prev $rq): identifier
'$new' at :177:15
        source:         next_task = $new
                                    ^
semantic error: unable to find local 'new' near pc 0xffffffff8150aff7  in 
context_switch kernel/sched.c ( (alternatives: $next $prev $rq): identifier
'$new' at :178:34
        source:         next_task_name = task_execname($new)
                                                       ^
semantic error: unable to find local 'new' near pc 0xffffffff8150aff7  in 
context_switch kernel/sched.c ( (alternatives: $next $prev $rq): identifier
'$new' at :179:19
        source:         nexttsk_state = $new->state
                                        ^
semantic error: unresolved type : identifier 'next_priority' at :174:3
        source:         next_priority = $new->prio
                        ^
semantic error: unresolved type : identifier 'next_pid' at :175:3
        source:         next_pid = $new->tgid
                        ^
semantic error: unresolved type : identifier 'next_tid' at :176:3
        source:         next_tid = $new->pid
                        ^
semantic error: unresolved type : identifier 'next_task' at :177:3
        source:         next_task = $new
                        ^
semantic error: unresolved type : identifier 'nexttsk_state' at :179:3
        source:         nexttsk_state = $new->state
                        ^
semantic error: unresolved type : identifier 'next_priority' at :158:3
        source:         next_priority = $next->prio
                        ^
semantic error: unresolved type : identifier 'next_pid' at :159:3
        source:         next_pid = $next->tgid
                        ^
semantic error: unresolved type : identifier 'next_tid' at :160:3
        source:         next_tid = $next->pid
                        ^
semantic error: unresolved type : identifier 'next_task' at :161:3
        source:         next_task = $next
                        ^
semantic error: unresolved type : identifier 'nexttsk_state' at :163:3
        source:         nexttsk_state = $next->state
                        ^
__scheduler.ctxswitch.kp prev_priority:long prev_pid:long prev_tid:long
prev_task:long prev_task_name:string prevtsk_state:long next_priority:unknown
next_pid:unknown next_tid:unknown next_task:unknown next_task_name:string
nexttsk_state:unknown $prev:struct task_struct* $rq:struct rq*
====

The above errors occur because on RHEL6 systemtap can't find the 'next'
argument of the inlined kernel function 'context_switch':

====
# stap -L 'kernel.function("context_switch").*'
kernel.function("context_switch@kernel/sched.c:2917").inline $prev:struct
task_struct* $rq:struct rq*
====

But, on RHEL6 the '__scheduler.ctxswitch.kp' probe alias isn't used - the
'scheduler.ctxswitch' prefers the '__scheduler.ctxswitch.tp' (tracepoint) probe
alias over the '__scheduler.ctxswitch.kp' (kprobe) probe alias.

====
# stap -L '__scheduler.ctxswitch.tp'
__scheduler.ctxswitch.tp __tracepoint_arg_prev:long __tracepoint_arg_next:long
next_pid:long next_tid:long next_task:long next_task_name:string
nexttsk_state:long next_priority:long prev_priority:long prev_pid:long
prev_tid:long prev_task:long prev_task_name:string prevtsk_state:long
$rq:struct rq* $prev:struct task_struct* $next:struct task_struct*


# stap -L 'scheduler.ctxswitch'
scheduler.ctxswitch __tracepoint_arg_prev:long __tracepoint_arg_next:long
next_pid:long next_tid:long next_task:long next_task_name:string
nexttsk_state:long next_priority:long prev_priority:long prev_pid:long
prev_tid:long prev_task:long prev_task_name:string prevtsk_state:long
name:string $rq:struct rq* $prev:struct task_struct* $next:struct task_struct*
====

-- 
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-15 16:14 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 [this message]
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
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-LjZK3fd3B2@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).