projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: Move lttng-modules instrumentation headers
[lttng-modules.git]
/
probes
/
lttng-probe-btrfs.c
diff --git
a/probes/lttng-probe-btrfs.c
b/probes/lttng-probe-btrfs.c
index b531197652a5627f01a2f8c73ff5482ed2036201..4461c9986eeaa66062b6ff5df0e0456c0fb7ade8 100644
(file)
--- a/
probes/lttng-probe-btrfs.c
+++ b/
probes/lttng-probe-btrfs.c
@@
-1,4
+1,4
@@
-/* SPDX-License-Identifier: (GPL-2.0
or LGPL-2.1
)
+/* SPDX-License-Identifier: (GPL-2.0
-only or LGPL-2.1-only
)
*
* probes/lttng-probe-btrfs.c
*
*
* probes/lttng-probe-btrfs.c
*
@@
-10,11
+10,15
@@
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/fs.h>
+#include <linux/version.h>
#include <../fs/btrfs/ctree.h>
#include <../fs/btrfs/transaction.h>
#include <../fs/btrfs/volumes.h>
#include <../fs/btrfs/ctree.h>
#include <../fs/btrfs/transaction.h>
#include <../fs/btrfs/volumes.h>
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,0))
+#include <../fs/btrfs/block-group.h>
+#endif
#include <linux/dcache.h>
#include <linux/dcache.h>
-#include <lttng
-
tracer.h>
+#include <lttng
/
tracer.h>
/*
* Create the tracepoint static inlines from the kernel to validate that our
/*
* Create the tracepoint static inlines from the kernel to validate that our
@@
-27,9
+31,9
@@
*/
#define LTTNG_PACKAGE_BUILD
#define CREATE_TRACE_POINTS
*/
#define LTTNG_PACKAGE_BUILD
#define CREATE_TRACE_POINTS
-#define TRACE_INCLUDE_PATH instrumentation/events
/lttng-module
+#define TRACE_INCLUDE_PATH instrumentation/events
-#include <instrumentation/events/
lttng-module/
btrfs.h>
+#include <instrumentation/events/btrfs.h>
MODULE_LICENSE("GPL and additional rights");
MODULE_AUTHOR("Andrew Gabbasov <andrew_gabbasov@mentor.com>");
MODULE_LICENSE("GPL and additional rights");
MODULE_AUTHOR("Andrew Gabbasov <andrew_gabbasov@mentor.com>");
This page took
0.024464 seconds
and
4
git commands to generate.