lkml.org 
[lkml]   [2013]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH v2 0/3] Perf support to SDT markers
Date
Hi Frank,

On Mon, 07 Oct 2013 11:47:09 -0400, Frank Ch. Eigler wrote:
> Hemant Kumar <hkshaw@linux.vnet.ibm.com> writes:
>
>> [...]
>> A simple example to show this follows.
>> - Create a file with .d extension and mention the probe names in it with
>> provider name and marker name.
>> [...]
>> - Now create the probes.h and probes.o file :
>> $ dtrace -C -h -s probes.d -o probes.h
>> $ dtrace -C -G -s probes.d -o probes.o
>> [...]
>
> It may be worthwhile to document an even-simpler case:
>
> - no .d file
> - no invocation of the dtrace python script
> - no generated .h or .o file
> - in the C file, just add:
>
> #include <sys/sdt.h>
>
> void main () {
> /* ... */
> STAP_PROBE(provider_name,probe_name);
> /* ... */
> }
>
> - gcc file.c
> - stap -l 'process("./a.out").mark("*")' to list

Yes, looks much simpler and better.

Hemant, would you add it to the doc too?

Thanks,
Namhyung


\
 
 \ /
  Last update: 2013-10-08 11:41    [W:0.103 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site