[lttng-dev] Reusing tracepoint definition with same type of arguments but in different order

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed Jul 2 10:26:22 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:09:48 AM
> Subject: [lttng-dev] Reusing tracepoint definition with same type of arguments but in different order
> 
> Hi guys,
> 
> Is it possible to reuse a tracepoint definition for a different trace
> with same type (and number) of arguments but in different order?
> 
> Specifically, if I have the arguments in the following order in the
> definition
> 
>         TP_ARGS(
>                 int, anint,
>                 long *, values,
>                 char *, text,
>                 double, doublearg,
>                 float, floatarg,
>                 bool, boolarg
>          )
> 
> Using some technique, would this definition be directly usable for a
> tracepoint with the argument order -  "long *, int, char *, double,
> float, bool" or some other order for the matter?

No.

> 
> I understand that I can always change the order appropriately
> according to the definition in the trace-point insertion but I am
> interested in knowing if there is a way to even avoid this. Please let
> me know.

Thanks,

Mathieu

> 
> 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