From: chid1989@gmail.com (Chidhu R)
Subject: [lttng-dev] Multiple log level for SAME tracepoints
Date: Wed, 29 Apr 2015 11:37:28 -0700 [thread overview]
Message-ID: <CAL1ZhONcn462-oWPKBB529YtwOaDaQDz04ETBHuiJtdKV1F_Wg@mail.gmail.com> (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>
reply other threads:[~2015-04-29 18:37 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAL1ZhONcn462-oWPKBB529YtwOaDaQDz04ETBHuiJtdKV1F_Wg@mail.gmail.com \
--to=chid1989@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox