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