893eae3aa8e984116ed4d9161ff784876be55414
[lttng-ust.git] / src / lib / lttng-ust-dl / ust_dl.h
1 /*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2013 Paul Woegerer <paul_woegerer@mentor.com>
5 * Copyright (C) 2015 Antoine Busque <abusque@efficios.com>
6 */
7
8 #undef TRACEPOINT_PROVIDER
9 #define TRACEPOINT_PROVIDER lttng_ust_dl
10
11 #if !defined(_TRACEPOINT_UST_DL_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
12 #define _TRACEPOINT_UST_DL_H
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #include <stddef.h>
19 #include <stdint.h>
20 #include <unistd.h>
21
22 #define LTTNG_UST_DL_PROVIDER
23 #include <lttng/tracepoint.h>
24
25 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlopen,
26 LTTNG_UST_TP_ARGS(void *, ip, void *, baddr, const char *, path,
27 int, flags, uint64_t, memsz, uint8_t, has_build_id,
28 uint8_t, has_debug_link),
29 LTTNG_UST_TP_FIELDS(
30 ctf_unused(ip)
31 ctf_integer_hex(void *, baddr, baddr)
32 ctf_integer(uint64_t, memsz, memsz)
33 ctf_integer_hex(int, flags, flags)
34 ctf_string(path, path)
35 ctf_integer(uint8_t, has_build_id, has_build_id)
36 ctf_integer(uint8_t, has_debug_link, has_debug_link)
37 )
38 )
39
40 #ifdef HAVE_DLMOPEN
41 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlmopen,
42 LTTNG_UST_TP_ARGS(void *, ip, void *, baddr, Lmid_t, nsid,
43 const char *, path, int, flags,
44 uint64_t, memsz, uint8_t, has_build_id,
45 uint8_t, has_debug_link),
46 LTTNG_UST_TP_FIELDS(
47 ctf_unused(ip)
48 ctf_integer_hex(void *, baddr, baddr)
49 ctf_integer(uint64_t, memsz, memsz)
50 ctf_integer(Lmid_t, nsid, nsid)
51 ctf_integer_hex(int, flags, flags)
52 ctf_string(path, path)
53 ctf_integer(uint8_t, has_build_id, has_build_id)
54 ctf_integer(uint8_t, has_debug_link, has_debug_link)
55 )
56 )
57 #endif
58
59 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, build_id,
60 LTTNG_UST_TP_ARGS(
61 void *, ip,
62 void *, baddr,
63 uint8_t *, build_id,
64 size_t, build_id_len
65 ),
66 LTTNG_UST_TP_FIELDS(
67 ctf_unused(ip)
68 ctf_integer_hex(void *, baddr, baddr)
69 ctf_sequence_hex(uint8_t, build_id, build_id,
70 size_t, build_id_len)
71 )
72 )
73
74 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, debug_link,
75 LTTNG_UST_TP_ARGS(
76 void *, ip,
77 void *, baddr,
78 char *, filename,
79 uint32_t, crc
80 ),
81 LTTNG_UST_TP_FIELDS(
82 ctf_unused(ip)
83 ctf_integer_hex(void *, baddr, baddr)
84 ctf_integer(uint32_t, crc, crc)
85 ctf_string(filename, filename)
86 )
87 )
88
89 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlclose,
90 LTTNG_UST_TP_ARGS(void *, ip, void *, baddr),
91 LTTNG_UST_TP_FIELDS(
92 ctf_unused(ip)
93 ctf_integer_hex(void *, baddr, baddr)
94 )
95 )
96
97 #endif /* _TRACEPOINT_UST_DL_H */
98
99 #undef TRACEPOINT_INCLUDE
100 #define TRACEPOINT_INCLUDE "./ust_dl.h"
101
102 /* This part must be outside ifdef protection */
103 #include <lttng/tracepoint-event.h>
104
105 #ifdef __cplusplus
106 }
107 #endif
This page took 0.041983 seconds and 3 git commands to generate.