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 | ||
95c25348 | 8 | #undef TRACEPOINT_PROVIDER |
cf73e0fe | 9 | #define TRACEPOINT_PROVIDER lttng_ust_statedump |
95c25348 | 10 | |
cf73e0fe AB |
11 | #if !defined(_TRACEPOINT_LTTNG_UST_STATEDUMP_H) || defined(TRACEPOINT_HEADER_MULTI_READ) |
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> | |
94be38e8 | 22 | #include "compat.h" |
95c25348 | 23 | |
cf73e0fe | 24 | #define LTTNG_UST_STATEDUMP_PROVIDER |
95c25348 PW |
25 | #include <lttng/tracepoint.h> |
26 | ||
cf73e0fe AB |
27 | TRACEPOINT_EVENT(lttng_ust_statedump, start, |
28 | TP_ARGS(struct lttng_session *, session), | |
29 | TP_FIELDS() | |
30 | ) | |
31 | ||
f60e49df | 32 | TRACEPOINT_EVENT(lttng_ust_statedump, bin_info, |
cf73e0fe AB |
33 | TP_ARGS( |
34 | struct lttng_session *, session, | |
35 | void *, baddr, | |
f60e49df | 36 | const char*, path, |
f5eb039d | 37 | uint64_t, memsz, |
c5c4fd82 MD |
38 | uint8_t, is_pic, |
39 | uint8_t, has_build_id, | |
40 | uint8_t, has_debug_link | |
8e2aed3f | 41 | ), |
95c25348 PW |
42 | TP_FIELDS( |
43 | ctf_integer_hex(void *, baddr, baddr) | |
8e2aed3f | 44 | ctf_integer(uint64_t, memsz, memsz) |
f60e49df | 45 | ctf_string(path, path) |
f5eb039d | 46 | ctf_integer(uint8_t, is_pic, is_pic) |
c5c4fd82 MD |
47 | ctf_integer(uint8_t, has_build_id, has_build_id) |
48 | ctf_integer(uint8_t, has_debug_link, has_debug_link) | |
8e2aed3f AB |
49 | ) |
50 | ) | |
51 | ||
52 | TRACEPOINT_EVENT(lttng_ust_statedump, build_id, | |
53 | TP_ARGS( | |
54 | struct lttng_session *, session, | |
55 | void *, baddr, | |
56 | uint8_t *, build_id, | |
57 | size_t, build_id_len | |
58 | ), | |
59 | TP_FIELDS( | |
60 | ctf_integer_hex(void *, baddr, baddr) | |
61 | ctf_sequence_hex(uint8_t, build_id, build_id, | |
62 | size_t, build_id_len) | |
63 | ) | |
64 | ) | |
65 | ||
66 | TRACEPOINT_EVENT(lttng_ust_statedump, debug_link, | |
67 | TP_ARGS( | |
68 | struct lttng_session *, session, | |
69 | void *, baddr, | |
70 | char *, filename, | |
71 | uint32_t, crc | |
72 | ), | |
73 | TP_FIELDS( | |
74 | ctf_integer_hex(void *, baddr, baddr) | |
75 | ctf_integer(uint32_t, crc, crc) | |
76 | ctf_string(filename, filename) | |
95c25348 PW |
77 | ) |
78 | ) | |
79 | ||
94be38e8 JR |
80 | TRACEPOINT_EVENT(lttng_ust_statedump, procname, |
81 | TP_ARGS( | |
82 | struct lttng_session *, session, | |
83 | char *, name | |
84 | ), | |
85 | TP_FIELDS( | |
0db3d6ee | 86 | ctf_array_text(char, procname, name, LTTNG_UST_ABI_PROCNAME_LEN) |
94be38e8 JR |
87 | ) |
88 | ) | |
89 | ||
cf73e0fe AB |
90 | TRACEPOINT_EVENT(lttng_ust_statedump, end, |
91 | TP_ARGS(struct lttng_session *, session), | |
92 | TP_FIELDS() | |
93 | ) | |
94 | ||
95 | #endif /* _TRACEPOINT_LTTNG_UST_STATEDUMP_H */ | |
95c25348 PW |
96 | |
97 | #undef TRACEPOINT_INCLUDE | |
cf73e0fe | 98 | #define TRACEPOINT_INCLUDE "./lttng-ust-statedump-provider.h" |
95c25348 PW |
99 | |
100 | /* This part must be outside ifdef protection */ | |
101 | #include <lttng/tracepoint-event.h> | |
102 | ||
103 | #ifdef __cplusplus | |
104 | } | |
105 | #endif |