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>
23 #define LTTNG_UST_STATEDUMP_PROVIDER
24 #include <lttng/tracepoint.h>
26 TRACEPOINT_EVENT(lttng_ust_statedump
, start
,
27 TP_ARGS(struct lttng_ust_session
*, session
),
33 TRACEPOINT_EVENT(lttng_ust_statedump
, bin_info
,
35 struct lttng_ust_session
*, session
,
40 uint8_t, has_build_id
,
41 uint8_t, has_debug_link
45 ctf_integer_hex(void *, baddr
, baddr
)
46 ctf_integer(uint64_t, memsz
, memsz
)
47 ctf_string(path
, path
)
48 ctf_integer(uint8_t, is_pic
, is_pic
)
49 ctf_integer(uint8_t, has_build_id
, has_build_id
)
50 ctf_integer(uint8_t, has_debug_link
, has_debug_link
)
54 TRACEPOINT_EVENT(lttng_ust_statedump
, build_id
,
56 struct lttng_ust_session
*, session
,
63 ctf_integer_hex(void *, baddr
, baddr
)
64 ctf_sequence_hex(uint8_t, build_id
, build_id
,
69 TRACEPOINT_EVENT(lttng_ust_statedump
, debug_link
,
71 struct lttng_ust_session
*, session
,
78 ctf_integer_hex(void *, baddr
, baddr
)
79 ctf_integer(uint32_t, crc
, crc
)
80 ctf_string(filename
, filename
)
84 TRACEPOINT_EVENT(lttng_ust_statedump
, procname
,
86 struct lttng_ust_session
*, session
,
91 ctf_array_text(char, procname
, name
, LTTNG_UST_ABI_PROCNAME_LEN
)
95 TRACEPOINT_EVENT(lttng_ust_statedump
, end
,
96 TP_ARGS(struct lttng_ust_session
*, session
),
102 #endif /* _TRACEPOINT_LTTNG_UST_STATEDUMP_H */
104 #undef TRACEPOINT_INCLUDE
105 #define TRACEPOINT_INCLUDE "./lttng-ust-statedump-provider.h"
107 /* This part must be outside ifdef protection */
108 #include <lttng/tracepoint-event.h>