X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust-cyg-profile%2Flttng-ust-cyg-profile.c;h=c63b39b04ba033f808fdc0da4c287a86b4ffe5d5;hb=58f107eb35e435b2fe2263c97dfc2170a2e293d0;hp=d772e76b961a148d19bf04d56ae9481b697d99b5;hpb=70d654f22a6b52beddfb86ec3daa453073c356d2;p=lttng-ust.git diff --git a/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.c b/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.c index d772e76b..c63b39b0 100644 --- a/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.c +++ b/liblttng-ust-cyg-profile/lttng-ust-cyg-profile.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _LGPL_SOURCE #define _GNU_SOURCE #include #include @@ -23,6 +24,7 @@ #define TRACEPOINT_DEFINE #define TRACEPOINT_CREATE_PROBES +#define TP_IP_PARAM func_addr #include "lttng-ust-cyg-profile.h" void __cyg_profile_func_enter(void *this_fn, void *call_site) @@ -33,10 +35,10 @@ void __cyg_profile_func_exit(void *this_fn, void *call_site) void __cyg_profile_func_enter(void *this_fn, void *call_site) { - tracepoint(lttng_ust_cyg_profile, func_entry, this_fn); + tracepoint(lttng_ust_cyg_profile, func_entry, this_fn, call_site); } void __cyg_profile_func_exit(void *this_fn, void *call_site) { - tracepoint(lttng_ust_cyg_profile, func_exit); + tracepoint(lttng_ust_cyg_profile, func_exit, this_fn, call_site); }