Change integer base to hex for fields representing addresses
[lttng-modules.git] / instrumentation / events / lttng-module / ext4.h
index b2ca8a7c3ece814596b28a6e2b9a18228587c6fd..32212b38416eb0600e1e4749511e9f67a6fcfa99 100644 (file)
@@ -106,7 +106,7 @@ LTTNG_TRACEPOINT_EVENT(ext4_mark_inode_dirty,
        TP_FIELDS(
                ctf_integer(dev_t, dev, inode->i_sb->s_dev)
                ctf_integer(ino_t, ino, inode->i_ino)
-               ctf_integer(unsigned long, ip, IP)
+               ctf_integer_hex(unsigned long, ip, IP)
        )
 )
 
@@ -1255,7 +1255,36 @@ LTTNG_TRACEPOINT_EVENT(ext4_load_inode,
        )
 )
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,5,0))
+
+LTTNG_TRACEPOINT_EVENT(ext4_journal_start,
+       TP_PROTO(struct super_block *sb, int blocks, int rsv_blocks,
+                int revoke_creds, unsigned long IP),
+
+       TP_ARGS(sb, blocks, rsv_blocks, revoke_creds, IP),
+
+       TP_FIELDS(
+               ctf_integer(dev_t, dev, sb->s_dev)
+               ctf_integer_hex(unsigned long, ip, IP)
+               ctf_integer(int, blocks, blocks)
+               ctf_integer(int, rsv_blocks, rsv_blocks)
+               ctf_integer(int, revoke_creds, revoke_creds)
+       )
+)
+
+LTTNG_TRACEPOINT_EVENT(ext4_journal_start_reserved,
+       TP_PROTO(struct super_block *sb, int blocks, unsigned long IP),
+
+       TP_ARGS(sb, blocks, IP),
+
+       TP_FIELDS(
+               ctf_integer(dev_t, dev, sb->s_dev)
+               ctf_integer_hex(unsigned long, ip, IP)
+               ctf_integer(int, blocks, blocks)
+       )
+)
+
+#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,11,0))
 
 LTTNG_TRACEPOINT_EVENT(ext4_journal_start,
        TP_PROTO(struct super_block *sb, int blocks, int rsv_blocks,
@@ -1265,7 +1294,7 @@ LTTNG_TRACEPOINT_EVENT(ext4_journal_start,
 
        TP_FIELDS(
                ctf_integer(dev_t, dev, sb->s_dev)
-               ctf_integer(unsigned long, ip, IP)
+               ctf_integer_hex(unsigned long, ip, IP)
                ctf_integer(int, blocks, blocks)
                ctf_integer(int, rsv_blocks, rsv_blocks)
        )
@@ -1278,7 +1307,7 @@ LTTNG_TRACEPOINT_EVENT(ext4_journal_start_reserved,
 
        TP_FIELDS(
                ctf_integer(dev_t, dev, sb->s_dev)
-               ctf_integer(unsigned long, ip, IP)
+               ctf_integer_hex(unsigned long, ip, IP)
                ctf_integer(int, blocks, blocks)
        )
 )
@@ -1292,7 +1321,7 @@ LTTNG_TRACEPOINT_EVENT(ext4_journal_start,
 
        TP_FIELDS(
                ctf_integer(dev_t, dev, sb->s_dev)
-               ctf_integer(unsigned long, ip, IP)
+               ctf_integer_hex(unsigned long, ip, IP)
                ctf_integer(int, nblocks, nblocks)
        )
 )
This page took 0.028022 seconds and 4 git commands to generate.