2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2013 Paul Woegerer <paul_woegerer@mentor.com>
5 * Copyright (C) 2015 Antoine Busque <abusque@efficios.com>
8 #undef TRACEPOINT_PROVIDER
9 #define TRACEPOINT_PROVIDER lttng_ust_statedump
11 #if !defined(_TRACEPOINT_LTTNG_UST_STATEDUMP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
12 #define _TRACEPOINT_LTTNG_UST_STATEDUMP_H
21 #include <lttng/ust-events.h>
24 #define LTTNG_UST_STATEDUMP_PROVIDER
25 #include <lttng/tracepoint.h>
27 TRACEPOINT_EVENT(lttng_ust_statedump
, start
,
28 TP_ARGS(struct lttng_ust_session
*, session
),
34 TRACEPOINT_EVENT(lttng_ust_statedump
, bin_info
,
36 struct lttng_ust_session
*, session
,
41 uint8_t, has_build_id
,
42 uint8_t, has_debug_link
46 ctf_integer_hex(void *, baddr
, baddr
)
47 ctf_integer(uint64_t, memsz
, memsz
)
48 ctf_string(path
, path
)
49 ctf_integer(uint8_t, is_pic
, is_pic
)
50 ctf_integer(uint8_t, has_build_id
, has_build_id
)
51 ctf_integer(uint8_t, has_debug_link
, has_debug_link
)
55 TRACEPOINT_EVENT(lttng_ust_statedump
, build_id
,
57 struct lttng_ust_session
*, session
,
64 ctf_integer_hex(void *, baddr
, baddr
)
65 ctf_sequence_hex(uint8_t, build_id
, build_id
,
70 TRACEPOINT_EVENT(lttng_ust_statedump
, debug_link
,
72 struct lttng_ust_session
*, session
,
79 ctf_integer_hex(void *, baddr
, baddr
)
80 ctf_integer(uint32_t, crc
, crc
)
81 ctf_string(filename
, filename
)
85 TRACEPOINT_EVENT(lttng_ust_statedump
, procname
,
87 struct lttng_ust_session
*, session
,
92 ctf_array_text(char, procname
, name
, LTTNG_UST_ABI_PROCNAME_LEN
)
96 TRACEPOINT_EVENT(lttng_ust_statedump
, end
,
97 TP_ARGS(struct lttng_ust_session
*, session
),
103 #endif /* _TRACEPOINT_LTTNG_UST_STATEDUMP_H */
105 #undef TRACEPOINT_INCLUDE
106 #define TRACEPOINT_INCLUDE "./lttng-ust-statedump-provider.h"
108 /* This part must be outside ifdef protection */
109 #include <lttng/tracepoint-event.h>