This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/4510] probe scheduler.ctxswitch looks for wrong arg ($new) on 2.6.9-55.ELsmp x86_64
- From: "wcohen at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 15 May 2007 21:51:51 -0000
- Subject: [Bug tapsets/4510] probe scheduler.ctxswitch looks for wrong arg ($new) on 2.6.9-55.ELsmp x86_64
- References: <20070515224830.4510.wcohen@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From wcohen at redhat dot com 2007-05-15 22:51 -------
The 2.6.9-55.ELxmp x86_64 has the following function in kernel/sched.c
static inline
task_t * context_switch(runqueue_t *rq, task_t *prev, task_t *next)
{
...
However it the probe scheduler.ctxswitch is looking for $new rather than $next.
The following example illustrates the problem on the machine:
probe scheduler.ctxswitch
{
printf("next_pid = %d\n", next_pid)
}
$ ../../install/bin/stap -v /tmp/schedx.stpPass 1: parsed user script and 54
library script(s) in 750usr/10sys/767real ms.
semantic error: unable to find local 'new' near pc 0xffffffff8030ba14
(alternatives: rq prev next): identifier '$new' at
/home/wcohen/stap_snap_200705142049/install/share/systemtap/tapset/scheduler.stp:138:21
Pass 2: analyzed script: 1 probe(s), 0 function(s), 0 embed(s), 0 global(s) in
220usr/60sys/275real ms.
Pass 2: analysis failed. Try again with more '-v' (verbose) options.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|probe scheduler.ctxswitch |probe scheduler.ctxswitch
|looks for wrong arg on |looks for wrong arg ($new)
|2.6.9-55.ELsmp x86_64 |on 2.6.9-55.ELsmp x86_64
http://sourceware.org/bugzilla/show_bug.cgi?id=4510
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.