Tracepoint API namespacing ctf_unused
[lttng-ust.git] / src / lib / lttng-ust-dl / ust_dl.h
CommitLineData
c0c0989a
MJ
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
5b393d64
MJ
8#undef LTTNG_UST_TRACEPOINT_PROVIDER
9#define LTTNG_UST_TRACEPOINT_PROVIDER lttng_ust_dl
b13d93c2 10
c2c72dde 11#if !defined(_TRACEPOINT_UST_DL_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
6d4658aa 12#define _TRACEPOINT_UST_DL_H
b13d93c2
PW
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
b4051ad8 18#include <stddef.h>
b13d93c2
PW
19#include <stdint.h>
20#include <unistd.h>
21
6d4658aa 22#define LTTNG_UST_DL_PROVIDER
b13d93c2
PW
23#include <lttng/tracepoint.h>
24
7f2f82c3 25LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlopen,
cadfcbfc 26 LTTNG_UST_TP_ARGS(void *, ip, void *, baddr, const char *, path,
7b0fdd83
MD
27 int, flags, uint64_t, memsz, uint8_t, has_build_id,
28 uint8_t, has_debug_link),
efa14d16 29 LTTNG_UST_TP_FIELDS(
ddde62ca 30 lttng_ust_field_unused(ip)
b4064f28
MJ
31 lttng_ust_field_integer_hex(void *, baddr, baddr)
32 lttng_ust_field_integer(uint64_t, memsz, memsz)
33 lttng_ust_field_integer_hex(int, flags, flags)
3202f63a 34 lttng_ust_field_string(path, path)
b4064f28
MJ
35 lttng_ust_field_integer(uint8_t, has_build_id, has_build_id)
36 lttng_ust_field_integer(uint8_t, has_debug_link, has_debug_link)
7b0fdd83
MD
37 )
38)
39
42330adc 40#ifdef HAVE_DLMOPEN
7f2f82c3 41LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlmopen,
cadfcbfc 42 LTTNG_UST_TP_ARGS(void *, ip, void *, baddr, Lmid_t, nsid,
7b0fdd83 43 const char *, path, int, flags,
c5c4fd82
MD
44 uint64_t, memsz, uint8_t, has_build_id,
45 uint8_t, has_debug_link),
efa14d16 46 LTTNG_UST_TP_FIELDS(
ddde62ca 47 lttng_ust_field_unused(ip)
b4064f28
MJ
48 lttng_ust_field_integer_hex(void *, baddr, baddr)
49 lttng_ust_field_integer(uint64_t, memsz, memsz)
50 lttng_ust_field_integer(Lmid_t, nsid, nsid)
51 lttng_ust_field_integer_hex(int, flags, flags)
3202f63a 52 lttng_ust_field_string(path, path)
b4064f28
MJ
53 lttng_ust_field_integer(uint8_t, has_build_id, has_build_id)
54 lttng_ust_field_integer(uint8_t, has_debug_link, has_debug_link)
8e2aed3f
AB
55 )
56)
42330adc 57#endif
8e2aed3f 58
7f2f82c3 59LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, build_id,
cadfcbfc 60 LTTNG_UST_TP_ARGS(
8e2aed3f
AB
61 void *, ip,
62 void *, baddr,
63 uint8_t *, build_id,
64 size_t, build_id_len
65 ),
efa14d16 66 LTTNG_UST_TP_FIELDS(
ddde62ca 67 lttng_ust_field_unused(ip)
b4064f28 68 lttng_ust_field_integer_hex(void *, baddr, baddr)
1d188af9 69 lttng_ust_field_sequence_hex(uint8_t, build_id, build_id,
8e2aed3f
AB
70 size_t, build_id_len)
71 )
72)
73
7f2f82c3 74LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, debug_link,
cadfcbfc 75 LTTNG_UST_TP_ARGS(
8e2aed3f
AB
76 void *, ip,
77 void *, baddr,
78 char *, filename,
79 uint32_t, crc
80 ),
efa14d16 81 LTTNG_UST_TP_FIELDS(
ddde62ca 82 lttng_ust_field_unused(ip)
b4064f28
MJ
83 lttng_ust_field_integer_hex(void *, baddr, baddr)
84 lttng_ust_field_integer(uint32_t, crc, crc)
3202f63a 85 lttng_ust_field_string(filename, filename)
b13d93c2
PW
86 )
87)
88
7f2f82c3 89LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlclose,
cadfcbfc 90 LTTNG_UST_TP_ARGS(void *, ip, void *, baddr),
efa14d16 91 LTTNG_UST_TP_FIELDS(
ddde62ca 92 lttng_ust_field_unused(ip)
b4064f28 93 lttng_ust_field_integer_hex(void *, baddr, baddr)
b13d93c2
PW
94 )
95)
96
6d4658aa 97#endif /* _TRACEPOINT_UST_DL_H */
b13d93c2 98
bb71a8ea
MJ
99#undef LTTNG_UST_TRACEPOINT_INCLUDE
100#define LTTNG_UST_TRACEPOINT_INCLUDE "./ust_dl.h"
b13d93c2
PW
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.03298 seconds and 4 git commands to generate.