Rename liblttng-ust-libc to liblttng-ust-libc-wrapper
[lttng-ust.git] / liblttng-ust-libc-wrapper / ust_libc.h
1 #undef TRACEPOINT_PROVIDER
2 #define TRACEPOINT_PROVIDER ust_libc
3
4 #if !defined(_TRACEPOINT_UST_LIBC_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
5 #define _TRACEPOINT_UST_LIBC_H
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 /*
12 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
13 *
14 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
15 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
16 *
17 * Permission is hereby granted to use or copy this program
18 * for any purpose, provided the above notices are retained on all copies.
19 * Permission to modify the code and to distribute modified code is granted,
20 * provided the above notices are retained, and a notice that the code was
21 * modified is included with the above copyright notice.
22 */
23
24 #include <lttng/tracepoint.h>
25
26 TRACEPOINT_EVENT(ust_libc, malloc,
27 TP_ARGS(size_t, size, void *, ptr),
28 TP_FIELDS(
29 ctf_integer(size_t, size, size)
30 ctf_integer_hex(unsigned long, ptr, (unsigned long) ptr)
31 )
32 )
33
34 TRACEPOINT_EVENT(ust_libc, free,
35 TP_ARGS(void *, ptr),
36 TP_FIELDS(
37 ctf_integer_hex(unsigned long, ptr, (unsigned long) ptr)
38 )
39 )
40
41 #endif /* _TRACEPOINT_UST_LIBC_H */
42
43 #undef TRACEPOINT_INCLUDE_FILE
44 #define TRACEPOINT_INCLUDE_FILE ./ust_libc.h
45
46 /* This part must be outside ifdef protection */
47 #include <lttng/tracepoint-event.h>
48
49 #ifdef __cplusplus
50 }
51 #endif
This page took 0.03146 seconds and 5 git commands to generate.