[lttng-dev] Simple question about tracepoint defs

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed Jul 2 10:25:20 EDT 2014


----- Original Message -----
> From: "Sandeep K Chaudhary" <babbusandy2006 at gmail.com>
> To: lttng-dev at lists.lttng.org
> Sent: Wednesday, July 2, 2014 2:02:25 AM
> Subject: [lttng-dev] Simple question about tracepoint defs
> 
> Hi guys,
> 
> I have a simple question about tracepoint definitions.
> 
> Is it not possible to have two or more trace-point definitions in the
> same header file?
> 
> Reading from the manual[1] as
> 
> "There can be an arbitrary number of tracepoint providers within an
> application, but they must each have their own provider name. Duplicate
> provider names are not allowed.",
> 
> I get the idea that it is not possible since each tracepoint provider
> needs to have unique name, and therefore, should be in a different
> header file.
> 
> Please confirm if this is the case.
> 
> It would be much better for me if it is possible to have multiple
> trace-point definitions in the same header file.

Yes, it is possible. See lttng-ust

doc/examples/demo/ust_tests_demo.h

Thanks,

Mathieu

> 
> [1] https://lttng.org/files/doc/man-pages/man3/lttng-ust.3.html
> 
> Thanks and regards,
> Sandeep.
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list