Fix: forwarding of call_site argument to field
authorPaul Woegerer <paul_woegerer@mentor.com>
Wed, 27 Mar 2013 14:16:26 +0000 (10:16 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 27 Mar 2013 14:16:26 +0000 (10:16 -0400)
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 <mathieu.desnoyers@efficios.com>
liblttng-ust-cyg-profile/lttng-ust-cyg-profile.h

index 7629fb991c329419745cf99f0489cafedecadc78..2e6dda8e06cd8a49e5dccf592315d24a2720e33b 100644 (file)
@@ -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)
        )
 )
 
This page took 0.02496 seconds and 4 git commands to generate.