From: compudj Date: Thu, 9 Mar 2006 20:27:54 +0000 (+0000) Subject: new ltt-usertrace X-Git-Tag: v0.12.20~1850 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b3cae07a43b9c7e47b5ff9d3b678cce7f5b7b78e;p=lttv.git new ltt-usertrace git-svn-id: http://ltt.polymtl.ca/svn@1639 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt-usertrace/ltt-instrument-functions.c b/ltt-usertrace/ltt-instrument-functions.c new file mode 100644 index 00000000..b660bca8 --- /dev/null +++ b/ltt-usertrace/ltt-instrument-functions.c @@ -0,0 +1,30 @@ +/**************************************************************************** + * ltt-instrument-functions.c + * + * Mathieu Desnoyers + * March 2006 + */ + +#define inline inline __attribute__((always_inline)) + +#define LTT_TRACE +#define LTT_TRACE_FAST +#include +#include + +void __attribute__((no_instrument_function)) __cyg_profile_func_enter ( + void *this_fn, + void *call_site) +{ + /* don't care about the return value */ + trace_user_generic_function_entry(this_fn, call_site); +} + +void __attribute__((no_instrument_function)) __cyg_profile_func_exit ( + void *this_fn, + void *call_site) +{ + /* don't care about the return value */ + trace_user_generic_function_exit(this_fn, call_site); +} + diff --git a/usertrace-fast/ltt-instrument-functions.c b/usertrace-fast/ltt-instrument-functions.c deleted file mode 100644 index b660bca8..00000000 --- a/usertrace-fast/ltt-instrument-functions.c +++ /dev/null @@ -1,30 +0,0 @@ -/**************************************************************************** - * ltt-instrument-functions.c - * - * Mathieu Desnoyers - * March 2006 - */ - -#define inline inline __attribute__((always_inline)) - -#define LTT_TRACE -#define LTT_TRACE_FAST -#include -#include - -void __attribute__((no_instrument_function)) __cyg_profile_func_enter ( - void *this_fn, - void *call_site) -{ - /* don't care about the return value */ - trace_user_generic_function_entry(this_fn, call_site); -} - -void __attribute__((no_instrument_function)) __cyg_profile_func_exit ( - void *this_fn, - void *call_site) -{ - /* don't care about the return value */ - trace_user_generic_function_exit(this_fn, call_site); -} -