Fix warnings for 32-bit in lttng-ust-cyg-profile
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 22 Apr 2013 17:30:08 +0000 (13:30 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 22 Apr 2013 17:30:08 +0000 (13:30 -0400)
In file included from ../include/lttng/ust-tracepoint-event.h:357,
                 from ../include/lttng/tracepoint-event.h:62,
                 from lttng-ust-cyg-profile.h:63,
                 from lttng-ust-cyg-profile.c:27:
././lttng-ust-cyg-profile.h: In function ‘__event_prepare_filter_stack__lttng_ust_cyg_profile___func_entry’:
././lttng-ust-cyg-profile.h:35: warning: cast from pointer to integer of different size
././lttng-ust-cyg-profile.h:35: warning: cast from pointer to integer of different size
././lttng-ust-cyg-profile.h:35: warning: cast from pointer to integer of different size
././lttng-ust-cyg-profile.h:35: warning: cast from pointer to integer of different size
././lttng-ust-cyg-profile.h: In function ‘__event_prepare_filter_stack__lttng_ust_cyg_profile___func_exit’:
././lttng-ust-cyg-profile.h:46: warning: cast from pointer to integer of different size
././lttng-ust-cyg-profile.h:46: warning: cast from pointer to integer of different size
././lttng-ust-cyg-profile.h:46: warning: cast from pointer to integer of different size
././lttng-ust-cyg-profile.h:46: warning: cast from pointer to integer of different size
  CCLD   liblttng-ust-cyg-profile.la
  CC     lttng-ust-cyg-profile-fast.lo
In file included from ../include/lttng/ust-tracepoint-event.h:357,
                 from ../include/lttng/tracepoint-event.h:62,
                 from lttng-ust-cyg-profile-fast.h:59,
                 from lttng-ust-cyg-profile-fast.c:27:
././lttng-ust-cyg-profile-fast.h: In function ‘__event_prepare_filter_stack__lttng_ust_cyg_profile_fast___func_entry’:
././lttng-ust-cyg-profile-fast.h:35: warning: cast from pointer to integer of different size
././lttng-ust-cyg-profile-fast.h:35: warning: cast from pointer to integer of different size

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h

index 2e6dda8e06cd8a49e5dccf592315d24a2720e33b..4316292548e17cfae9bf8c8cd9d80b5a4824de68 100644 (file)
@@ -35,8 +35,10 @@ extern "C" {
 TRACEPOINT_EVENT(lttng_ust_cyg_profile, func_entry,
        TP_ARGS(void *, func_addr, void *, call_site),
        TP_FIELDS(
-               ctf_integer_hex(void *, addr, func_addr)
-               ctf_integer_hex(void *, call_site, call_site)
+               ctf_integer_hex(unsigned long, addr,
+                       (unsigned long) func_addr)
+               ctf_integer_hex(unsigned long, call_site,
+                       (unsigned long) call_site)
        )
 )
 
@@ -46,8 +48,10 @@ TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile, func_entry,
 TRACEPOINT_EVENT(lttng_ust_cyg_profile, func_exit,
        TP_ARGS(void *, func_addr, void *, call_site),
        TP_FIELDS(
-               ctf_integer_hex(void *, addr, func_addr)
-               ctf_integer_hex(void *, call_site, call_site)
+               ctf_integer_hex(unsigned long, addr,
+                       (unsigned long) func_addr)
+               ctf_integer_hex(unsigned long, call_site,
+                       (unsigned long) call_site)
        )
 )
 
This page took 0.025975 seconds and 4 git commands to generate.