Cleanup: Remove deprecated TODO file
[lttng-modules.git] / instrumentation / events / lttng-module / btrfs.h
index b4f2fe70342c2b98dcb6ce5193c46748e43b83a4..f38444bfac11d290c92816cc59dc903d15a1790a 100644 (file)
@@ -1,11 +1,11 @@
-/* SPDX-License-Identifier: GPL-2.0 */
+/* SPDX-License-Identifier: GPL-2.0-only */
 #undef TRACE_SYSTEM
 #define TRACE_SYSTEM btrfs
 
 #if !defined(LTTNG_TRACE_BTRFS_H) || defined(TRACE_HEADER_MULTI_READ)
 #define LTTNG_TRACE_BTRFS_H
 
-#include <probes/lttng-tracepoint-event.h>
+#include <lttng/tracepoint-event.h>
 #include <linux/writeback.h>
 #include <linux/version.h>
 
@@ -346,7 +346,29 @@ LTTNG_TRACEPOINT_EVENT(btrfs_handle_em_exist,
 )
 #endif
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0))
+LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent,
+
+       TP_PROTO(const struct inode *inode,
+                const struct btrfs_ordered_extent *ordered),
+
+       TP_ARGS(inode, ordered),
+
+       TP_FIELDS(
+               ctf_integer(ino_t, ino, inode->i_ino)
+               ctf_integer(u64, file_offset, ordered->file_offset)
+               ctf_integer(u64, start, ordered->disk_bytenr)
+               ctf_integer(u64, len, ordered->num_bytes)
+               ctf_integer(u64, disk_len, ordered->disk_num_bytes)
+               ctf_integer(u64, bytes_left, ordered->bytes_left)
+               ctf_integer(unsigned long, flags, ordered->flags)
+               ctf_integer(int, compress_type, ordered->compress_type)
+               ctf_integer(int, refs, refcount_read(&ordered->refs))
+               ctf_integer(u64, root_objectid,
+                               BTRFS_I(inode)->root->root_key.objectid)
+       )
+)
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
 LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent,
 
        TP_PROTO(const struct inode *inode,
@@ -2309,7 +2331,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(alloc_extent_state,
        TP_FIELDS(
                ctf_integer_hex(const struct extent_state *, state, state)
                ctf_integer(gfp_t, mask, mask)
-               ctf_integer(unsigned long, ip, IP)
+               ctf_integer_hex(unsigned long, ip, IP)
        )
 )
 
@@ -2323,7 +2345,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(free_extent_state,
 
        TP_FIELDS(
                ctf_integer_hex(const struct extent_state *, state, state)
-               ctf_integer(unsigned long, ip, IP)
+               ctf_integer_hex(unsigned long, ip, IP)
        )
 )
 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
@@ -2338,7 +2360,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(alloc_extent_state,
        TP_FIELDS(
                ctf_integer_hex(struct extent_state *, state, state)
                ctf_integer(gfp_t, mask, mask)
-               ctf_integer(unsigned long, ip, IP)
+               ctf_integer_hex(unsigned long, ip, IP)
        )
 )
 
@@ -2352,7 +2374,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(free_extent_state,
 
        TP_FIELDS(
                ctf_integer_hex(struct extent_state *, state, state)
-               ctf_integer(unsigned long, ip, IP)
+               ctf_integer_hex(unsigned long, ip, IP)
        )
 )
 #endif
@@ -2360,4 +2382,4 @@ LTTNG_TRACEPOINT_EVENT_MAP(free_extent_state,
 #endif /* LTTNG_TRACE_BTRFS_H */
 
 /* This part must be outside protection */
-#include <probes/define_trace.h>
+#include <lttng/define_trace.h>
This page took 0.024125 seconds and 4 git commands to generate.