From ff1a474fed6f77325f191583f7f555dd458ad8fa Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 21 Jan 2013 14:00:41 -0500 Subject: [PATCH] Instrumentation cleanup: kmem events should print hex pointers Fixes #422 Signed-off-by: Mathieu Desnoyers --- instrumentation/events/lttng-module/kmem.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/instrumentation/events/lttng-module/kmem.h b/instrumentation/events/lttng-module/kmem.h index baf4176a..be2baff1 100644 --- a/instrumentation/events/lttng-module/kmem.h +++ b/instrumentation/events/lttng-module/kmem.h @@ -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 ) -- 2.39.5