From 9283d922fee6067f502866832e6113c720473c94 Mon Sep 17 00:00:00 2001 From: Paul Woegerer Date: Wed, 27 Mar 2013 10:16:26 -0400 Subject: [PATCH] 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 --- liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) ) ) -- 2.34.1