Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / tracing / cyg_profile_functions.c
1 #include "acconfig.h"
2
3 #ifdef WITH_LTTNG
4 #define TRACEPOINT_DEFINE
5 #define TRACEPOINT_PROBE_DYNAMIC_LINKAGE
6 #include "tracing/cyg_profile.h"
7 #undef TRACEPOINT_PROBE_DYNAMIC_LINKAGE
8 #undef TRACEPOINT_DEFINE
9 #endif
10
11 void __cyg_profile_func_enter(void *this_fn, void *call_site)
12     __attribute__((no_instrument_function));
13
14 void __cyg_profile_func_exit(void *this_fn, void *call_site)
15     __attribute__((no_instrument_function));
16
17
18 void __cyg_profile_func_enter(void *this_fn, void *call_site)
19 {
20 #ifdef WITH_LTTNG
21     tracepoint(lttng_ust_cyg_profile, func_entry, this_fn, call_site);
22 #endif
23 }
24
25 void __cyg_profile_func_exit(void *this_fn, void *call_site)
26 {
27 #ifdef WITH_LTTNG
28     tracepoint(lttng_ust_cyg_profile, func_exit, this_fn, call_site);
29 #endif
30 }
31