Move to kernel style SPDX license identifiers
[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 )
34
35 TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile_fast, func_exit,
36 TRACE_DEBUG_FUNCTION)
37
38 #endif /* _TRACEPOINT_LTTNG_UST_CYG_PROFILE_FAST_H */
39
40 #undef TRACEPOINT_INCLUDE
41 #define TRACEPOINT_INCLUDE "./lttng-ust-cyg-profile-fast.h"
42
43 /* This part must be outside ifdef protection */
44 #include <lttng/tracepoint-event.h>
45
46 #ifdef __cplusplus
47 }
48 #endif
This page took 0.031273 seconds and 4 git commands to generate.