summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorJuri Lelli <juri.lelli@arm.com>2015-04-30 17:35:23 +0100
committerAmit Pundir <amit.pundir@linaro.org>2016-09-14 14:59:32 +0530
commitbd818ccdeef84bef9fed1cdbd143018a89b63454 (patch)
treebe6397ab5fb3ceee8314d7715d65e1a7a7a7eb6f /include/trace
parent69852bd9a380fdd066e156d3511db645340b9e8c (diff)
DEBUG: sched,cpufreq: add cpu_capacity change tracepoint
This is useful when we want to compare cpu utilization and cpu curr capacity side by side. Signed-off-by: Juri Lelli <juri.lelli@arm.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/power.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/trace/events/power.h b/include/trace/events/power.h
index 9af0d898016a..8924cc2b4ca8 100644
--- a/include/trace/events/power.h
+++ b/include/trace/events/power.h
@@ -145,6 +145,13 @@ TRACE_EVENT(cpu_frequency_limits,
(unsigned long)__entry->cpu_id)
);
+DEFINE_EVENT(cpu, cpu_capacity,
+
+ TP_PROTO(unsigned int capacity, unsigned int cpu_id),
+
+ TP_ARGS(capacity, cpu_id)
+);
+
TRACE_EVENT(device_pm_callback_start,
TP_PROTO(struct device *dev, const char *pm_ops, int event),