From: Paul Woegerer Date: Wed, 27 Mar 2013 14:16:26 +0000 (-0400) Subject: Fix: forwarding of call_site argument to field X-Git-Tag: v2.2.0-rc1~11 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9283d922fee6067f502866832e6113c720473c94;p=lttng-ust.git Fix: forwarding of call_site argument to field I ran some tests with the new function entry/exit instrumentations. The tracepoint provider for lttng_ust_cyg_profile:func_entry and func_exit does not properly forward the call_site argument to the call_site field. The patch below fixes the problem. Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h b/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h index 7629fb99..2e6dda8e 100644 --- a/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h +++ b/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h @@ -36,7 +36,7 @@ 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, func_addr) + ctf_integer_hex(void *, call_site, call_site) ) ) @@ -47,7 +47,7 @@ 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, func_addr) + ctf_integer_hex(void *, call_site, call_site) ) )