2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 #undef TRACEPOINT_PROVIDER
8 #define TRACEPOINT_PROVIDER lttng_ust_libc
10 #if !defined(_TRACEPOINT_UST_LIBC_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11 #define _TRACEPOINT_UST_LIBC_H
17 #include <lttng/tracepoint.h>
19 TRACEPOINT_EVENT(lttng_ust_libc
, malloc
,
20 TP_ARGS(size_t, size
, void *, ptr
, void *, ip
),
22 ctf_integer(size_t, size
, size
)
23 ctf_integer_hex(void *, ptr
, ptr
)
28 TRACEPOINT_EVENT(lttng_ust_libc
, free
,
29 TP_ARGS(void *, ptr
, void *, ip
),
31 ctf_integer_hex(void *, ptr
, ptr
)
36 TRACEPOINT_EVENT(lttng_ust_libc
, calloc
,
37 TP_ARGS(size_t, nmemb
, size_t, size
, void *, ptr
, void *, ip
),
39 ctf_integer(size_t, nmemb
, nmemb
)
40 ctf_integer(size_t, size
, size
)
41 ctf_integer_hex(void *, ptr
, ptr
)
46 TRACEPOINT_EVENT(lttng_ust_libc
, realloc
,
47 TP_ARGS(void *, in_ptr
, size_t, size
, void *, ptr
, void *, ip
),
49 ctf_integer_hex(void *, in_ptr
, in_ptr
)
50 ctf_integer(size_t, size
, size
)
51 ctf_integer_hex(void *, ptr
, ptr
)
56 TRACEPOINT_EVENT(lttng_ust_libc
, memalign
,
57 TP_ARGS(size_t, alignment
, size_t, size
, void *, ptr
, void *, ip
),
59 ctf_integer(size_t, alignment
, alignment
)
60 ctf_integer(size_t, size
, size
)
61 ctf_integer_hex(void *, ptr
, ptr
)
66 TRACEPOINT_EVENT(lttng_ust_libc
, posix_memalign
,
67 TP_ARGS(void *, out_ptr
, size_t, alignment
, size_t, size
, int, result
, void *, ip
),
69 ctf_integer_hex(void *, out_ptr
, out_ptr
)
70 ctf_integer(size_t, alignment
, alignment
)
71 ctf_integer(size_t, size
, size
)
72 ctf_integer(int, result
, result
)
77 #endif /* _TRACEPOINT_UST_LIBC_H */
79 #undef TRACEPOINT_INCLUDE
80 #define TRACEPOINT_INCLUDE "./ust_libc.h"
82 /* This part must be outside ifdef protection */
83 #include <lttng/tracepoint-event.h>
This page took 0.043594 seconds and 5 git commands to generate.