X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Finstrumentation%2Fevents%2Fpower.h;h=3addd7ef36e9c1fee527e836b543e16312778421;hb=5f4c791e2ad2c814101ccdb500e65543f2792c41;hp=dd03d60a1bdc2c98c082b1e1df94ba258fd559cd;hpb=4f47ccf08dfac3d5db7553eb8b40bdab19764727;p=lttng-modules.git diff --git a/include/instrumentation/events/power.h b/include/instrumentation/events/power.h index dd03d60a..3addd7ef 100644 --- a/include/instrumentation/events/power.h +++ b/include/instrumentation/events/power.h @@ -7,7 +7,7 @@ #include #include -#include +#include LTTNG_TRACEPOINT_EVENT_CLASS(power_cpu, @@ -59,7 +59,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(machine_suspend, ) ) -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,5,0)) LTTNG_TRACEPOINT_EVENT_CLASS(power_wakeup_source, TP_PROTO(const char *name, unsigned int state), @@ -160,7 +160,7 @@ enum { 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)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_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