* Script throws an error in Pass 5
@ 2009-03-07 8:43 beginner966
2009-03-07 13:15 ` Frank Ch. Eigler
0 siblings, 1 reply; 11+ messages in thread
From: beginner966 @ 2009-03-07 8:43 UTC (permalink / raw)
To: systemtap
I got this error while running a script.
Please help in fixing it.
Pass 5: starting run.
Running /usr/local/bin/staprun -v
/tmp/stapPT2F1g/stap_99315f6cea8f8dfe7dc6828192ab2576_4241.ko
ERROR: stap_99315f6cea8f8dfe7dc6828192ab2576_4241: inconsistent kernel
build-id byte #0 (0xff [actual] vs. 0x1c [debuginfo])
stapio:cleanup_and_exit:336 detach=0
stapio:cleanup_and_exit:353 closing control channel
Pass 5: run completed in 0usr/20sys/143real ms.
Running rm -rf /tmp/stapPT2F1g
Thanks !
--
View this message in context: http://www.nabble.com/Script-throws-an-error-in-Pass-5-tp22385504p22385504.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Script throws an error in Pass 5
@ 2009-03-07 13:06 beginner966
0 siblings, 0 replies; 11+ messages in thread
From: beginner966 @ 2009-03-07 13:06 UTC (permalink / raw)
To: systemtap
I got this error while running the script:
Pass 5: starting run.
Running /usr/local/bin/staprun -v
/tmp/stapPT2F1g/stap_99315f6cea8f8dfe7dc6828192ab2576_4241.ko
ERROR: stap_99315f6cea8f8dfe7dc6828192ab2576_4241: inconsistent kernel
build-id byte #0 (0xff [actual] vs. 0x1c [debuginfo])
stapio:cleanup_and_exit:336 detach=0
stapio:cleanup_and_exit:353 closing control channel
Pass 5: run completed in 0usr/20sys/143real ms.
Running rm -rf /tmp/stapPT2F1g
stap -v : SystemTap translator/driver (version 0.9/0.131 non-git sources)
uname -r : 2.6.29-rc6-rt3
Please help in fixing the problem. Thanks !!
--
View this message in context: http://www.nabble.com/Script-throws-an-error-in-Pass-5-tp22385526p22385526.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Script throws an error in Pass 5
2009-03-07 13:15 ` Frank Ch. Eigler
2009-03-07 13:15 ` beginner966
@ 2009-03-07 13:15 ` beginner966
2009-03-07 14:27 ` beginner966
2009-03-07 14:34 ` beginner966
3 siblings, 0 replies; 11+ messages in thread
From: beginner966 @ 2009-03-07 13:15 UTC (permalink / raw)
To: systemtap
>This usually means that the debugging data version you compiled the
>script against was slightly different than the kernel you're actually
>running.
But this problem occurs only with one specific script. All other scripts are
running fine.
--
View this message in context: http://www.nabble.com/Script-throws-an-error-in-Pass-5-tp22385526p22387452.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Script throws an error in Pass 5
2009-03-07 8:43 Script throws an error in Pass 5 beginner966
@ 2009-03-07 13:15 ` Frank Ch. Eigler
2009-03-07 13:15 ` beginner966
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Frank Ch. Eigler @ 2009-03-07 13:15 UTC (permalink / raw)
To: beginner966; +Cc: systemtap
beginner966 <nitin966@gmail.com> writes:
> ERROR: stap_99315f6cea8f8dfe7dc6828192ab2576_4241: inconsistent kernel
> build-id byte #0 (0xff [actual] vs. 0x1c [debuginfo])
> [...]
This usually means that the debugging data version you compiled the
script against was slightly different than the kernel you're actually
running.
- FChE
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Script throws an error in Pass 5
2009-03-07 13:15 ` Frank Ch. Eigler
@ 2009-03-07 13:15 ` beginner966
2009-03-07 13:15 ` beginner966
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: beginner966 @ 2009-03-07 13:15 UTC (permalink / raw)
To: systemtap
>This usually means that the debugging data version you compiled the
>script against was slightly different than the kernel you're actually
>running.
But this problem occurs only with one specific script. All other scripts are
running fine.
--
View this message in context: http://www.nabble.com/Script-throws-an-error-in-Pass-5-tp22385526p22387450.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Script throws an error in Pass 5
2009-03-07 13:15 ` Frank Ch. Eigler
2009-03-07 13:15 ` beginner966
2009-03-07 13:15 ` beginner966
@ 2009-03-07 14:27 ` beginner966
2009-03-07 15:05 ` Mark Wielaard
2009-03-07 14:34 ` beginner966
3 siblings, 1 reply; 11+ messages in thread
From: beginner966 @ 2009-03-07 14:27 UTC (permalink / raw)
To: systemtap
>This usually means that the debugging data version you compiled the
>script against was slightly different than the kernel you're actually
>running.
But this problem occurs only with one specific script. All other scripts are
running fine.
--
View this message in context: http://www.nabble.com/Script-throws-an-error-in-Pass-5-tp22385526p22387456.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Script throws an error in Pass 5
2009-03-07 13:15 ` Frank Ch. Eigler
` (2 preceding siblings ...)
2009-03-07 14:27 ` beginner966
@ 2009-03-07 14:34 ` beginner966
3 siblings, 0 replies; 11+ messages in thread
From: beginner966 @ 2009-03-07 14:34 UTC (permalink / raw)
To: systemtap
>This usually means that the debugging data version you compiled the
>script against was slightly different than the kernel you're actually
>running.
But this problem occurs only with one specific script. All other scripts are
running fine.
--
View this message in context: http://www.nabble.com/Script-throws-an-error-in-Pass-5-tp22385526p22387458.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Script throws an error in Pass 5
2009-03-07 14:27 ` beginner966
@ 2009-03-07 15:05 ` Mark Wielaard
2009-03-07 15:25 ` beginner966
0 siblings, 1 reply; 11+ messages in thread
From: Mark Wielaard @ 2009-03-07 15:05 UTC (permalink / raw)
To: beginner966; +Cc: systemtap
On Sat, 2009-03-07 at 05:15 -0800, beginner966 wrote:
>
> But this problem occurs only with one specific script. All other scripts are
> running fine.
Could you post the script and the full stap -vv output when you run it?
Thanks,
Mark
P.S. It seems your "nabble" service posts your messages multiple times.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Script throws an error in Pass 5
2009-03-07 15:05 ` Mark Wielaard
@ 2009-03-07 15:25 ` beginner966
2009-03-07 15:35 ` Mark Wielaard
0 siblings, 1 reply; 11+ messages in thread
From: beginner966 @ 2009-03-07 15:25 UTC (permalink / raw)
To: systemtap
>Could you post the script
This is the script:
global prio
global flags
global name
global p_id
global t_id
global count
global temp
global prev_prio
global new_prio
global res
global oncpu
probe timer.ms(250)
{
for(; temp < count; temp++)
{
printf("%s(%d)(%d)\t%s\t\%d\t%d\t%d\n",name[temp],p_id[temp],t_id[temp],res[temp],prev_prio[temp],new_prio[temp],oncpu[temp]);
delete name[temp]
delete oncpu[temp]
delete p_id[temp]
delete t_id[temp]
delete res[temp]
delete prev_prio[temp]
delete new_prio[temp]
}
}
probe timer.s(5)
{
exit();
}
probe kernel.function("__rt_mutex_adjust_prio") {
proc_pid = $task->tgid
proc_tid = $task->pid
flags[proc_pid,proc_tid] = 1
prio[proc_pid,proc_tid] = $task->prio
}
probe kernel.function("rt_mutex_getprio").return {
proc_pid = pid()
proc_tid = tid()
if (flags[proc_pid,proc_tid] == 1) {
if( $return < prio[proc_pid,proc_tid] ) {
name[count] = execname()
p_id[count] = proc_pid
t_id[count] = proc_tid
prev_prio[count] = prio[proc_pid,proc_tid]
new_prio[count] = $return
res[count] = "Boost"
oncpu[count] = cpu()
count++
//printf("Prio boosting in %s(%d) \n", execname(),
pid());
}
if( $return > prio[proc_pid,proc_tid] ) {
name[count] = execname()
p_id[count] = proc_pid
t_id[count] = proc_tid
prev_prio[count] = prio[proc_pid,proc_tid]
new_prio[count] = $return
res[count] = "Boost"
oncpu[count] = cpu()
count++
//printf("Prio de-boosting in %s(%d) \n",
execname(), pid());
}
}
flags[proc_pid,proc_tid] = 0
prio[proc_pid,proc_tid] = 0
}
probe begin
{
count = 1
temp = 1
printf("\n\n");
}
probe end
{
printf("\n\n");
delete prio
delete flags
delete oncpu
delete name
delete p_id
delete t_id
delete count
delete temp
delete prev_prio
delete new_prio
delete res
}
> and the full stap -vv output when you run it?
This is the stap -vv output.
root@nitin-desktop:/media/disk/kernel/Desktop/SystemTapProject/scripts/projectscripts#
stap -vv prio_inherit.stp
SystemTap translator/driver (version 0.9/0.131 non-git sources)
Copyright (C) 2005-2009 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: i686 release: 2.6.29-rc6-rt3
Created temporary directory "/tmp/stap5qOIqa"
Searched '/usr/local/share/systemtap/tapset/i686/*.stp', found 2
Searched '/usr/local/share/systemtap/tapset/*.stp', found 45
Pass 1: parsed user script and 47 library script(s) in 360usr/20sys/550real
ms.
probe __rt_mutex_adjust_prio@kernel/rtmutex.c:145 kernel reloc=.dynamic
section=.text pc=0xc013ffd3
probe rt_mutex_getprio@kernel/rtmutex.c:131 kernel reloc=.dynamic
section=.text pc=0xc013fe3b
Pass 2: analyzed script: 6 probe(s), 9 function(s), 0 embed(s), 11 global(s)
in 380usr/110sys/8302real ms.
Pass 3: using cached
/root/.systemtap/cache/29/stapconf_297666a7ea51531673cf30696f0e715a_117.h
Pass 3: using cached
/root/.systemtap/cache/99/stap_99315f6cea8f8dfe7dc6828192ab2576_4241.c
Pass 4: using cached
/root/.systemtap/cache/99/stap_99315f6cea8f8dfe7dc6828192ab2576_4241.ko
Pass 5: starting run.
Running /usr/local/bin/staprun -v
/tmp/stap5qOIqa/stap_99315f6cea8f8dfe7dc6828192ab2576_4241.ko
ERROR: stap_99315f6cea8f8dfe7dc6828192ab2576_4241: inconsistent kernel
build-id byte #0 (0xff [actual] vs. 0x1c [debuginfo])
stapio:cleanup_and_exit:336 detach=0
stapio:cleanup_and_exit:353 closing control channel
Pass 5: run completed in 0usr/20sys/380real ms.
Running rm -rf /tmp/stap5qOIqa
Thanks.
--
View this message in context: http://www.nabble.com/Script-throws-an-error-in-Pass-5-tp22385526p22388114.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Script throws an error in Pass 5
2009-03-07 15:25 ` beginner966
@ 2009-03-07 15:35 ` Mark Wielaard
2009-03-07 17:28 ` beginner966
0 siblings, 1 reply; 11+ messages in thread
From: Mark Wielaard @ 2009-03-07 15:35 UTC (permalink / raw)
To: beginner966; +Cc: systemtap
Hi,
On Sat, 2009-03-07 at 06:39 -0800, beginner966 wrote:
> >Could you post the script
>
> This is the script:
The script seems to run fine here (2.6.18-128.1.1.el5xen, stap version
0.7.2/0.137 non-git sources or version 0.9/0.140 commit 8c5905d0 +
changes), although none of the kernel function probe points seem to be
ever hit. I didn't inspect the script and kernel functions closely
though to see why.
> This is the stap -vv output.
>
> SystemTap translator/driver (version 0.9/0.131 non-git sources)
I don't think this is it, but that (0.131) is a pretty old elfutils
version. You might consider updating to something newer.
> Pass 3: using cached
> /root/.systemtap/cache/29/stapconf_297666a7ea51531673cf30696f0e715a_117.h
> Pass 3: using cached
> /root/.systemtap/cache/99/stap_99315f6cea8f8dfe7dc6828192ab2576_4241.c
> Pass 4: using cached
> /root/.systemtap/cache/99/stap_99315f6cea8f8dfe7dc6828192ab2576_4241.ko
> Pass 5: starting run.
> Running /usr/local/bin/staprun -v
> /tmp/stap5qOIqa/stap_99315f6cea8f8dfe7dc6828192ab2576_4241.ko
> ERROR: stap_99315f6cea8f8dfe7dc6828192ab2576_4241: inconsistent kernel
> build-id byte #0 (0xff [actual] vs. 0x1c [debuginfo])
Hmmm. This shouldn't be using a cached version when the debuginfo (or
the kernel) versions changed. But in case it did. Please try removing
your /root/.systemtap/cache dir.
Cheers,
Mark
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Script throws an error in Pass 5
2009-03-07 15:35 ` Mark Wielaard
@ 2009-03-07 17:28 ` beginner966
0 siblings, 0 replies; 11+ messages in thread
From: beginner966 @ 2009-03-07 17:28 UTC (permalink / raw)
To: systemtap
Hi,
>The script seems to run fine here (2.6.18-128.1.1.el5xen, stap version
>0.7.2/0.137 non-git sources or version 0.9/0.140 commit 8c5905d0 +
>changes), although none of the kernel function probe points seem to be
>ever hit. I didn't inspect the script and kernel functions closely
>though to see why.
It runs fine for me now. I used to get a system halt problem but now its
not there at all. Script runs smoothly.
>I don't think this is it, but that (0.131) is a pretty old elfutils
>version. You might consider updating to something newer.
It works now without updating. As you suggested, I cleared the cache
directory.
Anyways, I'l update the elfutils to a newer version.
Thanks !!
--
View this message in context: http://www.nabble.com/Script-throws-an-error-in-Pass-5-tp22385526p22389376.html
Sent from the Sourceware - systemtap mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-03-07 16:45 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-07 8:43 Script throws an error in Pass 5 beginner966
2009-03-07 13:15 ` Frank Ch. Eigler
2009-03-07 13:15 ` beginner966
2009-03-07 13:15 ` beginner966
2009-03-07 14:27 ` beginner966
2009-03-07 15:05 ` Mark Wielaard
2009-03-07 15:25 ` beginner966
2009-03-07 15:35 ` Mark Wielaard
2009-03-07 17:28 ` beginner966
2009-03-07 14:34 ` beginner966
2009-03-07 13:06 beginner966
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).