Commit | Line | Data |
---|---|---|
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 | * Copyright (C) 2016 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
7 | */ | |
8 | ||
5b393d64 MJ |
9 | #undef LTTNG_UST_TRACEPOINT_PROVIDER |
10 | #define LTTNG_UST_TRACEPOINT_PROVIDER lttng_ust_lib | |
c7bdf2d8 | 11 | |
c2c72dde | 12 | #if !defined(_TRACEPOINT_UST_LIB_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ) |
c7bdf2d8 MD |
13 | #define _TRACEPOINT_UST_LIB_H |
14 | ||
15 | #ifdef __cplusplus | |
16 | extern "C" { | |
17 | #endif | |
18 | ||
b4051ad8 | 19 | #include <stddef.h> |
c7bdf2d8 MD |
20 | #include <stdint.h> |
21 | #include <unistd.h> | |
22 | ||
23 | #define LTTNG_UST_LIB_PROVIDER | |
24 | #include <lttng/tracepoint.h> | |
25 | ||
7f2f82c3 | 26 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, load, |
cadfcbfc | 27 | LTTNG_UST_TP_ARGS(void *, ip, void *, baddr, const char*, path, |
c7bdf2d8 MD |
28 | uint64_t, memsz, uint8_t, has_build_id, |
29 | uint8_t, has_debug_link), | |
efa14d16 | 30 | LTTNG_UST_TP_FIELDS( |
ddde62ca | 31 | lttng_ust_field_unused(ip) |
b4064f28 MJ |
32 | lttng_ust_field_integer_hex(void *, baddr, baddr) |
33 | lttng_ust_field_integer(uint64_t, memsz, memsz) | |
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) | |
c7bdf2d8 MD |
37 | ) |
38 | ) | |
39 | ||
7f2f82c3 | 40 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, build_id, |
cadfcbfc | 41 | LTTNG_UST_TP_ARGS( |
c7bdf2d8 MD |
42 | void *, ip, |
43 | void *, baddr, | |
44 | uint8_t *, build_id, | |
45 | size_t, build_id_len | |
46 | ), | |
efa14d16 | 47 | LTTNG_UST_TP_FIELDS( |
ddde62ca | 48 | lttng_ust_field_unused(ip) |
b4064f28 | 49 | lttng_ust_field_integer_hex(void *, baddr, baddr) |
1d188af9 | 50 | lttng_ust_field_sequence_hex(uint8_t, build_id, build_id, |
c7bdf2d8 MD |
51 | size_t, build_id_len) |
52 | ) | |
53 | ) | |
54 | ||
7f2f82c3 | 55 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, debug_link, |
cadfcbfc | 56 | LTTNG_UST_TP_ARGS( |
c7bdf2d8 MD |
57 | void *, ip, |
58 | void *, baddr, | |
59 | char *, filename, | |
60 | uint32_t, crc | |
61 | ), | |
efa14d16 | 62 | LTTNG_UST_TP_FIELDS( |
ddde62ca | 63 | lttng_ust_field_unused(ip) |
b4064f28 MJ |
64 | lttng_ust_field_integer_hex(void *, baddr, baddr) |
65 | lttng_ust_field_integer(uint32_t, crc, crc) | |
3202f63a | 66 | lttng_ust_field_string(filename, filename) |
c7bdf2d8 MD |
67 | ) |
68 | ) | |
69 | ||
7f2f82c3 | 70 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_lib, unload, |
cadfcbfc | 71 | LTTNG_UST_TP_ARGS(void *, ip, void *, baddr), |
efa14d16 | 72 | LTTNG_UST_TP_FIELDS( |
ddde62ca | 73 | lttng_ust_field_unused(ip) |
b4064f28 | 74 | lttng_ust_field_integer_hex(void *, baddr, baddr) |
c7bdf2d8 MD |
75 | ) |
76 | ) | |
77 | ||
78 | #endif /* _TRACEPOINT_UST_LIB_H */ | |
79 | ||
bb71a8ea MJ |
80 | #undef LTTNG_UST_TRACEPOINT_INCLUDE |
81 | #define LTTNG_UST_TRACEPOINT_INCLUDE "./ust_lib.h" | |
c7bdf2d8 MD |
82 | |
83 | /* This part must be outside ifdef protection */ | |
84 | #include <lttng/tracepoint-event.h> | |
85 | ||
86 | #ifdef __cplusplus | |
87 | } | |
88 | #endif |