[lttng-dev] Multiple log level for SAME tracepoints
Chidhu R
chid1989 at gmail.com
Wed Apr 29 14:37:28 EDT 2015
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>
More information about the lttng-dev
mailing list