public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* Profiling Kernel function blocks
@ 2012-08-02 14:17 Domenico Di Leo
  2012-08-02 14:48 ` Domenico Di Leo
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Domenico Di Leo @ 2012-08-02 14:17 UTC (permalink / raw)
  To: systemtap

Hi,
I was wondering if anybody has experienced a
hang of the entire OS when profiling
the functions of the kernel module.
In other words, when I run the following script
probe kernel.function("*@kernel/*.c").return{
     printf("%s  %s", threadindent(-1),probefunc());
}
the entire OS gets stuck.
I also tried with
probe kernel.function("*@kernel/*sched.c").return{
     printf("%s  %s", threadindent(-1),probefunc());
}
and after some printing the OS gets stuck again.

I'm using systemtap v1.4 and kernel 2.6.24 on Gentoo.
Thank

-- 
Domenico Di Leo, PhD student, Università degli Studi di Napoli Federico II
Ph:     +39 081 676770
Fax:    +39 081 676574
Web: http://wpage.unina.it/domenico.dileo (WP)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Profiling Kernel function blocks
  2012-08-02 14:17 Profiling Kernel function blocks Domenico Di Leo
@ 2012-08-02 14:48 ` Domenico Di Leo
  2012-08-02 15:08 ` Mark Wielaard
  2012-08-02 16:28 ` Frank Ch. Eigler
  2 siblings, 0 replies; 6+ messages in thread
From: Domenico Di Leo @ 2012-08-02 14:48 UTC (permalink / raw)
  To: systemtap

Just I typo, I meant thread_indent

On 8/2/2012 4:17 PM, Domenico Di Leo wrote:
> Hi,
> I was wondering if anybody has experienced a
> hang of the entire OS when profiling
> the functions of the kernel module.
> In other words, when I run the following script
> probe kernel.function("*@kernel/*.c").return{
>     printf("%s  %s", threadindent(-1),probefunc());
> }
> the entire OS gets stuck.
> I also tried with
> probe kernel.function("*@kernel/*sched.c").return{
>     printf("%s  %s", threadindent(-1),probefunc());
> }
> and after some printing the OS gets stuck again.
>
> I'm using systemtap v1.4 and kernel 2.6.24 on Gentoo.
> Thank
>


-- 
Domenico Di Leo, PhD student, Università degli Studi di Napoli Federico II
Ph:     +39 081 676770
Fax:    +39 081 676574
Web: http://wpage.unina.it/domenico.dileo (WP)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Profiling Kernel function blocks
  2012-08-02 14:17 Profiling Kernel function blocks Domenico Di Leo
  2012-08-02 14:48 ` Domenico Di Leo
@ 2012-08-02 15:08 ` Mark Wielaard
  2012-08-03 13:28   ` Domenico Di Leo
  2012-08-02 16:28 ` Frank Ch. Eigler
  2 siblings, 1 reply; 6+ messages in thread
From: Mark Wielaard @ 2012-08-02 15:08 UTC (permalink / raw)
  To: Domenico Di Leo; +Cc: systemtap

On Thu, 2012-08-02 at 16:17 +0200, Domenico Di Leo wrote:
> I was wondering if anybody has experienced a
> hang of the entire OS when profiling
> the functions of the kernel module.
> In other words, when I run the following script
> probe kernel.function("*@kernel/*.c").return{
>      printf("%s  %s", threadindent(-1),probefunc());
> }
> the entire OS gets stuck.
> I also tried with
> probe kernel.function("*@kernel/*sched.c").return{
>      printf("%s  %s", threadindent(-1),probefunc());
> }
> and after some printing the OS gets stuck again.

This sounds like:
Bug 2725 - function("*") probes sometimes crash & burn
http://sourceware.org/bugzilla/show_bug.cgi?id=2725

> I'm using systemtap v1.4 and kernel 2.6.24 on Gentoo.

Those are pretty old. You might want to try systemtap 1.8.

Cheers,

Mark

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Profiling Kernel function blocks
  2012-08-02 14:17 Profiling Kernel function blocks Domenico Di Leo
  2012-08-02 14:48 ` Domenico Di Leo
  2012-08-02 15:08 ` Mark Wielaard
