Commit | Line | Data |
---|---|---|
9f36eaed MJ |
1 | /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) |
2 | * | |
b87700e3 AG |
3 | * probes/lttng-probe-writeback.c |
4 | * | |
5 | * LTTng writeback probes. | |
6 | * | |
7 | * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
8 | * Copyright (C) 2012 Mentor Graphics Corp. | |
b87700e3 AG |
9 | */ |
10 | ||
11 | #include <linux/module.h> | |
12 | #include <linux/device.h> | |
13 | #include <linux/mm.h> | |
156a3977 | 14 | #include <lttng-tracer.h> |
b87700e3 AG |
15 | |
16 | /* | |
17 | * Create the tracepoint static inlines from the kernel to validate that our | |
18 | * trace event macros match the kernel we run on. | |
19 | */ | |
20 | #include <trace/events/writeback.h> | |
21 | ||
156a3977 MD |
22 | #include <lttng-kernel-version.h> |
23 | #include <wrapper/writeback.h> | |
b87700e3 AG |
24 | |
25 | /* #if <check version number if global_dirty_limit will be exported> */ | |
b87700e3 | 26 | |
b87700e3 | 27 | #define global_dirty_limit wrapper_global_dirty_limit() |
42d9070d | 28 | |
b87700e3 AG |
29 | /* #endif <check version number> */ |
30 | ||
31 | /* | |
32 | * Create LTTng tracepoint probes. | |
33 | */ | |
34 | #define LTTNG_PACKAGE_BUILD | |
35 | #define CREATE_TRACE_POINTS | |
156a3977 | 36 | #define TRACE_INCLUDE_PATH instrumentation/events/lttng-module |
b87700e3 | 37 | |
156a3977 | 38 | #include <instrumentation/events/lttng-module/writeback.h> |
b87700e3 AG |
39 | |
40 | MODULE_LICENSE("GPL and additional rights"); | |
41 | MODULE_AUTHOR("Andrew Gabbasov <andrew_gabbasov@mentor.com>"); | |
42 | MODULE_DESCRIPTION("LTTng writeback probes"); | |
13ab8b0a MD |
43 | MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." |
44 | __stringify(LTTNG_MODULES_MINOR_VERSION) "." | |
45 | __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) | |
46 | LTTNG_MODULES_EXTRAVERSION); |