aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorPunit Agrawal <punit.agrawal@arm.com>2014-07-29 06:50:49 -0400
committerEduardo Valentin <edubezval@gmail.com>2014-07-29 09:27:54 -0400
commit39811569e43a81417bc0ddca3d0c7658c3dcd4b0 (patch)
tree72f3375f4000c27ba0f15d0a88c64d5536c32a8d /include/trace
parent100a8fdbf525bb11796692a713c267be6523a890 (diff)
thermal: trace: Trace when a cooling device's state is updated
Introduce and use an event to trace when a cooling device's state is updated. This is useful to follow the effect of governor decisions on cooling devices. Cc: Zhang Rui <rui.zhang@intel.com> Cc: Eduardo Valentin <edubezval@gmail.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@redhat.com> Signed-off-by: Punit Agrawal <punit.agrawal@arm.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/thermal.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/trace/events/thermal.h b/include/trace/events/thermal.h
index 8c5ca96eccd6..894a79ea0686 100644
--- a/include/trace/events/thermal.h
+++ b/include/trace/events/thermal.h
@@ -32,6 +32,25 @@ TRACE_EVENT(thermal_temperature,
32 __entry->temp) 32 __entry->temp)
33); 33);
34 34
35TRACE_EVENT(cdev_update,
36
37 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long target),
38
39 TP_ARGS(cdev, target),
40
41 TP_STRUCT__entry(
42 __string(type, cdev->type)
43 __field(unsigned long, target)
44 ),
45
46 TP_fast_assign(
47 __assign_str(type, cdev->type);
48 __entry->target = target;
49 ),
50
51 TP_printk("type=%s target=%lu", __get_str(type), __entry->target)
52);
53
35#endif /* _TRACE_THERMAL_H */ 54#endif /* _TRACE_THERMAL_H */
36 55
37/* This part must be outside protection */ 56/* This part must be outside protection */