public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* mark probes : usage examples?
@ 2008-08-24 22:46 Om Narasimhan
  2008-08-24 23:38 ` Om Narasimhan
  0 siblings, 1 reply; 4+ messages in thread
From: Om Narasimhan @ 2008-08-24 22:46 UTC (permalink / raw)
  To: systemtap

Could anybody point me to some examples for

probe kernel.mark("XX")

Can't find any in the systemtap examples or tapsets.
I would like to know how to identify kernel markers in the kernel source 
code as well.

Thanks,
Om.

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

* Re: mark probes : usage examples?
  2008-08-24 22:46 mark probes : usage examples? Om Narasimhan
@ 2008-08-24 23:38 ` Om Narasimhan
  2008-08-25  1:39   ` Wenji Huang
  2008-08-25 12:08   ` Frank Ch. Eigler
  0 siblings, 2 replies; 4+ messages in thread
From: Om Narasimhan @ 2008-08-24 23:38 UTC (permalink / raw)
  To: systemtap

Om Narasimhan wrote:
> Could anybody point me to some examples for
> 
> probe kernel.mark("XX")
> 
> Can't find any in the systemtap examples or tapsets.
> I would like to know how to identify kernel markers in the kernel source 
> code as well.
> 
> Thanks,
> Om.
I think I got the answers.
 From man pages,
probe kernel.mark("getuid")

But I can't see any markers in my kernel source (which is pretty new)
$ pwd
/space/src/linux-exp

$ head -n 5 Makefile
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 27
EXTRAVERSION = -rc3
NAME = Rotary Wombat

$ findc | xargs grep -En "STAP_MARK"
$

findc is my function for find . -iname "*.[ch]"

Does it mean that we don't have any markers in kernel source so far?

Thanks,
Om.

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

* Re: mark probes : usage examples?
  2008-08-24 23:38 ` Om Narasimhan
@ 2008-08-25  1:39   ` Wenji Huang
  2008-08-25 12:08   ` Frank Ch. Eigler
  1 sibling, 0 replies; 4+ messages in thread
From: Wenji Huang @ 2008-08-25  1:39 UTC (permalink / raw)
  To: Om Narasimhan; +Cc: systemtap

Om Narasimhan wrote:
> Om Narasimhan wrote:
>> Could anybody point me to some examples for
>>
>> probe kernel.mark("XX")
>>
>> Can't find any in the systemtap examples or tapsets.
>> I would like to know how to identify kernel markers in the kernel 
>> source code as well.
>>
>> Thanks,
>> Om.
> I think I got the answers.
>  From man pages,
> probe kernel.mark("getuid")
> 
> But I can't see any markers in my kernel source (which is pretty new)
> $ pwd
> /space/src/linux-exp
> 
> $ head -n 5 Makefile
> VERSION = 2
> PATCHLEVEL = 6
> SUBLEVEL = 27
> EXTRAVERSION = -rc3
> NAME = Rotary Wombat
> 
> $ findc | xargs grep -En "STAP_MARK"
> $
> 
> findc is my function for find . -iname "*.[ch]"
> 
> Does it mean that we don't have any markers in kernel source so far?

Yes, marker is the facility which can enable users to define static 
probe point in kernel. Users need to insert trace_mark macro into the 
place where they like.

Currently, there is no well-defined marker points in kernel. Maybe 
later, lttng could be merged into mainline. That will provide some 
built-in ones.

Regards,
Wenji

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

* Re: mark probes : usage examples?
  2008-08-24 23:38 ` Om Narasimhan
  2008-08-25  1:39   ` Wenji Huang
@ 2008-08-25 12:08   ` Frank Ch. Eigler
  1 sibling, 0 replies; 4+ messages in thread
From: Frank Ch. Eigler @ 2008-08-25 12:08 UTC (permalink / raw)
  To: Om Narasimhan; +Cc: systemtap

Om Narasimhan <om.turyx@gmail.com> writes:

> [...]
> But I can't see any markers in my kernel source (which is pretty new)

You can have systemtap list them for you:
    % stap -l 'kernel.mark("*")'

> $ findc | xargs grep -En "STAP_MARK"
> findc is my function for find . -iname "*.[ch]"

Look for "trace_mark" instead.  There are a few in recent kernels, but
they may have been compiled out with some CONFIG_FOO=n flags.

- FChE

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

end of thread, other threads:[~2008-08-25 12:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-24 22:46 mark probes : usage examples? Om Narasimhan
2008-08-24 23:38 ` Om Narasimhan
2008-08-25  1:39   ` Wenji Huang
2008-08-25 12:08   ` 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).