Commit | Line | Data |
---|---|---|
70d654f2 | 1 | /* |
c0c0989a | 2 | * SPDX-License-Identifier: LGPL-2.1-or-later |
70d654f2 | 3 | * |
c0c0989a | 4 | * Copyright (C) 2011-2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
70d654f2 MD |
5 | */ |
6 | ||
1ddceb36 | 7 | #define _LGPL_SOURCE |
70d654f2 MD |
8 | #include <dlfcn.h> |
9 | #include <sys/types.h> | |
10 | #include <stdio.h> | |
11 | ||
6ba0c2b2 MD |
12 | #define LTTNG_UST_TRACEPOINT_HIDDEN_DEFINITION |
13 | #define LTTNG_UST_TRACEPOINT_PROVIDER_HIDDEN_DEFINITION | |
14 | ||
88c7c4ea | 15 | #define LTTNG_UST_TRACEPOINT_DEFINE |
660323e6 | 16 | #define LTTNG_UST_TRACEPOINT_CREATE_PROBES |
c28c4a88 | 17 | #define LTTNG_UST_TP_IP_PARAM func_addr |
70d654f2 MD |
18 | #include "lttng-ust-cyg-profile.h" |
19 | ||
20 | void __cyg_profile_func_enter(void *this_fn, void *call_site) | |
21 | __attribute__((no_instrument_function)); | |
22 | ||
23 | void __cyg_profile_func_exit(void *this_fn, void *call_site) | |
24 | __attribute__((no_instrument_function)); | |
25 | ||
26 | void __cyg_profile_func_enter(void *this_fn, void *call_site) | |
27 | { | |
cbc06a3b | 28 | lttng_ust_tracepoint(lttng_ust_cyg_profile, func_entry, this_fn, call_site); |
70d654f2 MD |
29 | } |
30 | ||
31 | void __cyg_profile_func_exit(void *this_fn, void *call_site) | |
32 | { | |
cbc06a3b | 33 | lttng_ust_tracepoint(lttng_ust_cyg_profile, func_exit, this_fn, call_site); |
70d654f2 | 34 | } |