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
/
timer.h
diff --git
a/instrumentation/events/lttng-module/timer.h
b/instrumentation/events/lttng-module/timer.h
index cee4148c313756454352fe9a528b73eab199deb3..2dbcf4b505f46061852736992b96a64f8cdf9187 100644
(file)
--- a/
instrumentation/events/lttng-module/timer.h
+++ b/
instrumentation/events/lttng-module/timer.h
@@
-10,17
+10,17
@@
#define _TRACE_TIMER_DEF_
#include <linux/hrtimer.h>
#include <linux/timer.h>
#define _TRACE_TIMER_DEF_
#include <linux/hrtimer.h>
#include <linux/timer.h>
-#include <l
inux/
version.h>
+#include <l
ttng-kernel-
version.h>
struct timer_list;
#endif /* _TRACE_TIMER_DEF_ */
struct timer_list;
#endif /* _TRACE_TIMER_DEF_ */
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,10,0))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,10,0))
#define lttng_ktime_get_tv64(kt) (kt)
#define lttng_ktime_get_tv64(kt) (kt)
-#else /* #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,10,0)) */
+#else /* #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,10,0)) */
#define lttng_ktime_get_tv64(kt) ((kt).tv64)
#define lttng_ktime_get_tv64(kt) ((kt).tv64)
-#endif /* #else #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,10,0)) */
+#endif /* #else #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,10,0)) */
LTTNG_TRACEPOINT_EVENT_CLASS(timer_class,
LTTNG_TRACEPOINT_EVENT_CLASS(timer_class,
@@
-44,7
+44,7
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE(timer_class, timer_init,
TP_ARGS(timer)
)
TP_ARGS(timer)
)
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,2,0) || \
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,2,0) || \
LTTNG_RHEL_KERNEL_RANGE(3,10,0,957,0,0, 3,11,0,0,0,0))
/**
* timer_start - called when the timer is started
LTTNG_RHEL_KERNEL_RANGE(3,10,0,957,0,0, 3,11,0,0,0,0))
/**
* timer_start - called when the timer is started
@@
-67,7
+67,7
@@
LTTNG_TRACEPOINT_EVENT(timer_start,
ctf_integer(unsigned int, flags, flags)
)
)
ctf_integer(unsigned int, flags, flags)
)
)
-#else /* #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,2,0)) */
+#else /* #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,2,0)) */
/**
* timer_start - called when the timer is started
* @timer: pointer to struct timer_list
/**
* timer_start - called when the timer is started
* @timer: pointer to struct timer_list
@@
-86,9
+86,9
@@
LTTNG_TRACEPOINT_EVENT(timer_start,
ctf_integer(unsigned long, now, jiffies)
)
)
ctf_integer(unsigned long, now, jiffies)
)
)
-#endif /* #else #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,2,0)) */
+#endif /* #else #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,2,0)) */
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(5,2,0))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(5,2,0))
/**
* timer_expire_entry - called immediately before the timer callback
* @timer: pointer to struct timer_list
/**
* timer_expire_entry - called immediately before the timer callback
* @timer: pointer to struct timer_list
@@
-183,7
+183,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(hrtimer_init,
* hrtimer_start - called when the hrtimer is started
* @timer: pointer to struct hrtimer
*/
* hrtimer_start - called when the hrtimer is started
* @timer: pointer to struct hrtimer
*/
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,16,0) || \
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,16,0) || \
LTTNG_RT_KERNEL_RANGE(4,14,0,0, 4,15,0,0))
LTTNG_TRACEPOINT_EVENT_MAP(hrtimer_start,
LTTNG_RT_KERNEL_RANGE(4,14,0,0, 4,15,0,0))
LTTNG_TRACEPOINT_EVENT_MAP(hrtimer_start,
@@
-293,7
+293,7
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(timer_hrtimer_class, hrtimer_cancel,
* zero, otherwise it is started
* @expires: the itimers expiry time
*/
* zero, otherwise it is started
* @expires: the itimers expiry time
*/
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(5,5,0))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(5,5,0))
LTTNG_TRACEPOINT_EVENT_MAP(itimer_state,
timer_itimer_state,
LTTNG_TRACEPOINT_EVENT_MAP(itimer_state,
timer_itimer_state,
@@
-312,7
+312,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(itimer_state,
ctf_integer(long, interval_nsec, value->it_interval.tv_nsec)
)
)
ctf_integer(long, interval_nsec, value->it_interval.tv_nsec)
)
)
-#elif (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,11,0))
+#elif (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,11,0))
LTTNG_TRACEPOINT_EVENT_MAP(itimer_state,
timer_itimer_state,
LTTNG_TRACEPOINT_EVENT_MAP(itimer_state,
timer_itimer_state,
@@
-331,7
+331,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(itimer_state,
ctf_integer(long, interval_usec, value->it_interval.tv_usec)
)
)
ctf_integer(long, interval_usec, value->it_interval.tv_usec)
)
)
-#else /* if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,11,0)) */
+#else /* if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,11,0)) */
LTTNG_TRACEPOINT_EVENT_MAP(itimer_state,
timer_itimer_state,
LTTNG_TRACEPOINT_EVENT_MAP(itimer_state,
timer_itimer_state,
@@
-350,7
+350,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(itimer_state,
ctf_integer(long, interval_usec, value->it_interval.tv_usec)
)
)
ctf_integer(long, interval_usec, value->it_interval.tv_usec)
)
)
-#endif /* #else (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,11,0)) */
+#endif /* #else (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,11,0)) */
/**
* itimer_expire - called when itimer expires
/**
* itimer_expire - called when itimer expires
@@
-358,7
+358,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(itimer_state,
* @pid: pid of the process which owns the timer
* @now: current time, used to calculate the latency of itimer
*/
* @pid: pid of the process which owns the timer
* @now: current time, used to calculate the latency of itimer
*/
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,11,0))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,11,0))
LTTNG_TRACEPOINT_EVENT_MAP(itimer_expire,
timer_itimer_expire,
LTTNG_TRACEPOINT_EVENT_MAP(itimer_expire,
timer_itimer_expire,
@@
-373,7
+373,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(itimer_expire,
ctf_integer(unsigned long long, now, now)
)
)
ctf_integer(unsigned long long, now, now)
)
)
-#else /* if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,11,0)) */
+#else /* if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,11,0)) */
LTTNG_TRACEPOINT_EVENT_MAP(itimer_expire,
timer_itimer_expire,
LTTNG_TRACEPOINT_EVENT_MAP(itimer_expire,
timer_itimer_expire,
@@
-388,7
+388,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(itimer_expire,
ctf_integer(cputime_t, now, now)
)
)
ctf_integer(cputime_t, now, now)
)
)
-#endif /* #else (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,11,0)) */
+#endif /* #else (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,11,0)) */
#endif /* LTTNG_TRACE_TIMER_H */
#endif /* LTTNG_TRACE_TIMER_H */
This page took
0.032798 seconds
and
4
git commands to generate.