summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/power.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/trace/events/power.h b/include/trace/events/power.h
index 63031aa5b6dd..9c9699a2b457 100644
--- a/include/trace/events/power.h
+++ b/include/trace/events/power.h
@@ -52,6 +52,11 @@ enum {
POWER_CPU_SCALE_DONE,
};
+enum {
+ POWER_CPU_CLUSTER_START,
+ POWER_CPU_CLUSTER_DONE,
+};
+
#endif
TRACE_EVENT(cpu_hotplug,
@@ -99,6 +104,24 @@ TRACE_EVENT(cpu_scale,
(unsigned long)__entry->state)
);
+TRACE_EVENT(cpu_cluster,
+
+ TP_PROTO(int state),
+
+ TP_ARGS(state),
+
+ TP_STRUCT__entry(
+ __field(u64, state)
+ ),
+
+ TP_fast_assign(
+ __entry->state = state;
+ ),
+
+ TP_printk("state=%lu",
+ (unsigned long)__entry->state)
+);
+
DEFINE_EVENT(cpu, cpu_frequency,
TP_PROTO(unsigned int frequency, unsigned int cpu_id),