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
/
kmem.h
diff --git
a/instrumentation/events/lttng-module/kmem.h
b/instrumentation/events/lttng-module/kmem.h
index 8270fcedc1851d9c57d165802b3b76d925ca627a..25e702fac6873f23c32de79a46e553e2f7cbd2b6 100644
(file)
--- a/
instrumentation/events/lttng-module/kmem.h
+++ b/
instrumentation/events/lttng-module/kmem.h
@@
-7,7
+7,7
@@
#include <probes/lttng-tracepoint-event.h>
#include <linux/types.h>
#include <probes/lttng-tracepoint-event.h>
#include <linux/types.h>
-#include <l
inux/
version.h>
+#include <l
ttng-kernel-
version.h>
LTTNG_TRACEPOINT_EVENT_CLASS(kmem_alloc,
LTTNG_TRACEPOINT_EVENT_CLASS(kmem_alloc,
@@
-115,8
+115,8
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE(kmem_free, kmem_cache_free,
TP_ARGS(call_site, ptr)
)
TP_ARGS(call_site, ptr)
)
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,32))
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,3,0))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,32))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,3,0))
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_free, kmem_mm_page_free,
#else
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_free_direct, kmem_mm_page_free_direct,
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_free, kmem_mm_page_free,
#else
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_free_direct, kmem_mm_page_free_direct,
@@
-133,7
+133,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_free_direct, kmem_mm_page_free_direct,
)
)
)
)
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,15,0))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,15,0))
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_free_batched, kmem_mm_page_free_batched,
TP_PROTO(struct page *page),
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_free_batched, kmem_mm_page_free_batched,
TP_PROTO(struct page *page),
@@
-145,7
+145,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_free_batched, kmem_mm_page_free_batched,
ctf_integer(unsigned long, pfn, page_to_pfn(page))
)
)
ctf_integer(unsigned long, pfn, page_to_pfn(page))
)
)
-#elif (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,3,0))
+#elif (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,3,0))
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_free_batched, kmem_mm_page_free_batched,
TP_PROTO(struct page *page, int cold),
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_free_batched, kmem_mm_page_free_batched,
TP_PROTO(struct page *page, int cold),
@@
-218,7
+218,7
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(kmem_mm_page, mm_page_pcpu_drain,
kmem_mm_page_pcpu_drain,
kmem_mm_page_pcpu_drain,
-#if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(2,6,33))
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(2,6,33))
TP_PROTO(struct page *page, unsigned int order, int migratetype),
#else
TP_PROTO(struct page *page, int order, int migratetype),
TP_PROTO(struct page *page, unsigned int order, int migratetype),
#else
TP_PROTO(struct page *page, int order, int migratetype),
@@
-227,7
+227,7
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(kmem_mm_page, mm_page_pcpu_drain,
TP_ARGS(page, order, migratetype)
)
TP_ARGS(page, order, migratetype)
)
-#if (L
INUX_VERSION_CODE >= KERNEL_VERSION(3,19,2)
\
+#if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,19,2)
\
|| LTTNG_KERNEL_RANGE(3,14,36, 3,15,0) \
|| LTTNG_KERNEL_RANGE(3,16,35, 3,17,0) \
|| LTTNG_KERNEL_RANGE(3,18,10, 3,19,0) \
|| LTTNG_KERNEL_RANGE(3,14,36, 3,15,0) \
|| LTTNG_KERNEL_RANGE(3,16,35, 3,17,0) \
|| LTTNG_KERNEL_RANGE(3,18,10, 3,19,0) \
@@
-259,7
+259,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag,
)
)
)
)
-#elif (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,12,30))
+#elif (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,12,30))
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag,
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag,
@@
-284,7
+284,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag,
)
)
)
)
-#elif (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,12,0))
+#elif (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,12,0))
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag,
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag,
@@
-311,7
+311,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag,
)
)
)
)
-#else /* #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,12,0)) */
+#else /* #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,12,0)) */
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag,
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag,
@@
-335,7
+335,7
@@
LTTNG_TRACEPOINT_EVENT_MAP(mm_page_alloc_extfrag,
)
)
)
)
-#endif /* #else #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,12,0)) */
+#endif /* #else #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,12,0)) */
#endif
#endif
This page took
0.030874 seconds
and
4
git commands to generate.