aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRuchi Kandoi <kandoiruchi@google.com>2015-11-19 16:07:19 -0800
committerRuchi Kandoi <kandoiruchi@google.com>2015-11-30 23:45:57 +0000
commitdb1dc42c7de051b1a845e09b63e82b3e5e60d481 (patch)
tree6e60e392316feebb188d3ad4e54cd9bc8849780a /include
parent0627fa13d3a6a79cdfcdef282bee5455e21055b6 (diff)
trace: cpufreq: Add tracing for min/max cpufreq
Change-Id: I73f6ec437c1f805437d9376abb6510d1364b07ec Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/power.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/include/trace/events/power.h b/include/trace/events/power.h
index 274021214b4e..a6448976b877 100644
--- a/include/trace/events/power.h
+++ b/include/trace/events/power.h
@@ -111,8 +111,32 @@ DEFINE_EVENT(cpu, cpu_frequency,
TP_ARGS(frequency, cpu_id)
);
-TRACE_EVENT(device_pm_callback_start,
+TRACE_EVENT(cpu_frequency_limits,
+
+ TP_PROTO(unsigned int max_freq, unsigned int min_freq,
+ unsigned int cpu_id),
+
+ TP_ARGS(max_freq, min_freq, cpu_id),
+
+ TP_STRUCT__entry(
+ __field( u32, min_freq )
+ __field( u32, max_freq )
+ __field( u32, cpu_id )
+ ),
+ TP_fast_assign(
+ __entry->min_freq = min_freq;
+ __entry->max_freq = min_freq;
+ __entry->cpu_id = cpu_id;
+ ),
+
+ TP_printk("min=%lu max=%lu cpu_id=%lu",
+ (unsigned long)__entry->min_freq,
+ (unsigned long)__entry->max_freq,
+ (unsigned long)__entry->cpu_id)
+);
+
+TRACE_EVENT(device_pm_callback_start,
TP_PROTO(struct device *dev, const char *pm_ops, int event),
TP_ARGS(dev, pm_ops, event),