Change integer base to hex for fields representing addresses
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 21 Feb 2020 21:59:33 +0000 (16:59 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 26 Feb 2020 15:53:37 +0000 (10:53 -0500)
It seems more expected to show addresses in hexadecimal.

I applied this to all fields named "ip" or "addr".

I haven't change the `addr` fields in the i2c.h file as I am not aware
of what is the convention when displaying I2C addresses.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I6ed00b31e319e1d966ab138471248dcf3d2c7315

instrumentation/events/lttng-module/arch/x86/kvm/mmutrace.h
instrumentation/events/lttng-module/arch/x86/kvm/trace.h
instrumentation/events/lttng-module/btrfs.h
instrumentation/events/lttng-module/ext3.h
instrumentation/events/lttng-module/ext4.h
instrumentation/events/lttng-module/kvm.h
instrumentation/events/lttng-module/module.h
instrumentation/events/lttng-module/random.h
instrumentation/events/lttng-module/rpm.h

index dd0c6798f93c09727cb4982f38e4c84c70241583..46b46c362be75c4140dfca129bd5938c1d5ee29f 100644 (file)
@@ -51,7 +51,7 @@ LTTNG_TRACEPOINT_EVENT(
        TP_ARGS(addr, pferr),
 
        TP_FIELDS(
-               ctf_integer(__u64, addr, addr)
+               ctf_integer_hex(__u64, addr, addr)
                ctf_integer(__u32, pferr, pferr)
        )
 )
@@ -65,7 +65,7 @@ LTTNG_TRACEPOINT_EVENT(
        TP_ARGS(addr, write_fault, user_fault, fetch_fault),
 
        TP_FIELDS(
-               ctf_integer(__u64, addr, addr)
+               ctf_integer_hex(__u64, addr, addr)
                ctf_integer(__u32, pferr,
                        (!!write_fault << 1) | (!!user_fault << 2)
                        | (!!fetch_fault << 4))
@@ -208,7 +208,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(
        TP_ARGS(addr, gfn, access),
 
        TP_FIELDS(
-               ctf_integer(u64, addr, addr)
+               ctf_integer_hex(u64, addr, addr)
                ctf_integer(gfn_t, gfn, gfn)
                ctf_integer(unsigned, access, access)
        )
index 57ac7f488f472083e6f6e7c5aca729c0c600a7fc..73b044aa1e1f1e0f87ccf3b61a520ac4774c1333 100644 (file)
@@ -173,7 +173,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(kvm_page_fault, kvm_x86_page_fault,
        TP_ARGS(fault_address, error_code),
 
        TP_FIELDS(
-               ctf_integer(unsigned long, fault_address, fault_address)
+               ctf_integer_hex(unsigned long, fault_address, fault_address)
                ctf_integer(unsigned int, error_code, error_code)
        )
 )
@@ -363,7 +363,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(kvm_invlpga, kvm_x86_invlpga,
        TP_FIELDS(
                ctf_integer(__u64, rip, rip)
                ctf_integer(int, asid, asid)
-               ctf_integer(__u64, address, address)
+               ctf_integer_hex(__u64, address, address)
        )
 )
 
index 7b2900856d4d18a0d5376abbd63be99063cf43fd..c30571c0ad23452ad22f5b18295ce7b19079146e 100644 (file)
@@ -2331,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)
        )
 )
 
@@ -2345,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))
@@ -2360,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)
        )
 )
 
@@ -2374,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
index 8c0115ac2869826a761c2f04196aaad0d9421326..91abfb94f1d3af97a911c6d393672c1a7264c436 100644 (file)
@@ -85,7 +85,7 @@ LTTNG_TRACEPOINT_EVENT(ext3_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)
        )
 )
 
index 17809d21fa82373ddb96ecc4318af49cf90d0726..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)
        )
 )
 
@@ -1265,7 +1265,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)
                ctf_integer(int, revoke_creds, revoke_creds)
@@ -1279,7 +1279,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)
        )
 )
@@ -1294,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)
        )
@@ -1307,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)
        )
 )
@@ -1321,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)
        )
 )
