#include <lttng/tracepoint-event.h>
#include <linux/ktime.h>
-#include <linux/version.h>
+#include <lttng/kernel-version.h>
LTTNG_TRACEPOINT_EVENT_CLASS(power_cpu,
)
)
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0))
LTTNG_TRACEPOINT_EVENT_CLASS(power_wakeup_source,
TP_PROTO(const char *name, unsigned int state),
TP_ARGS(name, state)
)
-#endif
#ifdef CONFIG_EVENT_POWER_TRACING_DEPRECATED
events get removed */
static inline void trace_power_start(u64 type, u64 state, u64 cpuid) {};
static inline void trace_power_end(u64 cpuid) {};
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
static inline void trace_power_start_rcuidle(u64 type, u64 state, u64 cpuid) {};
static inline void trace_power_end_rcuidle(u64 cpuid) {};
-#endif
static inline void trace_power_frequency(u64 type, u64 state, u64 cpuid) {};
#endif /* _PWR_EVENT_AVOID_DOUBLE_DEFINING_DEPRECATED */