Instrumentation cleanup: kmem events should print hex pointers
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 21 Jan 2013 19:00:41 +0000 (14:00 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 21 Jan 2013 19:00:41 +0000 (14:00 -0500)
Fixes #422

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/kmem.h

index baf4176aa1192ed0f46b48a25390f356158a5e17..be2baff10d7fb01d67ec1855b87714b9f53911f3 100644 (file)
@@ -22,8 +22,8 @@ DECLARE_EVENT_CLASS(kmem_alloc,
        TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags),
 
        TP_STRUCT__entry(
-               __field(        unsigned long,  call_site       )
-               __field(        const void *,   ptr             )
+               __field_hex(    unsigned long,  call_site       )
+               __field_hex(    const void *,   ptr             )
                __field(        size_t,         bytes_req       )
                __field(        size_t,         bytes_alloc     )
                __field(        gfp_t,          gfp_flags       )
@@ -73,8 +73,8 @@ DECLARE_EVENT_CLASS(kmem_alloc_node,
        TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags, node),
 
        TP_STRUCT__entry(
-               __field(        unsigned long,  call_site       )
-               __field(        const void *,   ptr             )
+               __field_hex(    unsigned long,  call_site       )
+               __field_hex(    const void *,   ptr             )
                __field(        size_t,         bytes_req       )
                __field(        size_t,         bytes_alloc     )
                __field(        gfp_t,          gfp_flags       )
@@ -124,8 +124,8 @@ DECLARE_EVENT_CLASS(kmem_free,
        TP_ARGS(call_site, ptr),
 
        TP_STRUCT__entry(
-               __field(        unsigned long,  call_site       )
-               __field(        const void *,   ptr             )
+               __field_hex(    unsigned long,  call_site       )
+               __field_hex(    const void *,   ptr             )
        ),
 
        TP_fast_assign(
@@ -162,7 +162,7 @@ TRACE_EVENT(mm_page_free_direct,
        TP_ARGS(page, order),
 
        TP_STRUCT__entry(
-               __field(        struct page *,  page            )
+               __field_hex(    struct page *,  page            )
                __field(        unsigned int,   order           )
        ),
 
@@ -188,7 +188,7 @@ TRACE_EVENT(mm_pagevec_free,
        TP_ARGS(page, cold),
 
        TP_STRUCT__entry(
-               __field(        struct page *,  page            )
+               __field_hex(    struct page *,  page            )
                __field(        int,            cold            )
        ),
 
@@ -211,7 +211,7 @@ TRACE_EVENT(mm_page_alloc,
        TP_ARGS(page, order, gfp_flags, migratetype),
 
        TP_STRUCT__entry(
-               __field(        struct page *,  page            )
+               __field_hex(    struct page *,  page            )
                __field(        unsigned int,   order           )
                __field(        gfp_t,          gfp_flags       )
                __field(        int,            migratetype     )
@@ -239,7 +239,7 @@ DECLARE_EVENT_CLASS(mm_page,
        TP_ARGS(page, order, migratetype),
 
        TP_STRUCT__entry(
-               __field(        struct page *,  page            )
+               __field_hex(    struct page *,  page            )
                __field(        unsigned int,   order           )
                __field(        int,            migratetype     )
        ),
@@ -291,7 +291,7 @@ TRACE_EVENT(mm_page_alloc_extfrag,
                alloc_migratetype, fallback_migratetype),
 
        TP_STRUCT__entry(
-               __field(        struct page *,  page                    )
+               __field_hex(    struct page *,  page                    )
                __field(        int,            alloc_order             )
                __field(        int,            fallback_order          )
                __field(        int,            alloc_migratetype       )
This page took 0.030178 seconds and 4 git commands to generate.