Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1346855

Re: [PATCH] thermal: trace: migrating thermal traces to use TRACE_DEFINE_ENUM() macros

From Steven Rostedt <rostedt@goodmis.org>
Newsgroups linux.kernel
Subject Re: [PATCH] thermal: trace: migrating thermal traces to use TRACE_DEFINE_ENUM() macros
Date 2016-03-01 19:30 +0100
Message-ID <r7Xdy-4kR-53@gated-at.bofh.it> (permalink)
References <r7Wr7-3Ko-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue,  1 Mar 2016 17:38:54 +0000
Michele Di Giorgio <michele.digiorgio@arm.com> wrote:

> Userspace tools are not aware of how to convert the enums provided by
> the tracepoints to their corresponding strings.
> 
> Adding TRACE_DEFINE_ENUM() macros allows to make the enums available
> to userspace to let the tools know what those enum values represent.
> 
> In particular, for thermal zone trip types what we obtained before was
> something like:
> 
> kworker/1:1-460   [001]   320.372732: thermal_zone_trip:    thermal_zone=soc
> 				id=0 trip=1 trip_type=1
> 
> Unfortunately, userspace tools do not know how to convert enum values to
> strings and as a consequence they can only forward the enum value to the
> output. By using TRACE_DEFINE_ENUM() macros for thermal traces we get the
> following trace line:
> 
> kworker/1:1-460   [001]   320.372732: thermal_zone_trip:    thermal_zone=soc
> 				id=0 trip=1 trip_type=PASSIVE
> 
> Userspace tools are now able to better understand the meaning of the trip_type
> and provide the user with more readable information.
> 

Acked-by: Steven Rostedt <rostedt@goodmis.org>

-- Steve

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] thermal: trace: migrating thermal traces to use TRACE_DEFINE_ENUM() macros Michele Di Giorgio <michele.digiorgio@arm.com> - 2016-03-01 18:40 +0100
  Re: [PATCH] thermal: trace: migrating thermal traces to use  TRACE_DEFINE_ENUM() macros Steven Rostedt <rostedt@goodmis.org> - 2016-03-01 19:30 +0100
    Re: [PATCH] thermal: trace: migrating thermal traces to use  TRACE_DEFINE_ENUM() macros Michele DiGiorgio <michele.digiorgio@arm.com> - 2016-03-03 18:20 +0100
      Re: [PATCH] thermal: trace: migrating thermal traces to use  TRACE_DEFINE_ENUM() macros Steven Rostedt <rostedt@goodmis.org> - 2016-03-03 18:30 +0100

csiph-web