c50aee9dcccb08f6310929661e349830be5d4e30
[lttng-ust.git] / src / lib / lttng-ust-cyg-profile / lttng-ust-cyg-profile-fast.c
1 /*
2 * SPDX-License-Identifier: LGPL-2.1-or-later
3 *
4 * Copyright (C) 2011-2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #define _LGPL_SOURCE
8 #include <dlfcn.h>
9 #include <sys/types.h>
10 #include <stdio.h>
11
12 #define LTTNG_UST_TRACEPOINT_DEFINE
13 #define LTTNG_UST_TRACEPOINT_CREATE_PROBES
14 #define LTTNG_UST_TP_IP_PARAM func_addr
15 #include "lttng-ust-cyg-profile-fast.h"
16
17 void __cyg_profile_func_enter(void *this_fn, void *call_site)
18 __attribute__((no_instrument_function));
19
20 void __cyg_profile_func_exit(void *this_fn, void *call_site)
21 __attribute__((no_instrument_function));
22
23 void __cyg_profile_func_enter(void *this_fn, void *call_site __attribute__((unused)))
24 {
25 lttng_ust_tracepoint(lttng_ust_cyg_profile_fast, func_entry, this_fn);
26 }
27
28 void __cyg_profile_func_exit(void *this_fn, void *call_site __attribute__((unused)))
29 {
30 lttng_ust_tracepoint(lttng_ust_cyg_profile_fast, func_exit, this_fn);
31 }
This page took 0.029241 seconds and 3 git commands to generate.