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
/
lock.h
diff --git
a/instrumentation/events/lttng-module/lock.h
b/instrumentation/events/lttng-module/lock.h
index ff7f7eeda99888b8b24555959a2fb9030061bb32..7f7991860dcb343d33b295013a90ed7efc75e09a 100644
(file)
--- a/
instrumentation/events/lttng-module/lock.h
+++ b/
instrumentation/events/lttng-module/lock.h
@@
-1,7
+1,7
@@
-#include <l
inux/
version.h>
+#include <l
ttng-kernel-
version.h>
#undef TRACE_SYSTEM
#undef TRACE_SYSTEM
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,33))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,33))
#define TRACE_SYSTEM lock
#else
#define TRACE_SYSTEM lockdep
#define TRACE_SYSTEM lock
#else
#define TRACE_SYSTEM lockdep
@@
-30,13
+30,13
@@
LTTNG_TRACEPOINT_EVENT(lock_acquire,
TP_FIELDS(
ctf_integer(unsigned int, flags, (trylock ? 1 : 0) | (read ? 2 : 0))
ctf_string(name, lock->name)
TP_FIELDS(
ctf_integer(unsigned int, flags, (trylock ? 1 : 0) | (read ? 2 : 0))
ctf_string(name, lock->name)
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,34))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,34))
ctf_integer_hex(void *, lockdep_addr, lock)
#endif
)
)
ctf_integer_hex(void *, lockdep_addr, lock)
#endif
)
)
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,35))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,35))
LTTNG_TRACEPOINT_EVENT_CLASS(lock,
LTTNG_TRACEPOINT_EVENT_CLASS(lock,
@@
-75,7
+75,7
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE(lock, lock_acquired,
#endif
#endif
-#else /* #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,35)) */
+#else /* #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,35)) */
LTTNG_TRACEPOINT_EVENT(lock_release,
LTTNG_TRACEPOINT_EVENT(lock_release,
@@
-85,7
+85,7
@@
LTTNG_TRACEPOINT_EVENT(lock_release,
TP_FIELDS(
ctf_string(name, lock->name)
TP_FIELDS(
ctf_string(name, lock->name)
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,34))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,34))
ctf_integer_hex(void *, lockdep_addr, lock)
#endif
)
ctf_integer_hex(void *, lockdep_addr, lock)
#endif
)
@@
-101,7
+101,7
@@
LTTNG_TRACEPOINT_EVENT(lock_contended,
TP_FIELDS(
ctf_string(name, lock->name)
TP_FIELDS(
ctf_string(name, lock->name)
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,34))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,34))
ctf_integer_hex(void *, lockdep_addr, lock)
#endif
)
ctf_integer_hex(void *, lockdep_addr, lock)
#endif
)
@@
-115,7
+115,7
@@
LTTNG_TRACEPOINT_EVENT(lock_acquired,
TP_FIELDS(
ctf_string(name, lock->name)
TP_FIELDS(
ctf_string(name, lock->name)
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,34))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,34))
ctf_integer(s64, wait_nsec, wait_nsec)
ctf_integer_hex(void *, lockdep_addr, lock)
#else
ctf_integer(s64, wait_nsec, wait_nsec)
ctf_integer_hex(void *, lockdep_addr, lock)
#else
@@
-127,7
+127,7
@@
LTTNG_TRACEPOINT_EVENT(lock_acquired,
#endif
#endif
-#endif /* #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,35)) */
+#endif /* #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,35)) */
#endif
#endif
This page took
0.02567 seconds
and
4
git commands to generate.