===================================================================
@@ -354,6 +354,7 @@ void cpufreq_notify_transition(struct cp
adjust_jiffies(CPUFREQ_POSTCHANGE, freqs);
dprintk("FREQ: %lu - CPU: %lu", (unsigned long)freqs->new,
(unsigned long)freqs->cpu);
+ trace_power_switch_state(POWER_PSTATE, freqs->new, freqs->cpu);
trace_power_frequency(POWER_PSTATE, freqs->new, freqs->cpu);
srcu_notifier_call_chain(&cpufreq_transition_notifier_list,
CPUFREQ_POSTCHANGE, freqs);
===================================================================
@@ -38,6 +38,13 @@ DECLARE_EVENT_CLASS(power,
(unsigned long)__entry->state, (unsigned long)__entry->cpu_id)
);
+DEFINE_EVENT(power, power_switch_state,
+
+ TP_PROTO(unsigned int type, unsigned int state, unsigned int cpu_id),
+
+ TP_ARGS(type, state, cpu_id)
+);
+
DEFINE_EVENT(power, power_start,
TP_PROTO(unsigned int type, unsigned int state, unsigned int cpu_id),
===================================================================
@@ -13,5 +13,4 @@
#define CREATE_TRACE_POINTS
#include <trace/events/power.h>
-EXPORT_TRACEPOINT_SYMBOL_GPL(power_frequency);