[lttng-dev] Multiple log level for SAME tracepoints

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Thu May 7 13:32:47 EDT 2015


----- Original Message -----

> Hi,

> I am having a situation where the same tracepoint should be used with
> multiple loglevels.

> Say for example, I have a tracepoint called HERE which prints the string "I
> am here". Consider the following code.

> int *a = (int *)malloc(10);
> if(a) {
> tracepoint(HERE); // This can be INFO log level
> }
> else {
> // Malloc failed
> tracepoint(HERE); // This is critical and needs CRIT log level.
> }

> I am trying not to define multiple tracepoints just for this case. Can we do
> this with LTTng?

No, this is not supported. 

Thanks, 

Mathieu 

> -- Chid

> _______________________________________________
> 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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150507/1731cd46/attachment.html>


More information about the lttng-dev mailing list