Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-ust-libc-wrapper / ust_libc.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
7 #undef TRACEPOINT_PROVIDER
8 #define TRACEPOINT_PROVIDER lttng_ust_libc
9
10 #if !defined(_TRACEPOINT_UST_LIBC_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11 #define _TRACEPOINT_UST_LIBC_H
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #include <lttng/tracepoint.h>
18
19 TRACEPOINT_EVENT(lttng_ust_libc, malloc,
20 TP_ARGS(size_t, size, void *, ptr, void *, ip),
21 TP_FIELDS(
22 ctf_integer(size_t, size, size)
23 ctf_integer_hex(void *, ptr, ptr)
24 )
25 )
26
27 TRACEPOINT_EVENT(lttng_ust_libc, free,
28 TP_ARGS(void *, ptr, void *, ip),
29 TP_FIELDS(
30 ctf_integer_hex(void *, ptr, ptr)
31 )
32 )
33
34 TRACEPOINT_EVENT(lttng_ust_libc, calloc,
35 TP_ARGS(size_t, nmemb, size_t, size, void *, ptr, void *, ip),
36 TP_FIELDS(
37 ctf_integer(size_t, nmemb, nmemb)
38 ctf_integer(size_t, size, size)
39 ctf_integer_hex(void *, ptr, ptr)
40 )
41 )
42
43 TRACEPOINT_EVENT(lttng_ust_libc, realloc,
44 TP_ARGS(void *, in_ptr, size_t, size, void *, ptr, void *, ip),
45 TP_FIELDS(
46 ctf_integer_hex(void *, in_ptr, in_ptr)
47 ctf_integer(size_t, size, size)
48 ctf_integer_hex(void *, ptr, ptr)
49 )
50 )
51
52 TRACEPOINT_EVENT(lttng_ust_libc, memalign,
53 TP_ARGS(size_t, alignment, size_t, size, void *, ptr, void *, ip),
54 TP_FIELDS(
55 ctf_integer(size_t, alignment, alignment)
56 ctf_integer(size_t, size, size)
57 ctf_integer_hex(void *, ptr, ptr)
58 )
59 )
60
61 TRACEPOINT_EVENT(lttng_ust_libc, posix_memalign,
62 TP_ARGS(void *, out_ptr, size_t, alignment, size_t, size, int, result, void *, ip),
63 TP_FIELDS(
64 ctf_integer_hex(void *, out_ptr, out_ptr)
65 ctf_integer(size_t, alignment, alignment)
66 ctf_integer(size_t, size, size)
67 ctf_integer(int, result, result)
68 )
69 )
70
71 #endif /* _TRACEPOINT_UST_LIBC_H */
72
73 #undef TRACEPOINT_INCLUDE
74 #define TRACEPOINT_INCLUDE "./ust_libc.h"
75
76 /* This part must be outside ifdef protection */
77 #include <lttng/tracepoint-event.h>
78
79 #ifdef __cplusplus
80 }
81 #endif
This page took 0.03012 seconds and 4 git commands to generate.