aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMichele Di Giorgio <[email protected]>2016-03-01 17:38:54 +0000
committerZhang Rui <[email protected]>2016-03-15 07:51:40 +0800
commitd0b45880b2981e4b0edf1ce873114bf4e57061d5 (patch)
tree2da9c9c652331b8e7808f2311b57fbf5d1714b14 /tools/perf/scripts/python/export-to-postgresql.py
parentfc77dbd34c5c99bce46d40a2491937c3bcbd10af (diff)
thermal: trace: migrating thermal traces to use TRACE_DEFINE_ENUM() macros
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. CC: Steven Rostedt <[email protected]> CC: Eduardo Valentin <[email protected]> Signed-off-by: Michele Di Giorgio <[email protected]> Acked-by: Steven Rostedt <[email protected]> Acked-by: Javi Merino <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions