1 /* SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
3 * probes/lttng-probe-btrfs.c
7 * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 * Copyright (C) 2012 Mentor Graphics Corp.
11 #include <linux/module.h>
13 #include <linux/version.h>
14 #include <../fs/btrfs/ctree.h>
15 #include <../fs/btrfs/transaction.h>
16 #include <../fs/btrfs/volumes.h>
17 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,0))
18 #include <../fs/btrfs/block-group.h>
20 #include <linux/dcache.h>
21 #include <lttng-tracer.h>
24 * Create the tracepoint static inlines from the kernel to validate that our
25 * trace event macros match the kernel we run on.
27 #include <trace/events/btrfs.h>
30 * Create LTTng tracepoint probes.
32 #define LTTNG_PACKAGE_BUILD
33 #define CREATE_TRACE_POINTS
34 #define TRACE_INCLUDE_PATH instrumentation/events/lttng-module
36 #include <instrumentation/events/lttng-module/btrfs.h>
38 MODULE_LICENSE("GPL and additional rights");
39 MODULE_AUTHOR("Andrew Gabbasov <andrew_gabbasov@mentor.com>");
40 MODULE_DESCRIPTION("LTTng btrfs probes");
41 MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION
) "."
42 __stringify(LTTNG_MODULES_MINOR_VERSION
) "."
43 __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION
)
44 LTTNG_MODULES_EXTRAVERSION
);