@ 2012-08-02 16:28 ` Frank Ch. Eigler
  2 siblings, 0 replies; 6+ messages in thread
From: Frank Ch. Eigler @ 2012-08-02 16:28 UTC (permalink / raw)
  To: Domenico Di Leo; +Cc: systemtap

Domenico Di Leo <domenico.dileo@unina.it> writes:

> [...]
> In other words, when I run the following script
> probe kernel.function("*@kernel/*.c").return{
>     printf("%s  %s", threadindent(-1),probefunc());
> }
> the entire OS gets stuck.
> [...]

Several parts of the kernel are not capable of tolerating kprobes in
various places.  While mjw is right to point to our PR2725, as far as
we know, these are long-standing kernel (rather than systemtap) bugs
that LKML has not been able (or find time?) to solve.

Our normal suggestion is to try later rather than earlier kernel and
systemtap versions, and limit wildcarded probes like that to smaller
and less-sensitive sections of the kernel.

- FChE

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Profiling Kernel function blocks
  2012-08-02 15:08 ` Mark Wielaard
@ 2012-08-03 13:28   ` Domenico Di Leo
  2012-08-03 13:33     ` Mark Wielaard
  0 siblings, 1 reply; 6+ messages in thread
From: Domenico Di Leo @ 2012-08-03 13:28 UTC (permalink / raw)
  To: Mark Wielaard; +Cc: systemtap

I tried with systemtap 1.8, I can't change Kernel version.
and now I get the error message
Unknown symbol system_lookup_name during Pass 4.
The kernel is configured with CONFIG_KALLSUYMS_ALL=y.

On 8/2/2012 5:07 PM, Mark Wielaard wrote:
> On Thu, 2012-08-02 at 16:17 +0200, Domenico Di Leo wrote:
>> I was wondering if anybody has experienced a
>> hang of the entire OS when profiling
>> the functions of the kernel module.
>> In other words, when I run the following script
>> probe kernel.function("*@kernel/*.c").return{
>>       printf("%s  %s", threadindent(-1),probefunc());
>> }
>> the entire OS gets stuck.
>> I also tried with
>> probe kernel.function("*@kernel/*sched.c").return{
>>       printf("%s  %s", threadindent(-1),probefunc());
>> }
>> and after some printing the OS gets stuck again.
> This sounds like:
> Bug 2725 - function("*") probes sometimes crash&  burn
> http://sourceware.org/bugzilla/show_bug.cgi?id=2725
>
>> I'm using systemtap v1.4 and kernel 2.6.24 on Gentoo.
> Those are pretty old. You might want to try systemtap 1.8.
>
> Cheers,
>
> Mark
>


-- 
Domenico Di Leo, PhD student, Università degli Studi di Napoli Federico II
Ph:     +39 081 676770
Fax:    +39 081 676574
Web: http://wpage.unina.it/domenico.dileo (WP)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Profiling Kernel function blocks
  2012-08-03 13:28   ` Domenico Di Leo
@ 2012-08-03 13:33     ` Mark Wielaard
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Wielaard @ 2012-08-03 13:33 UTC (permalink / raw)
  To: Domenico Di Leo; +Cc: systemtap

On Fri, 2012-08-03 at 15:28 +0200, Domenico Di Leo wrote:
> I tried with systemtap 1.8, I can't change Kernel version.
> and now I get the error message
> Unknown symbol system_lookup_name during Pass 4.

Strange, I don't know why that symbol would be used.
Could you provide a bit more info?
For example the actual command/script you are trying to run and the -v
output? And/Or the stap-report output, etc.

Thanks,

Mark

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-03 13:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-02 14:17 Profiling Kernel function blocks Domenico Di Leo
2012-08-02 14:48 ` Domenico Di Leo
2012-08-02 15:08 ` Mark Wielaard
2012-08-03 13:28   ` Domenico Di Leo
2012-08-03 13:33     ` Mark Wielaard
2012-08-02 16:28 ` 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).