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 235991a599b6fb54105bbb46a22337548ab3a005..09cf7caf6c6412cf3861441253cc498220246d59 100644
(file)
--- a/
instrumentation/events/lttng-module/power.h
+++ b/
instrumentation/events/lttng-module/power.h
@@
-1,3
+1,4
@@
+/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM power
#undef TRACE_SYSTEM
#define TRACE_SYSTEM power
@@
-6,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),
@@
-60,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),
@@
-92,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
@@
-106,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),
@@
-119,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
)
@@
-127,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)
@@
-140,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)
@@
-153,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),
@@
-164,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)
@@
-197,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
@@
-206,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.025051 seconds
and
4
git commands to generate.