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 | */ | |
7 | ||
5b393d64 MJ |
8 | #undef LTTNG_UST_TRACEPOINT_PROVIDER |
9 | #define LTTNG_UST_TRACEPOINT_PROVIDER lttng_ust_statedump | |
95c25348 | 10 | |
c2c72dde | 11 | #if !defined(_TRACEPOINT_LTTNG_UST_STATEDUMP_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ) |
cf73e0fe | 12 | #define _TRACEPOINT_LTTNG_UST_STATEDUMP_H |
95c25348 PW |
13 | |
14 | #ifdef __cplusplus | |
15 | extern "C" { | |
16 | #endif | |
17 | ||
b4051ad8 | 18 | #include <stddef.h> |
95c25348 PW |
19 | #include <stdint.h> |
20 | #include <unistd.h> | |
21 | #include <lttng/ust-events.h> | |
22 | ||
cf73e0fe | 23 | #define LTTNG_UST_STATEDUMP_PROVIDER |
95c25348 PW |
24 | #include <lttng/tracepoint.h> |
25 | ||
7f2f82c3 | 26 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, start, |
cadfcbfc | 27 | LTTNG_UST_TP_ARGS(struct lttng_ust_session *, session), |
efa14d16 | 28 | LTTNG_UST_TP_FIELDS( |
ddde62ca | 29 | lttng_ust_field_unused(session) |
5152f6df | 30 | ) |
cf73e0fe AB |
31 | ) |
32 | ||
7f2f82c3 | 33 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, bin_info, |
cadfcbfc | 34 | LTTNG_UST_TP_ARGS( |
f69fe5fb | 35 | struct lttng_ust_session *, session, |
cf73e0fe | 36 | void *, baddr, |
f60e49df | 37 | const char*, path, |
f5eb039d | 38 | uint64_t, memsz, |
c5c4fd82 MD |
39 | uint8_t, is_pic, |
40 | uint8_t, has_build_id, | |
41 | uint8_t, has_debug_link | |
8e2aed3f | 42 | ), |
efa14d16 | 43 | LTTNG_UST_TP_FIELDS( |
ddde62ca | 44 | lttng_ust_field_unused(session) |
b4064f28 MJ |
45 | lttng_ust_field_integer_hex(void *, baddr, baddr) |
46 | lttng_ust_field_integer(uint64_t, memsz, memsz) | |
3202f63a | 47 | lttng_ust_field_string(path, path) |
b4064f28 MJ |
48 | lttng_ust_field_integer(uint8_t, is_pic, is_pic) |
49 | lttng_ust_field_integer(uint8_t, has_build_id, has_build_id) | |
50 | lttng_ust_field_integer(uint8_t, has_debug_link, has_debug_link) | |
8e2aed3f AB |
51 | ) |
52 | ) | |
53 | ||
7f2f82c3 | 54 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, build_id, |
cadfcbfc | 55 | LTTNG_UST_TP_ARGS( |
f69fe5fb | 56 | struct lttng_ust_session *, session, |
8e2aed3f AB |
57 | void *, baddr, |
58 | uint8_t *, build_id, | |
59 | size_t, build_id_len | |
60 | ), | |
efa14d16 | 61 | LTTNG_UST_TP_FIELDS( |
ddde62ca | 62 | lttng_ust_field_unused(session) |
b4064f28 | 63 | lttng_ust_field_integer_hex(void *, baddr, baddr) |
1d188af9 | 64 | lttng_ust_field_sequence_hex(uint8_t, build_id, build_id, |
8e2aed3f AB |
65 | size_t, build_id_len) |
66 | ) | |
67 | ) | |
68 | ||
7f2f82c3 | 69 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, debug_link, |
cadfcbfc | 70 | LTTNG_UST_TP_ARGS( |
f69fe5fb | 71 | struct lttng_ust_session *, session, |
8e2aed3f AB |
72 | void *, baddr, |
73 | char *, filename, | |
74 | uint32_t, crc | |
75 | ), | |
efa14d16 | 76 | LTTNG_UST_TP_FIELDS( |
ddde62ca | 77 | lttng_ust_field_unused(session) |
b4064f28 MJ |
78 | lttng_ust_field_integer_hex(void *, baddr, baddr) |
79 | lttng_ust_field_integer(uint32_t, crc, crc) | |
3202f63a | 80 | lttng_ust_field_string(filename, filename) |
95c25348 PW |
81 | ) |
82 | ) | |
83 | ||
7f2f82c3 | 84 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, procname, |
cadfcbfc | 85 | LTTNG_UST_TP_ARGS( |
f69fe5fb | 86 | struct lttng_ust_session *, session, |
94be38e8 JR |
87 | char *, name |
88 | ), | |
efa14d16 | 89 | LTTNG_UST_TP_FIELDS( |
ddde62ca | 90 | lttng_ust_field_unused(session) |
bff668bf | 91 | lttng_ust_field_array_text(char, procname, name, LTTNG_UST_CONTEXT_PROCNAME_LEN) |
94be38e8 JR |
92 | ) |
93 | ) | |
94 | ||
7f2f82c3 | 95 | LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, end, |
cadfcbfc | 96 | LTTNG_UST_TP_ARGS(struct lttng_ust_session *, session), |
efa14d16 | 97 | LTTNG_UST_TP_FIELDS( |
ddde62ca | 98 | lttng_ust_field_unused(session) |
5152f6df | 99 | ) |
cf73e0fe AB |
100 | ) |
101 | ||
102 | #endif /* _TRACEPOINT_LTTNG_UST_STATEDUMP_H */ | |
95c25348 | 103 | |
bb71a8ea MJ |
104 | #undef LTTNG_UST_TRACEPOINT_INCLUDE |
105 | #define LTTNG_UST_TRACEPOINT_INCLUDE "./lttng-ust-statedump-provider.h" | |
95c25348 PW |
106 | |
107 | /* This part must be outside ifdef protection */ | |
108 | #include <lttng/tracepoint-event.h> | |
109 | ||
110 | #ifdef __cplusplus | |
111 | } | |
112 | #endif |