1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
3 * probes/lttng-probe-writeback.c
5 * LTTng writeback probes.
7 * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 * Copyright (C) 2012 Mentor Graphics Corp.
11 #include <linux/module.h>
12 #include <linux/device.h>
14 #include <lttng-tracer.h>
17 * Create the tracepoint static inlines from the kernel to validate that our
18 * trace event macros match the kernel we run on.
20 #include <trace/events/writeback.h>
22 #include <lttng-kernel-version.h>
24 /* #if <check version number if global_dirty_limit will be exported> */
26 #define global_dirty_limit wrapper_global_dirty_limit()
28 /* #endif <check version number> */
31 * Create LTTng tracepoint probes.
33 #define LTTNG_PACKAGE_BUILD
34 #define CREATE_TRACE_POINTS
35 #define TRACE_INCLUDE_PATH instrumentation/events/lttng-module
37 #include <instrumentation/events/lttng-module/writeback.h>
39 MODULE_LICENSE("GPL and additional rights");
40 MODULE_AUTHOR("Andrew Gabbasov <andrew_gabbasov@mentor.com>");
41 MODULE_DESCRIPTION("LTTng writeback probes");
42 MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION
) "."
43 __stringify(LTTNG_MODULES_MINOR_VERSION
) "."
44 __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION
)
45 LTTNG_MODULES_EXTRAVERSION
);