Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust-cyg-profile / lttng-ust-cyg-profile.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
9
10 #if !defined(_TRACEPOINT_LTTNG_UST_CYG_PROFILE_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11 #define _TRACEPOINT_LTTNG_UST_CYG_PROFILE_H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #include <lttng/tracepoint.h>
18
19 TRACEPOINT_EVENT_CLASS(lttng_ust_cyg_profile, func_class,
20 TP_ARGS(void *, func_addr, void *, call_site),
21 TP_FIELDS(
22 ctf_integer_hex(unsigned long, addr,
23 (unsigned long) func_addr)
24 ctf_integer_hex(unsigned long, call_site,
25 (unsigned long) call_site)
26 )
27 )
28
29 TRACEPOINT_EVENT_INSTANCE(lttng_ust_cyg_profile, func_class,
30 func_entry,
31 TP_ARGS(void *, func_addr, void *, call_site)
32 )
33
34 TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile, func_entry,
35 TRACE_DEBUG_FUNCTION)
36
37 TRACEPOINT_EVENT_INSTANCE(lttng_ust_cyg_profile, func_class,
38 func_exit,
39 TP_ARGS(void *, func_addr, void *, call_site)
40 )
41
42 TRACEPOINT_LOGLEVEL(lttng_ust_cyg_profile, func_exit,
43 TRACE_DEBUG_FUNCTION)
44
45 #endif /* _TRACEPOINT_LTTNG_UST_CYG_PROFILE_H */
46
47 #undef TRACEPOINT_INCLUDE
48 #define TRACEPOINT_INCLUDE "./lttng-ust-cyg-profile.h"
49
50 /* This part must be outside ifdef protection */
51 #include <lttng/tracepoint-event.h>
52
53 #ifdef __cplusplus
54 }
55 #endif
This page took 0.030907 seconds and 4 git commands to generate.