Adrien BĂ©raud | 612b55b | 2023-05-29 10:42:04 -0400 | [diff] [blame] | 1 | #ifdef ENABLE_TRACEPOINTS |
| 2 | #ifdef HAVE_CONFIG_H |
| 3 | #include "config.h" |
| 4 | #endif |
| 5 | |
| 6 | #undef LTTNG_UST_TRACEPOINT_PROVIDER |
| 7 | #define LTTNG_UST_TRACEPOINT_PROVIDER jami |
| 8 | |
| 9 | #undef LTTNG_UST_TRACEPOINT_INCLUDE |
| 10 | #define LTTNG_UST_TRACEPOINT_INCLUDE "src/jami/tracepoint-def.h" |
| 11 | |
| 12 | #if !defined(TRACEPOINT_DEF_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ) |
| 13 | #define TRACEPOINT_DEF_H |
| 14 | |
| 15 | #include <lttng/tracepoint.h> |
| 16 | |
| 17 | |
| 18 | /* |
| 19 | * Use LTTNG_UST_TRACEPOINT_EVENT(), LTTNG_UST_TRACEPOINT_EVENT_CLASS(), |
| 20 | * LTTNG_UST_TRACEPOINT_EVENT_INSTANCE(), and LTTNG_UST_TRACEPOINT_LOGLEVEL() |
| 21 | * here. |
| 22 | */ |
| 23 | |
| 24 | LTTNG_UST_TRACEPOINT_EVENT( |
| 25 | jami, |
| 26 | scheduled_executor_task_begin, |
| 27 | LTTNG_UST_TP_ARGS( |
| 28 | const char *, executor_name, |
| 29 | const char *, filename, |
| 30 | uint32_t, linum, |
| 31 | uint64_t, cookie |
| 32 | ), |
| 33 | LTTNG_UST_TP_FIELDS( |
| 34 | lttng_ust_field_string(executor, executor_name) |
| 35 | lttng_ust_field_string(source_filename, filename) |
| 36 | lttng_ust_field_integer(uint32_t, source_line, linum) |
| 37 | lttng_ust_field_integer(uint64_t, cookie, cookie) |
| 38 | ) |
| 39 | ) |
| 40 | |
| 41 | LTTNG_UST_TRACEPOINT_EVENT( |
| 42 | jami, |
| 43 | scheduled_executor_task_end, |
| 44 | LTTNG_UST_TP_ARGS(uint64_t, cookie), |
| 45 | LTTNG_UST_TP_FIELDS(lttng_ust_field_integer(uint64_t, cookie, cookie)) |
| 46 | ) |
| 47 | |
| 48 | LTTNG_UST_TRACEPOINT_EVENT( |
| 49 | jami, |
| 50 | ice_transport_context, |
| 51 | LTTNG_UST_TP_ARGS( |
| 52 | uint64_t, context |
| 53 | ), |
| 54 | LTTNG_UST_TP_FIELDS( |
| 55 | lttng_ust_field_integer(uint64_t, ice_context, context) |
| 56 | ) |
| 57 | ) |
| 58 | |
| 59 | LTTNG_UST_TRACEPOINT_EVENT( |
| 60 | jami, |
| 61 | ice_transport_send, |
| 62 | LTTNG_UST_TP_ARGS( |
| 63 | uint64_t, context, |
| 64 | unsigned, component, |
| 65 | size_t, len, |
| 66 | const char*, remote_addr |
| 67 | ), |
| 68 | LTTNG_UST_TP_FIELDS( |
| 69 | lttng_ust_field_integer(uint64_t, ice_context, context) |
| 70 | lttng_ust_field_integer(unsigned, component, component) |
| 71 | lttng_ust_field_integer(size_t, packet_length, len) |
| 72 | lttng_ust_field_string(remote_addr, remote_addr) |
| 73 | ) |
| 74 | ) |
| 75 | |
| 76 | LTTNG_UST_TRACEPOINT_EVENT( |
| 77 | jami, |
| 78 | ice_transport_send_status, |
| 79 | LTTNG_UST_TP_ARGS( |
| 80 | int, status |
| 81 | ), |
| 82 | LTTNG_UST_TP_FIELDS( |
| 83 | lttng_ust_field_integer(int, pj_status, status) |
| 84 | ) |
| 85 | ) |
| 86 | |
| 87 | LTTNG_UST_TRACEPOINT_EVENT( |
| 88 | jami, |
| 89 | ice_transport_recv, |
| 90 | LTTNG_UST_TP_ARGS( |
| 91 | uint64_t, context, |
| 92 | unsigned, component, |
| 93 | size_t, len, |
| 94 | const char*, remote_addr |
| 95 | ), |
| 96 | LTTNG_UST_TP_FIELDS( |
| 97 | lttng_ust_field_integer(uint64_t, ice_context, context) |
| 98 | lttng_ust_field_integer(unsigned, component, component) |
| 99 | lttng_ust_field_integer(size_t, packet_length, len) |
| 100 | lttng_ust_field_string(remote_addr, remote_addr) |
| 101 | ) |
| 102 | ) |
| 103 | |
| 104 | LTTNG_UST_TRACEPOINT_EVENT( |
| 105 | jami, |
| 106 | emit_signal, |
| 107 | LTTNG_UST_TP_ARGS( |
| 108 | const char*, signal_type |
| 109 | ), |
| 110 | LTTNG_UST_TP_FIELDS( |
| 111 | lttng_ust_field_string(signal_type, signal_type) |
| 112 | |
| 113 | ) |
| 114 | ) |
| 115 | |
| 116 | LTTNG_UST_TRACEPOINT_EVENT( |
| 117 | jami, |
| 118 | emit_signal_end, |
| 119 | LTTNG_UST_TP_ARGS( |
| 120 | ), |
| 121 | LTTNG_UST_TP_FIELDS( |
| 122 | ) |
| 123 | ) |
| 124 | |
| 125 | LTTNG_UST_TRACEPOINT_EVENT( |
| 126 | jami, |
| 127 | emit_signal_begin_callback, |
| 128 | LTTNG_UST_TP_ARGS( |
| 129 | const char*, filename, |
| 130 | uint32_t, linum |
| 131 | ), |
| 132 | LTTNG_UST_TP_FIELDS( |
| 133 | lttng_ust_field_string(source_filename, filename) |
| 134 | lttng_ust_field_integer(uint32_t, source_line, linum) |
| 135 | ) |
| 136 | ) |
| 137 | |
| 138 | LTTNG_UST_TRACEPOINT_EVENT( |
| 139 | jami, |
| 140 | emit_signal_end_callback, |
| 141 | LTTNG_UST_TP_ARGS( |
| 142 | ), |
| 143 | LTTNG_UST_TP_FIELDS( |
| 144 | ) |
| 145 | ) |
| 146 | |
| 147 | LTTNG_UST_TRACEPOINT_EVENT( |
| 148 | jami, |
| 149 | audio_input_read_from_device_end, |
| 150 | LTTNG_UST_TP_ARGS( |
| 151 | const char*, id |
| 152 | ), |
| 153 | LTTNG_UST_TP_FIELDS( |
| 154 | lttng_ust_field_integer(uint64_t, id, strtoull(id, NULL, 16)) |
| 155 | ) |
| 156 | ) |
| 157 | |
| 158 | LTTNG_UST_TRACEPOINT_EVENT( |
| 159 | jami, |
| 160 | audio_layer_put_recorded_end, |
| 161 | LTTNG_UST_TP_ARGS( |
| 162 | ), |
| 163 | LTTNG_UST_TP_FIELDS( |
| 164 | ) |
| 165 | ) |
| 166 | |
| 167 | LTTNG_UST_TRACEPOINT_EVENT( |
| 168 | jami, |
| 169 | audio_layer_get_to_play_end, |
| 170 | LTTNG_UST_TP_ARGS( |
| 171 | ), |
| 172 | LTTNG_UST_TP_FIELDS( |
| 173 | ) |
| 174 | ) |
| 175 | |
| 176 | LTTNG_UST_TRACEPOINT_EVENT( |
| 177 | jami, |
| 178 | call_start, |
| 179 | LTTNG_UST_TP_ARGS( |
| 180 | const char*, id |
| 181 | ), |
| 182 | LTTNG_UST_TP_FIELDS( |
| 183 | lttng_ust_field_integer(uint64_t, id, strtoull(id, NULL, 16)) |
| 184 | ) |
| 185 | ) |
| 186 | |
| 187 | LTTNG_UST_TRACEPOINT_EVENT( |
| 188 | jami, |
| 189 | call_end, |
| 190 | LTTNG_UST_TP_ARGS( |
| 191 | const char*, id |
| 192 | ), |
| 193 | LTTNG_UST_TP_FIELDS( |
| 194 | lttng_ust_field_integer(uint64_t, id, strtoull(id, NULL, 16)) |
| 195 | ) |
| 196 | ) |
| 197 | |
| 198 | LTTNG_UST_TRACEPOINT_EVENT( |
| 199 | jami, |
| 200 | conference_begin, |
| 201 | LTTNG_UST_TP_ARGS( |
| 202 | const char*, id |
| 203 | ), |
| 204 | LTTNG_UST_TP_FIELDS( |
| 205 | lttng_ust_field_integer(uint64_t, id, strtoull(id, NULL, 16)) |
| 206 | ) |
| 207 | ) |
| 208 | |
| 209 | LTTNG_UST_TRACEPOINT_EVENT( |
| 210 | jami, |
| 211 | conference_end, |
| 212 | LTTNG_UST_TP_ARGS( |
| 213 | const char*, id |
| 214 | ), |
| 215 | LTTNG_UST_TP_FIELDS( |
| 216 | lttng_ust_field_integer(uint64_t, id, strtoull(id, NULL, 16)) |
| 217 | ) |
| 218 | ) |
| 219 | |
| 220 | LTTNG_UST_TRACEPOINT_EVENT( |
| 221 | jami, |
| 222 | conference_add_participant, |
| 223 | LTTNG_UST_TP_ARGS( |
| 224 | const char*, conference_id, |
| 225 | const char*, participant_id |
| 226 | ), |
| 227 | LTTNG_UST_TP_FIELDS( |
| 228 | lttng_ust_field_integer(uint64_t, id, strtoull(conference_id, NULL, 16)) |
| 229 | lttng_ust_field_integer(uint64_t, participant_id, strtoull(participant_id, NULL, 16)) |
| 230 | ) |
| 231 | ) |
| 232 | |
| 233 | #endif /* TRACEPOINT_DEF_H */ |
| 234 | |
| 235 | #include <lttng/tracepoint-event.h> |
| 236 | |
| 237 | #endif |