index 4868d894c22849d5a1d743cb6453edd35b936be1..8ac6bc94f14718a0a112106d04b29cfb74ee3aa1 100644 (file)
@@ -56,7 +56,7 @@ LTTNG_TRACEPOINT_EVENT(kvm_msi_set_irq,
            TP_ARGS(address, data),
 
        TP_FIELDS(
-               ctf_integer(__u64, address, address)
+               ctf_integer_hex(__u64, address, address)
                ctf_integer(__u64, data, data)
        )
 )
@@ -245,7 +245,7 @@ LTTNG_TRACEPOINT_EVENT(
        TP_ARGS(address, gva),
 
        TP_FIELDS(
-               ctf_integer(unsigned long, address, address)
+               ctf_integer_hex(unsigned long, address, address)
                ctf_integer(u64, gva, gva)
        )
 )
@@ -258,7 +258,7 @@ LTTNG_TRACEPOINT_EVENT(
        TP_ARGS(address, page, gva),
 
        TP_FIELDS(
-               ctf_integer(unsigned long, address, address)
+               ctf_integer_hex(unsigned long, address, address)
                ctf_integer(pfn_t, pfn, page ? page_to_pfn(page) : 0)
                ctf_integer(u64, gva, gva)
        )
index 89b1e7980d7d0a928d4753303d26eb6381328003..ed1e3a3b7512500208a51e95182de65ac59c9892 100644 (file)
@@ -59,7 +59,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(module_refcnt,
        TP_ARGS(mod, ip),
 
        TP_FIELDS(
-               ctf_integer(unsigned long, ip, ip)
+               ctf_integer_hex(unsigned long, ip, ip)
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0))
                ctf_integer(int, refcnt, atomic_read(&mod->refcnt))
 #else
@@ -91,7 +91,7 @@ LTTNG_TRACEPOINT_EVENT(module_request,
        TP_ARGS(name, wait, ip),
 
        TP_FIELDS(
-               ctf_integer(unsigned long, ip, ip)
+               ctf_integer_hex(unsigned long, ip, ip)
                ctf_integer(bool, wait, wait)
                ctf_string(name, name)
        )
index 80b227968e611e058840d8c191971fd9918ff0ea..eaea2973fe94b05e8248e957689e9cc126f16f32 100644 (file)
@@ -16,7 +16,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(random__mix_pool_bytes,
        TP_FIELDS(
                ctf_string(pool_name, pool_name)
                ctf_integer(int, bytes, bytes)
-               ctf_integer(unsigned long, IP, IP)
+               ctf_integer_hex(unsigned long, IP, IP)
        )
 )
 
@@ -52,7 +52,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(credit_entropy_bits,
                ctf_string(pool_name, pool_name)
                ctf_integer(int, bits, bits)
                ctf_integer(int, entropy_count, entropy_count)
-               ctf_integer(unsigned long, IP, IP)
+               ctf_integer_hex(unsigned long, IP, IP)
        )
 )
 #else
@@ -70,7 +70,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(credit_entropy_bits,
                ctf_integer(int, bits, bits)
                ctf_integer(int, entropy_count, entropy_count)
                ctf_integer(int, entropy_total, entropy_total)
-               ctf_integer(unsigned long, IP, IP)
+               ctf_integer_hex(unsigned long, IP, IP)
        )
 )
 #endif
@@ -85,7 +85,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(get_random_bytes,
 
        TP_FIELDS(
                ctf_integer(int, nbytes, nbytes)
-               ctf_integer(unsigned long, IP, IP)
+               ctf_integer_hex(unsigned long, IP, IP)
        )
 )
 
@@ -99,7 +99,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(random__extract_entropy,
                ctf_string(pool_name, pool_name)
                ctf_integer(int, nbytes, nbytes)
                ctf_integer(int, entropy_count, entropy_count)
-               ctf_integer(unsigned long, IP, IP)
+               ctf_integer_hex(unsigned long, IP, IP)
        )
 )
 
index 5fcc456b603a5fa93baee3b94a8c7964496a5f44..c3681cb75b58921db3fb7b73c850f22c98bae37a 100644 (file)
@@ -62,7 +62,7 @@ LTTNG_TRACEPOINT_EVENT(rpm_return_int,
 
        TP_FIELDS(
                ctf_string(name, dev_name(dev))
-               ctf_integer(unsigned long, ip, ip)
+               ctf_integer_hex(unsigned long, ip, ip)
                ctf_integer(int, ret, ret)
        )
 )
This page took 0.032317 seconds and 4 git commands to generate.