* [lttng-dev] LTTng event loglevel @ 2015-06-22 21:06 Jeffrey Chen 2015-06-22 21:20 ` Alexandre Montplaisir 0 siblings, 1 reply; 3+ messages in thread From: Jeffrey Chen @ 2015-06-22 21:06 UTC (permalink / raw) Hi: I am reading the LTTng and I am confused about the loglevel in the document. The document talked about it could assign a loglevel to each event. (http://lttng.org/docs/#doc-assigning-log-levels) But, later in the document, it says all events from LTTng are traced as loglevel TRACE_DEBUG_FUNCTION. (http://lttng.org/docs/#doc-liblttng%E2%80%91ust%E2%80%91cyg%E2%80%91profile) So, which is right? Can I assign loglevel to user level traces? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150622/e885de34/attachment.html> ^ permalink raw reply [flat|nested] 3+ messages in thread
* [lttng-dev] LTTng event loglevel 2015-06-22 21:06 [lttng-dev] LTTng event loglevel Jeffrey Chen @ 2015-06-22 21:20 ` Alexandre Montplaisir 2015-06-22 22:03 ` Jeffrey Chen 0 siblings, 1 reply; 3+ messages in thread From: Alexandre Montplaisir @ 2015-06-22 21:20 UTC (permalink / raw) Hi, On 2015-06-22 05:06 PM, Jeffrey Chen wrote: > Hi: > > I am reading the LTTng and I am confused about the loglevel in the document. The document talked about it could assign a loglevel to each event. (http://lttng.org/docs/#doc-assigning-log-levels) This part refers to when you define your own tracepoints in your pogram, using the TRACEPOINT_EVENT macro. > But, later in the document, it says all events from LTTng are traced as loglevel TRACE_DEBUG_FUNCTION. (http://lttng.org/docs/#doc-liblttng%E2%80%91ust%E2%80%91cyg%E2%80%91profile) That part however, refers to using the liblttng-ust-cyg-profile library, to automatically instrument function entries and exits. This library implements the callbacks expected by cyg-profile, and puts the information into UST tracepoints. Since it's this liblttng-ust-cyg-profile library that "defines" the tracepoints here, they are stuck at the log level specified in their definition, which is TRACE_DEBUG_FUNCTION in this case. Hope this helps, Alexandre ^ permalink raw reply [flat|nested] 3+ messages in thread
* [lttng-dev] LTTng event loglevel 2015-06-22 21:20 ` Alexandre Montplaisir @ 2015-06-22 22:03 ` Jeffrey Chen 0 siblings, 0 replies; 3+ messages in thread From: Jeffrey Chen @ 2015-06-22 22:03 UTC (permalink / raw) Thanks for your answer. I tried to use the TRACEPOINT_LOGLEVEL macro, but I was not able to make it working. I have my macro immediately follow my TRACE_EVENT macro "TRACEPOINT_LOGLEVEL(hello_world,my_first_tracepoint,TRACE_WARNING)" I enabled the event with the --loglevel TRACE_WARNING parameter. When I run my code, and I do `lttng list --userspace`, I still get "hello_world:my_first_tracepoint (loglevel: TRACE_DEBUG_LINE (13)) (type: tracepoint)" It looks like my code does not set the loglevel correctly, so it is still using the default loglevel. Am I doing anything wrong? Thanks. > Date: Mon, 22 Jun 2015 17:20:35 -0400 > From: alexmonthy@voxpopuli.im > To: cpthk at hotmail.com > CC: lttng-dev at lists.lttng.org > Subject: Re: [lttng-dev] LTTng event loglevel > > Hi, > > On 2015-06-22 05:06 PM, Jeffrey Chen wrote: > > Hi: > > > > I am reading the LTTng and I am confused about the loglevel in the document. The document talked about it could assign a loglevel to each event. (http://lttng.org/docs/#doc-assigning-log-levels) > > This part refers to when you define your own tracepoints in your pogram, > using the TRACEPOINT_EVENT macro. > > > But, later in the document, it says all events from LTTng are traced as loglevel TRACE_DEBUG_FUNCTION. (http://lttng.org/docs/#doc-liblttng%E2%80%91ust%E2%80%91cyg%E2%80%91profile) > > That part however, refers to using the liblttng-ust-cyg-profile library, > to automatically instrument function entries and exits. This library > implements the callbacks expected by cyg-profile, and puts the > information into UST tracepoints. Since it's this > liblttng-ust-cyg-profile library that "defines" the tracepoints here, > they are stuck at the log level specified in their definition, which is > TRACE_DEBUG_FUNCTION in this case. > > > Hope this helps, > Alexandre > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20150622/9383adc9/attachment.html> ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-06-22 22:03 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-06-22 21:06 [lttng-dev] LTTng event loglevel Jeffrey Chen 2015-06-22 21:20 ` Alexandre Montplaisir 2015-06-22 22:03 ` Jeffrey Chen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox