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
/
compaction.h
diff --git
a/instrumentation/events/lttng-module/compaction.h
b/instrumentation/events/lttng-module/compaction.h
index 2c2584672831eff20367531995ada6528667d989..52d37c0447bf7527a148de7cab7558cdb5097cac 100644
(file)
--- a/
instrumentation/events/lttng-module/compaction.h
+++ b/
instrumentation/events/lttng-module/compaction.h
@@
-1,15
+1,15
@@
+/* SPDX-License-Identifier: GPL-2.0 */
#undef TRACE_SYSTEM
#define TRACE_SYSTEM compaction
#if !defined(LTTNG_TRACE_COMPACTION_H) || defined(TRACE_HEADER_MULTI_READ)
#define LTTNG_TRACE_COMPACTION_H
#undef TRACE_SYSTEM
#define TRACE_SYSTEM compaction
#if !defined(LTTNG_TRACE_COMPACTION_H) || defined(TRACE_HEADER_MULTI_READ)
#define LTTNG_TRACE_COMPACTION_H
-#include
"../../../probes/lttng-tracepoint-event.h"
+#include
<probes/lttng-tracepoint-event.h>
#include <linux/types.h>
#include <linux/types.h>
-#include <linux/version.h>
-#include <trace/events/gfpflags.h>
+#include <lttng-kernel-version.h>
-#if L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,0,0)
+#if L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,0,0)
LTTNG_TRACEPOINT_EVENT_CLASS(compaction_isolate_template,
LTTNG_TRACEPOINT_EVENT_CLASS(compaction_isolate_template,
@@
-56,7
+56,7
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(compaction_isolate_template,
TP_ARGS(start_pfn, end_pfn, nr_scanned, nr_taken)
)
TP_ARGS(start_pfn, end_pfn, nr_scanned, nr_taken)
)
-#else /* #if L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,0,0) */
+#else /* #if L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,0,0) */
LTTNG_TRACEPOINT_EVENT_CLASS(compaction_isolate_template,
LTTNG_TRACEPOINT_EVENT_CLASS(compaction_isolate_template,
@@
-95,11
+95,11
@@
LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(compaction_isolate_template,
TP_ARGS(nr_scanned, nr_taken)
)
TP_ARGS(nr_scanned, nr_taken)
)
-#endif /* #else #if L
INUX_VERSION_CODE >=
KERNEL_VERSION(4,0,0) */
+#endif /* #else #if L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(4,0,0) */
#if LTTNG_KERNEL_RANGE(3,12,30, 3,13,0) || \
LTTNG_KERNEL_RANGE(3,14,25, 3,15,0) || \
#if LTTNG_KERNEL_RANGE(3,12,30, 3,13,0) || \
LTTNG_KERNEL_RANGE(3,14,25, 3,15,0) || \
- (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,16,0))
+ (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,16,0))
LTTNG_TRACEPOINT_EVENT_CODE_MAP(mm_compaction_migratepages,
compaction_migratepages,
LTTNG_TRACEPOINT_EVENT_CODE_MAP(mm_compaction_migratepages,
compaction_migratepages,
@@
-114,7
+114,7
@@
LTTNG_TRACEPOINT_EVENT_CODE_MAP(mm_compaction_migratepages,
unsigned long nr_failed;
),
unsigned long nr_failed;
),
- TP_code(
+ TP_code
_pre
(
tp_locvar->nr_failed = 0;
{
tp_locvar->nr_failed = 0;
{
@@
-131,9
+131,11
@@
LTTNG_TRACEPOINT_EVENT_CODE_MAP(mm_compaction_migratepages,
TP_FIELDS(
ctf_integer(unsigned long, nr_migrated, nr_all - tp_locvar->nr_failed)
ctf_integer(unsigned long, nr_failed, tp_locvar->nr_failed)
TP_FIELDS(
ctf_integer(unsigned long, nr_migrated, nr_all - tp_locvar->nr_failed)
ctf_integer(unsigned long, nr_failed, tp_locvar->nr_failed)
- )
+ ),
+
+ TP_code_post()
)
)
-#else /* #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,16,0)) */
+#else /* #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,16,0)) */
LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages,
compaction_migratepages,
LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages,
compaction_migratepages,
@@
-148,9
+150,9
@@
LTTNG_TRACEPOINT_EVENT_MAP(mm_compaction_migratepages,
ctf_integer(unsigned long, nr_failed, nr_failed)
)
)
ctf_integer(unsigned long, nr_failed, nr_failed)
)
)
-#endif /* #else #if (L
INUX_VERSION_CODE >=
KERNEL_VERSION(3,16,0)) */
+#endif /* #else #if (L
TTNG_LINUX_VERSION_CODE >= LTTNG_
KERNEL_VERSION(3,16,0)) */
#endif /* LTTNG_TRACE_COMPACTION_H */
/* This part must be outside protection */
#endif /* LTTNG_TRACE_COMPACTION_H */
/* This part must be outside protection */
-#include
"../../../probes/define_trace.h"
+#include
<probes/define_trace.h>
This page took
0.02559 seconds
and
4
git commands to generate.