projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Namespace kernel version macros
[lttng-modules.git]
/
instrumentation
/
events
/
lttng-module
/
power.h
diff --git
a/instrumentation/events/lttng-module/power.h
b/instrumentation/events/lttng-module/power.h
index 2146a377b09405c9943e5a254e3912b6dfaf9a38..09cf7caf6c6412cf3861441253cc498220246d59 100644
(file)
--- a/
instrumentation/events/lttng-module/power.h
+++ b/
instrumentation/events/lttng-module/power.h
@@
-7,9
+7,9
@@
#include <probes/lttng-tracepoint-event.h>
#include <linux/ktime.h>
#include <probes/lttng-tracepoint-event.h>
#include <linux/ktime.h>
-#include <l
inux/
version.h>
+#include <l
ttng-kernel-
version.h>
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,38))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,38))
LTTNG_TRACEPOINT_EVENT_CLASS(power_cpu,
TP_PROTO(unsigned int state, unsigned int cpu_id),
LTTNG_TRACEPOINT_EVENT_CLASS(power_cpu,
TP_PROTO(unsigned int state, unsigned int cpu_id),
@@
-61,7
+61,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(machine_suspend,
)
#endif
)
#endif
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,5,0))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,5,0))
LTTNG_TRACEPOINT_EVENT_CLASS(power_wakeup_source,
TP_PROTO(const char *name, unsigned int state),
LTTNG_TRACEPOINT_EVENT_CLASS(power_wakeup_source,
TP_PROTO(const char *name, unsigned int state),
@@
-93,7
+93,7
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(power_wakeup_source, wakeup_source_deactivat
)
#endif
)
#endif
-#if (L
INUX_VERSION_CODE <
KERNEL_VERSION(2,6,38))
+#if (L
TTNG_LINUX_VERSION_CODE < LTTNG_
KERNEL_VERSION(2,6,38))
#undef CONFIG_EVENT_POWER_TRACING_DEPRECATED
#define CONFIG_EVENT_POWER_TRACING_DEPRECATED
#define _PWR_EVENT_AVOID_DOUBLE_DEFINING_DEPRECATED
#undef CONFIG_EVENT_POWER_TRACING_DEPRECATED
#define CONFIG_EVENT_POWER_TRACING_DEPRECATED
#define _PWR_EVENT_AVOID_DOUBLE_DEFINING_DEPRECATED
@@
-107,7
+107,7
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(power_wakeup_source, wakeup_source_deactivat
*/
LTTNG_TRACEPOINT_EVENT_CLASS(power,
*/
LTTNG_TRACEPOINT_EVENT_CLASS(power,
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,36))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,36))
TP_PROTO(unsigned int type, unsigned int state, unsigned int cpu_id),
TP_ARGS(type, state, cpu_id),
TP_PROTO(unsigned int type, unsigned int state, unsigned int cpu_id),
TP_ARGS(type, state, cpu_id),
@@
-120,7
+120,7
@@
LTTNG_TRACEPOINT_EVENT_CLASS(power,
TP_FIELDS(
ctf_integer(u64, type, type)
ctf_integer(u64, state, state)
TP_FIELDS(
ctf_integer(u64, type, type)
ctf_integer(u64, state, state)
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,36))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,36))
ctf_integer(u64, cpu_id, cpu_id)
#endif
)
ctf_integer(u64, cpu_id, cpu_id)
#endif
)
@@
-128,7
+128,7
@@
LTTNG_TRACEPOINT_EVENT_CLASS(power,
LTTNG_TRACEPOINT_EVENT_INSTANCE(power, power_start,
LTTNG_TRACEPOINT_EVENT_INSTANCE(power, power_start,
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,36))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,36))
TP_PROTO(unsigned int type, unsigned int state, unsigned int cpu_id),
TP_ARGS(type, state, cpu_id)
TP_PROTO(unsigned int type, unsigned int state, unsigned int cpu_id),
TP_ARGS(type, state, cpu_id)
@@
-141,7
+141,7
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE(power, power_start,
LTTNG_TRACEPOINT_EVENT_INSTANCE(power, power_frequency,
LTTNG_TRACEPOINT_EVENT_INSTANCE(power, power_frequency,
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,36))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,36))
TP_PROTO(unsigned int type, unsigned int state, unsigned int cpu_id),
TP_ARGS(type, state, cpu_id)
TP_PROTO(unsigned int type, unsigned int state, unsigned int cpu_id),
TP_ARGS(type, state, cpu_id)
@@
-154,7
+154,7
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE(power, power_frequency,
LTTNG_TRACEPOINT_EVENT(power_end,
LTTNG_TRACEPOINT_EVENT(power_end,
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,36))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,36))
TP_PROTO(unsigned int cpu_id),
TP_ARGS(cpu_id),
TP_PROTO(unsigned int cpu_id),
TP_ARGS(cpu_id),
@@
-165,7
+165,7
@@
LTTNG_TRACEPOINT_EVENT(power_end,
#endif
TP_FIELDS(
#endif
TP_FIELDS(
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,36))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,36))
ctf_integer(u64, cpu_id, cpu_id)
#else
ctf_integer(u64, dummy, 0xffff)
ctf_integer(u64, cpu_id, cpu_id)
#else
ctf_integer(u64, dummy, 0xffff)
@@
-198,7
+198,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) {};
events get removed */
static inline void trace_power_start(u64 type, u64 state, u64 cpuid) {};
static inline void trace_power_end(u64 cpuid) {};
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,4,0))
+#if (L
TTNG_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
static inline void trace_power_start_rcuidle(u64 type, u64 state, u64 cpuid) {};
static inline void trace_power_end_rcuidle(u64 cpuid) {};
#endif
@@
-207,7
+207,7
@@
static inline void trace_power_frequency(u64 type, u64 state, u64 cpuid) {};
#endif /* CONFIG_EVENT_POWER_TRACING_DEPRECATED */
#endif /* CONFIG_EVENT_POWER_TRACING_DEPRECATED */
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,37))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,37))
/*
* The clock events are used for clock enable/disable and for
* clock rate change
/*
* The clock events are used for clock enable/disable and for
* clock rate change
This page took
0.025555 seconds
and
4
git commands to generate.