[ltt-dev] [RFC] New UST 2.0 Tracepoint Event API
Aaron Spear
aspear at vmware.com
Tue Aug 2 22:15:34 EDT 2011
> > I was also wondering if putting a "loglevel" information (could be
>
> > optional) into the TRACEPOINT_EVENT declaration would be useful ?
> > This
>
> > could define log levels such as debug, info, warning, and error.
>
> I think that'd be useful - ETW does this on Windows, FWIW.
> Being able to enable/disable these sub-classes of events is probably
> useful
> and it shows the programmers general intent with each event too.
Hi Mathieu. A couple of questions at this point:
1) would the loglevel be inserted into every event as an additional attribute? As what, an integer?
2) Would you leave the interpretation and allowable values for "loglevel" open ended? It seems like that could be used for different levels of verbosity (but perhaps that is what "debug" is, verbose?
3) would it be possible to filter/disallow tracing of events dynamically based on the log level? I have done this a few times in the past in various systems I have designed.
cheers,
Aaron Spear
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.casi.polymtl.ca/pipermail/lttng-dev/attachments/20110802/ff7b59ff/attachment-0002.htm>
More information about the lttng-dev
mailing list