Bug 4510 - probe scheduler.ctxswitch looks for wrong arg ($new) on 2.6.9-55.ELsmp x86_64
Summary: probe scheduler.ctxswitch looks for wrong arg ($new) on 2.6.9-55.ELsmp x86_64
Status: RESOLVED DUPLICATE of bug 1155
Alias: None
Product: systemtap
Classification: Unclassified
Component: tapsets (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-15 22:48 UTC by William Cohen
Modified: 2021-08-09 17:17 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description William Cohen 2007-05-15 22:48:30 UTC
 
Comment 1 William Cohen 2007-05-15 22:51:50 UTC
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.





Comment 2 William Cohen 2007-05-16 16:56:26 UTC
Corrected the parameters for the kernel. However, the remainder of the this bug
is the same as 1155.


*** This bug has been marked as a duplicate of 1155 ***
Comment 3 contact 2021-08-09 17:17:22 UTC Comment hidden (spam)