From 17702e8fde8806c51e7bc8cedf0af8aeb8179034 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Wed, 10 Jun 2015 13:32:30 +0200 Subject: [PATCH] ust cyg-profile: use same class for entry and exit Share same serialization functions for entry and exit events. Signed-off-by: Mathieu Desnoyers --- .../lttng-ust-cyg-profile.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h b/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h index 43162925..7e5cd690 100644 --- a/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h +++ b/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h @@ -32,7 +32,7 @@ extern "C" { #include -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(unsigned long, addr, @@ -42,17 +42,17 @@ TRACEPOINT_EVENT(lttng_ust_cyg_profile, func_entry, ) ) +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(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_exit, + TP_ARGS(void *, func_addr, void *, call_site) ) TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile, func_exit, -- 2.34.1