summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorJuri Lelli <juri.lelli@arm.com>2015-11-09 12:06:24 +0000
committerLeo Yan <leo.yan@linaro.org>2016-05-10 16:53:25 +0800
commit99ed4e57cb4231b2561ec4a6433722dcd4a19a9e (patch)
tree0fa6424f04c8dfdf5012eeaf53c0ef3cccee4d6a /include/trace
parenta2a6dc750833243b3b49d016291ae1133196759a (diff)
DEBUG: sched: add tracepoint for cpu/freq scale invariance
Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/sched.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h
index 9b90c57517a9..20a7216f8abb 100644
--- a/include/trace/events/sched.h
+++ b/include/trace/events/sched.h
@@ -562,6 +562,30 @@ TRACE_EVENT(sched_wake_idle_without_ipi,
TP_printk("cpu=%d", __entry->cpu)
);
+
+TRACE_EVENT(sched_contrib_scale_f,
+
+ TP_PROTO(int cpu, unsigned long freq_scale_factor,
+ unsigned long cpu_scale_factor),
+
+ TP_ARGS(cpu, freq_scale_factor, cpu_scale_factor),
+
+ TP_STRUCT__entry(
+ __field(int, cpu)
+ __field(unsigned long, freq_scale_factor)
+ __field(unsigned long, cpu_scale_factor)
+ ),
+
+ TP_fast_assign(
+ __entry->cpu = cpu;
+ __entry->freq_scale_factor = freq_scale_factor;
+ __entry->cpu_scale_factor = cpu_scale_factor;
+ ),
+
+ TP_printk("cpu=%d freq_scale_factor=%lu cpu_scale_factor=%lu",
+ __entry->cpu, __entry->freq_scale_factor,
+ __entry->cpu_scale_factor)
+);
#endif /* _TRACE_SCHED_H */
/* This part must be outside protection */