[ltt-dev] [RFC] New UST 2.0 Tracepoint Event API
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
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lttng-dev