Fix: pass private data to context callbacks
[lttng-ust.git] / liblttng-ust-cyg-profile / lttng-ust-cyg-profile-fast.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2011-2013 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #undef TRACEPOINT_PROVIDER
8 #define TRACEPOINT_PROVIDER lttng_ust_cyg_profile_fast
9
10 #if !defined(_TRACEPOINT_LTTNG_UST_CYG_PROFILE_FAST_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11 #define _TRACEPOINT_LTTNG_UST_CYG_PROFILE_FAST_H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #include <lttng/tracepoint.h>
18
19 TRACEPOINT_EVENT(lttng_ust_cyg_profile_fast, func_entry,
20 TP_ARGS(void *, func_addr),
21 TP_FIELDS(
22 ctf_integer_hex(unsigned long, addr,
23 (unsigned long) func_addr)
24 )
25 )
26
27 TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile_fast, func_entry,
28 TRACE_DEBUG_FUNCTION)
29
30 TRACEPOINT_EVENT(lttng_ust_cyg_profile_fast, func_exit,
31 TP_ARGS(void *, func_addr),
32 TP_FIELDS(
33 ctf_unused(func_addr)
34 )
35 )
36
37 TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile_fast, func_exit,
38 TRACE_DEBUG_FUNCTION)
39
40 #endif /* _TRACEPOINT_LTTNG_UST_CYG_PROFILE_FAST_H */
41
42 #undef TRACEPOINT_INCLUDE
43 #define TRACEPOINT_INCLUDE "./lttng-ust-cyg-profile-fast.h"
44
45 /* This part must be outside ifdef protection */
46 #include <lttng/tracepoint-event.h>
47
48 #ifdef __cplusplus
49 }
50 #endif
This page took 0.030197 seconds and 4 git commands to generate.