Cleanup: ust-tracepoint-event.h: extract `__num_fields` in a variable
[lttng-ust.git] / liblttng-ust-cyg-profile / lttng-ust-cyg-profile.h
index 2e6dda8e06cd8a49e5dccf592315d24a2720e33b..7e5cd690e3b83d41c1ebf5cd5938c82a5c6d8b12 100644 (file)
@@ -32,23 +32,27 @@ extern "C" {
 
 #include <lttng/tracepoint.h>
 
-TRACEPOINT_EVENT(lttng_ust_cyg_profile, func_entry,
+TRACEPOINT_EVENT_CLASS(lttng_ust_cyg_profile, func_class,
        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)
        )
 )
 
+TRACEPOINT_EVENT_INSTANCE(lttng_ust_cyg_profile, func_class,
+       func_entry,
+       TP_ARGS(void *, func_addr, void *, call_site)
+)
+
 TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile, func_entry,
        TRACE_DEBUG_FUNCTION)
 
-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)
-       )
+TRACEPOINT_EVENT_INSTANCE(lttng_ust_cyg_profile, func_class,
+       func_exit,
+       TP_ARGS(void *, func_addr, void *, call_site)
 )
 
 TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile, func_exit,
This page took 0.0252 seconds and 4 git commands to generate.