* probe timer.profile registration error
@ 2012-10-20 4:00 Wenhua Zhang
2012-10-20 18:56 ` Turgis, Frederic
2012-10-21 1:51 ` Frank Ch. Eigler
0 siblings, 2 replies; 5+ messages in thread
From: Wenhua Zhang @ 2012-10-20 4:00 UTC (permalink / raw)
To: systemtap
Hi ,
When I run the stap command as below,
/opt/systemtap/bin/stap --ldd -d /usr/local/nginx/sbin/nginx
--all-modules -D MAXMAPENTRIES=5120 -D MAXACTION=20000 -D
MAXTRACE=50 -D MAXSTRINGLEN=1024 -D MAXBACKTRACE=100 -x 25017 a.stp
--vp 00001 > a.out
There is an error:
WARNING: missing unwind/symbol data for module
'stap_97bdcbebec34bca89d728c7b361aa64_24788'
WARNING: missing unwind/symbol data for module 'uprobes'
Pass 5: starting run.
ERROR: probe timer.profile registration error (rc -16)
The stap file as:
global s;
global quit = 0;
probe timer.profile {
if (pid() == target()) {
if (quit) {
foreach (i in s-) {
print_ustack(i);
printf("\t%d\n", @count(s[i]));
}
exit()
} else {
s[ubacktrace()] <<< 1;
}
}
}
probe timer.s(20) {
quit = 1
}
Can you help me find what happened and what should I do to resolve it?
Thanks very much.
Best Wishes,
Wenhua
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: probe timer.profile registration error
2012-10-20 4:00 probe timer.profile registration error Wenhua Zhang
@ 2012-10-20 18:56 ` Turgis, Frederic
2012-10-21 6:26 ` Wenhua Zhang
2012-10-21 1:51 ` Frank Ch. Eigler
1 sibling, 1 reply; 5+ messages in thread
From: Turgis, Frederic @ 2012-10-20 18:56 UTC (permalink / raw)
To: Wenhua Zhang, systemtap
I think you would have had an error in previous pass but you could check that you have CONFIG_PROFILING enabled so that register_timer_hook() is defined in kernel. "probe timer.profile" relies on this function.
Regards
Fred
OMAP Platform Business Unit - System Platform Engineering - Platform & Product Entitlement
>
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 12.654.784
-----Original Message-----
>From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org] On Behalf Of Wenhua Zhang
>Sent: Saturday, October 20, 2012 6:00 AM
>To: systemtap@sourceware.org
>Subject: probe timer.profile registration error
>
>Hi ,
>When I run the stap command as below,
>
> /opt/systemtap/bin/stap --ldd -d /usr/local/nginx/sbin/nginx
> --all-modules -D MAXMAPENTRIES=5120 -D MAXACTION=20000 -D
> MAXTRACE=50 -D MAXSTRINGLEN=1024 -D MAXBACKTRACE=100 -x 25017 a.stp
> --vp 00001 > a.out
>
>There is an error:
> WARNING: missing unwind/symbol data for module
> 'stap_97bdcbebec34bca89d728c7b361aa64_24788'
> WARNING: missing unwind/symbol data for module 'uprobes'
> Pass 5: starting run.
> ERROR: probe timer.profile registration error (rc -16)
>
> The stap file as:
>global s;
> global quit = 0;
>
> probe timer.profile {
> if (pid() == target()) {
> if (quit) {
> foreach (i in s-) {
> print_ustack(i);
> printf("\t%d\n", @count(s[i]));
> }
> exit()
> } else {
> s[ubacktrace()] <<< 1;
> }
> }
> }
>
> probe timer.s(20) {
> quit = 1
> }
>
>Can you help me find what happened and what should I do to resolve it?
>Thanks very much.
>
>Best Wishes,
>Wenhua
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: probe timer.profile registration error
2012-10-20 4:00 probe timer.profile registration error Wenhua Zhang
2012-10-20 18:56 ` Turgis, Frederic
@ 2012-10-21 1:51 ` Frank Ch. Eigler
1 sibling, 0 replies; 5+ messages in thread
From: Frank Ch. Eigler @ 2012-10-21 1:51 UTC (permalink / raw)
To: Wenhua Zhang; +Cc: systemtap
Wenhua Zhang <shiziwen@gmail.com> writes:
> [...]
> Pass 5: starting run.
> ERROR: probe timer.profile registration error (rc -16)
> [...]
The timer.profile probe, in many kernel versions, is a
single-concurrent-user-only facility. If there is already another
systemtap script or some other kernel user of the profiling timer
interrupt, then subsequent ones get the -EBUSY (-16) error.
You may be able to use the perf.sw.cpu_clock probe instead, which
has similar semantics but is shareable. Replace the line
probe timer.profile {
with
probe perf.sw.cpu_clock !, timer.profile {
and your script should start to work better.
- FChE
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: probe timer.profile registration error
2012-10-20 18:56 ` Turgis, Frederic
@ 2012-10-21 6:26 ` Wenhua Zhang
2012-10-21 10:33 ` Turgis, Frederic
0 siblings, 1 reply; 5+ messages in thread
From: Wenhua Zhang @ 2012-10-21 6:26 UTC (permalink / raw)
To: Turgis, Frederic; +Cc: systemtap
Hi,
Thanks for your reply, and I have checked the config file when I build
the kernel, I found "CONFIG_PROFILING=y".
And when I try again, the error not exists.
So I think it is not the reason.
May be as Frank Ch. Eigler said:
"The timer.profile probe, in many kernel versions, is a
single-concurrent-user-only facility. If there is already another
systemtap script or some other kernel user of the profiling timer
interrupt, then subsequent ones get the -EBUSY (-16) error."
I will check it.
Thanks,
Best Wishes,
Wenhua
2012/10/21 Turgis, Frederic <f-turgis@ti.com>:
> I think you would have had an error in previous pass but you could check that you have CONFIG_PROFILING enabled so that register_timer_hook() is defined in kernel. "probe timer.profile" relies on this function.
>
> Regards
> Fred
>
> OMAP Platform Business Unit - System Platform Engineering - Platform & Product Entitlement
>
>
>>
> Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 12.654.784
>
> -----Original Message-----
>>From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org] On Behalf Of Wenhua Zhang
>>Sent: Saturday, October 20, 2012 6:00 AM
>>To: systemtap@sourceware.org
>>Subject: probe timer.profile registration error
>>
>>Hi ,
>>When I run the stap command as below,
>>
>> /opt/systemtap/bin/stap --ldd -d /usr/local/nginx/sbin/nginx
>> --all-modules -D MAXMAPENTRIES=5120 -D MAXACTION=20000 -D
>> MAXTRACE=50 -D MAXSTRINGLEN=1024 -D MAXBACKTRACE=100 -x 25017 a.stp
>> --vp 00001 > a.out
>>
>>There is an error:
>> WARNING: missing unwind/symbol data for module
>> 'stap_97bdcbebec34bca89d728c7b361aa64_24788'
>> WARNING: missing unwind/symbol data for module 'uprobes'
>> Pass 5: starting run.
>> ERROR: probe timer.profile registration error (rc -16)
>>
>> The stap file as:
>>global s;
>> global quit = 0;
>>
>> probe timer.profile {
>> if (pid() == target()) {
>> if (quit) {
>> foreach (i in s-) {
>> print_ustack(i);
>> printf("\t%d\n", @count(s[i]));
>> }
>> exit()
>> } else {
>> s[ubacktrace()] <<< 1;
>> }
>> }
>> }
>>
>> probe timer.s(20) {
>> quit = 1
>> }
>>
>>Can you help me find what happened and what should I do to resolve it?
>>Thanks very much.
>>
>>Best Wishes,
>>Wenhua
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: probe timer.profile registration error
2012-10-21 6:26 ` Wenhua Zhang
@ 2012-10-21 10:33 ` Turgis, Frederic
0 siblings, 0 replies; 5+ messages in thread
From: Turgis, Frederic @ 2012-10-21 10:33 UTC (permalink / raw)
To: Wenhua Zhang; +Cc: systemtap
As I stated, I was expecting "my" root-cause to fail earlier in the first passes. This is confirmed by your check and experts seem to have found right issue.. Good !
Regards
Fred
OMAP Platform Business Unit - System Platform Engineering - Platform & Product Entitlement
>
Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S Antibes. Capital de EUR 12.654.784
-----Original Message-----
>From: Wenhua Zhang [mailto:shiziwen@gmail.com]
>Sent: Sunday, October 21, 2012 8:26 AM
>To: Turgis, Frederic
>Cc: systemtap@sourceware.org
>Subject: Re: probe timer.profile registration error
>
>Hi,
>Thanks for your reply, and I have checked the config file when I build
>the kernel, I found "CONFIG_PROFILING=y".
>And when I try again, the error not exists.
>So I think it is not the reason.
>May be as Frank Ch. Eigler said:
>"The timer.profile probe, in many kernel versions, is a
>single-concurrent-user-only facility. If there is already another
>systemtap script or some other kernel user of the profiling timer
>interrupt, then subsequent ones get the -EBUSY (-16) error."
>
>I will check it.
>
>Thanks,
>
>Best Wishes,
>Wenhua
>
>2012/10/21 Turgis, Frederic <f-turgis@ti.com>:
>> I think you would have had an error in previous pass but you could check that you have
>CONFIG_PROFILING enabled so that register_timer_hook() is defined in kernel. "probe timer.profile"
>relies on this function.
>>
>> Regards
>> Fred
>>
>> OMAP Platform Business Unit - System Platform Engineering - Platform & Product Entitlement
>>
>>
>>>
>> Texas Instruments France SA, 821 Avenue Jack Kilby, 06270 Villeneuve Loubet. 036 420 040 R.C.S
>Antibes. Capital de EUR 12.654.784
>>
>> -----Original Message-----
>>>From: systemtap-owner@sourceware.org [mailto:systemtap-owner@sourceware.org] On Behalf Of Wenhua
>Zhang
>>>Sent: Saturday, October 20, 2012 6:00 AM
>>>To: systemtap@sourceware.org
>>>Subject: probe timer.profile registration error
>>>
>>>Hi ,
>>>When I run the stap command as below,
>>>
>>> /opt/systemtap/bin/stap --ldd -d /usr/local/nginx/sbin/nginx
>>> --all-modules -D MAXMAPENTRIES=5120 -D MAXACTION=20000 -D
>>> MAXTRACE=50 -D MAXSTRINGLEN=1024 -D MAXBACKTRACE=100 -x 25017 a.stp
>>> --vp 00001 > a.out
>>>
>>>There is an error:
>>> WARNING: missing unwind/symbol data for module
>>> 'stap_97bdcbebec34bca89d728c7b361aa64_24788'
>>> WARNING: missing unwind/symbol data for module 'uprobes'
>>> Pass 5: starting run.
>>> ERROR: probe timer.profile registration error (rc -16)
>>>
>>> The stap file as:
>>>global s;
>>> global quit = 0;
>>>
>>> probe timer.profile {
>>> if (pid() == target()) {
>>> if (quit) {
>>> foreach (i in s-) {
>>> print_ustack(i);
>>> printf("\t%d\n", @count(s[i]));
>>> }
>>> exit()
>>> } else {
>>> s[ubacktrace()] <<< 1;
>>> }
>>> }
>>> }
>>>
>>> probe timer.s(20) {
>>> quit = 1
>>> }
>>>
>>>Can you help me find what happened and what should I do to resolve it?
>>>Thanks very much.
>>>
>>>Best Wishes,
>>>Wenhua
>>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-21 10:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-20 4:00 probe timer.profile registration error Wenhua Zhang
2012-10-20 18:56 ` Turgis, Frederic
2012-10-21 6:26 ` Wenhua Zhang
2012-10-21 10:33 ` Turgis, Frederic
2012-10-21 1:51 ` Frank Ch. Eigler
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).