[for-next][PATCH 3/8] timers: Make flags output in the timer_start tracepoint useful

2017-02-15 Thread Steven Rostedt
From: Thomas Gleixner The timer flags in the timer_start trace event contain lots of useful information, but the meaning is not clear in the trace output. Making tools rely on the bit positions is bad as they might change over time. Decode the flags in the print out. Tools can retrieve the bits

Re: [PATCH V2] timers: Make flags output in the timer_start tracepoint useful

2017-02-10 Thread Steven Rostedt
On Fri, 10 Feb 2017 16:41:15 +0100 (CET) Thomas Gleixner wrote: > The timer flags in the timer_start trace event contain lots of useful > information, but the meaning is not clear in the trace output. Making tools > rely on the bit positions is bad as they might change over time. > > Decode the

timers: Make flags output in the timer_start tracepoint useful

2017-02-10 Thread Thomas Gleixner
The timer flags in the timer_start trace event contain lots of useful information, but the meaning is not clear in the trace output because its just printed as a hex value. Making tools rely on the bit positions is bad as they might change over time. Decode the flags in the printout. Tools can ret

[PATCH V2] timers: Make flags output in the timer_start tracepoint useful

2017-02-10 Thread Thomas Gleixner
The timer flags in the timer_start trace event contain lots of useful information, but the meaning is not clear in the trace output. Making tools rely on the bit positions is bad as they might change over time. Decode the flags in the print out. Tools can retrieve the bits and their meaning from t

Re: timers: Make flags output in the timer_start tracepoint useful

2017-02-10 Thread Thomas Gleixner
On Fri, 10 Feb 2017, Steven Rostedt wrote: > On Fri, 10 Feb 2017 15:37:11 +0100 (CET) > Thomas Gleixner wrote: > > > > > --- a/include/trace/events/timer.h > > > > +++ b/include/trace/events/timer.h > > > > @@ -36,6 +36,13 @@ DEFINE_EVENT(timer_class, timer_init, > > > > TP_ARGS(timer) >

Re: timers: Make flags output in the timer_start tracepoint useful

2017-02-10 Thread Steven Rostedt
On Fri, 10 Feb 2017 15:37:11 +0100 (CET) Thomas Gleixner wrote: > > > --- a/include/trace/events/timer.h > > > +++ b/include/trace/events/timer.h > > > @@ -36,6 +36,13 @@ DEFINE_EVENT(timer_class, timer_init, > > > TP_ARGS(timer) > > > ); > > > > > > +#define decode_timer_flags(flags)

Re: timers: Make flags output in the timer_start tracepoint useful

2017-02-10 Thread Thomas Gleixner
On Fri, 10 Feb 2017, Steven Rostedt wrote: > On Fri, 10 Feb 2017 14:25:03 +0100 (CET) > Thomas Gleixner wrote: > > > The timer flags in the timer_start trace event contain lots of useful > > information, but the meaning is not clear in the trace output because its > > just printed as a hex value

Re: timers: Make flags output in the timer_start tracepoint useful

2017-02-10 Thread Steven Rostedt
On Fri, 10 Feb 2017 14:25:03 +0100 (CET) Thomas Gleixner wrote: > The timer flags in the timer_start trace event contain lots of useful > information, but the meaning is not clear in the trace output because its > just printed as a hex value. Making tools rely on the bit positions is bad > as the