]> git.lttng.org Git - lttng-modules.git/commitdiff
fix: fs/jbd2: Fix the documentation of the jbd2_write_superblock() callers (v6.0)
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 15 Aug 2022 21:21:20 +0000 (17:21 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 18 Aug 2022 18:32:13 +0000 (14:32 -0400)
See upstream commit :

  commit 6669797b0dd41ced457760b6e1014fdda8ce19ce
  Author: Bart Van Assche <bvanassche@acm.org>
  Date:   Thu Jul 14 11:07:22 2022 -0700

    Commit 2a222ca992c3 ("fs: have submit_bh users pass in op and flags
    separately") renamed the jbd2_write_superblock() 'write_op' argument into
    'write_flags'. Propagate this change to the jbd2_write_superblock()
    callers. Additionally, change the type of 'write_flags' into blk_opf_t.

Change-Id: I65b8af95b3d07438763dd94f409c197e3b400733
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/events/jbd2.h

index 8ead71ae30ead38ccd4d2d829af9f07aaa0e6be7..a356a80cefeb71cdb3a122d1741eacd7c6c85ea6 100644 (file)
@@ -157,7 +157,46 @@ LTTNG_TRACEPOINT_EVENT(jbd2_cleanup_journal_tail,
        )
 )
 
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,4,0))
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,0,0))
+
+#ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM
+LTTNG_TRACEPOINT_ENUM(req_op,
+       TP_ENUM_VALUES(
+               ctf_enum_value("REQ_OP_READ",           REQ_OP_READ)
+               ctf_enum_value("REQ_OP_WRITE",          REQ_OP_WRITE)
+               ctf_enum_value("REQ_OP_FLUSH",          REQ_OP_FLUSH)
+               ctf_enum_value("REQ_OP_DISCARD",        REQ_OP_DISCARD)
+               ctf_enum_value("REQ_OP_SECURE_ERASE",   REQ_OP_SECURE_ERASE)
+               ctf_enum_value("REQ_OP_WRITE_ZEROES",   REQ_OP_WRITE_ZEROES)
+               ctf_enum_value("REQ_OP_ZONE_OPEN",      REQ_OP_ZONE_OPEN)
+               ctf_enum_value("REQ_OP_ZONE_CLOSE",     REQ_OP_ZONE_CLOSE)
+               ctf_enum_value("REQ_OP_ZONE_FINISH",    REQ_OP_ZONE_FINISH)
+               ctf_enum_value("REQ_OP_ZONE_APPEND",    REQ_OP_ZONE_APPEND)
+               ctf_enum_value("REQ_OP_ZONE_RESET",     REQ_OP_ZONE_RESET)
+               ctf_enum_value("REQ_OP_ZONE_RESET_ALL", REQ_OP_ZONE_RESET_ALL)
+               ctf_enum_value("REQ_OP_DRV_IN",         REQ_OP_DRV_IN)
+               ctf_enum_value("REQ_OP_DRV_OUT",        REQ_OP_DRV_OUT)
+               ctf_enum_value("REQ_OP_LAST",           REQ_OP_LAST)
+       )
+)
+#endif /* CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM */
+
+LTTNG_TRACEPOINT_EVENT(jbd2_write_superblock,
+
+       TP_PROTO(journal_t *journal, blk_opf_t write_flags),
+
+       TP_ARGS(journal, write_flags),
+
+       TP_FIELDS(
+               ctf_integer(dev_t, dev, journal->j_fs_dev->bd_dev)
+#ifdef CONFIG_LTTNG_EXPERIMENTAL_BITWISE_ENUM
+               ctf_enum(req_op, blk_opf_t, write_flags, write_flags)
+#else
+               ctf_integer_hex(blk_opf_t, write_flags, write_flags)
+#endif
+       )
+)
+#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,4,0))
 LTTNG_TRACEPOINT_EVENT(jbd2_write_superblock,
 
        TP_PROTO(journal_t *journal, int write_op),
This page took 0.032532 seconds and 4 git commands to generate.