X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-probe-btrfs.c;h=52f8cfe4372250ea27fa3b6841047af7f6322dbd;hb=6f5c379edfa76db77769d03986343ddb9fd1aaaa;hp=5f66d37e60901ba58c3957512f73a8ffe160349b;hpb=13ab8b0a749053960f81a4924a3ed27775518f94;p=lttng-modules.git diff --git a/probes/lttng-probe-btrfs.c b/probes/lttng-probe-btrfs.c index 5f66d37e..52f8cfe4 100644 --- a/probes/lttng-probe-btrfs.c +++ b/probes/lttng-probe-btrfs.c @@ -23,11 +23,15 @@ #include #include +#include #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 -#include "../lttng-tracer.h" +#include /* * Create the tracepoint static inlines from the kernel to validate that our @@ -40,9 +44,9 @@ */ #define LTTNG_PACKAGE_BUILD #define CREATE_TRACE_POINTS -#define TRACE_INCLUDE_PATH ../instrumentation/events/lttng-module +#define TRACE_INCLUDE_PATH instrumentation/events/lttng-module -#include "../instrumentation/events/lttng-module/btrfs.h" +#include MODULE_LICENSE("GPL and additional rights"); MODULE_AUTHOR("Andrew Gabbasov ");