Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] Multiple log level for SAME tracepoints
@ 2015-04-29 18:37 Chidhu R
  0 siblings, 0 replies; only message in thread
From: Chidhu R @ 2015-04-29 18:37 UTC (permalink / raw)


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?

-- Chid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150429/4b39d772/attachment.html>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-29 18:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-29 18:37 [lttng-dev] Multiple log level for SAME tracepoints Chidhu R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox