0cad9ad863daf02f2e00f120fdbbe5cb9ffdf972
[lttng-ust.git] / src / lib / lttng-ust / lttng-ust-statedump-provider.h
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
8 #undef LTTNG_UST_TRACEPOINT_PROVIDER
9 #define LTTNG_UST_TRACEPOINT_PROVIDER lttng_ust_statedump
10
11 #if !defined(_TRACEPOINT_LTTNG_UST_STATEDUMP_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
12 #define _TRACEPOINT_LTTNG_UST_STATEDUMP_H
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 #include <stddef.h>
19 #include <stdint.h>
20 #include <unistd.h>
21 #include <lttng/ust-events.h>
22
23 #define LTTNG_UST_STATEDUMP_PROVIDER
24 #include <lttng/tracepoint.h>
25
26 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, start,
27 LTTNG_UST_TP_ARGS(struct lttng_ust_session *, session),
28 LTTNG_UST_TP_FIELDS(
29 lttng_ust_field_unused(session)
30 )
31 )
32
33 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, bin_info,
34 LTTNG_UST_TP_ARGS(
35 struct lttng_ust_session *, session,
36 void *, baddr,
37 const char*, path,
38 uint64_t, memsz,
39 uint8_t, is_pic,
40 uint8_t, has_build_id,
41 uint8_t, has_debug_link
42 ),
43 LTTNG_UST_TP_FIELDS(
44 lttng_ust_field_unused(session)
45 lttng_ust_field_integer_hex(void *, baddr, baddr)
46 lttng_ust_field_integer(uint64_t, memsz, memsz)
47 lttng_ust_field_string(path, path)
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)
51 )
52 )
53
54 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, build_id,
55 LTTNG_UST_TP_ARGS(
56 struct lttng_ust_session *, session,
57 void *, baddr,
58 uint8_t *, build_id,
59 size_t, build_id_len
60 ),
61 LTTNG_UST_TP_FIELDS(
62 lttng_ust_field_unused(session)
63 lttng_ust_field_integer_hex(void *, baddr, baddr)
64 lttng_ust_field_sequence_hex(uint8_t, build_id, build_id,
65 size_t, build_id_len)
66 )
67 )
68
69 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, debug_link,
70 LTTNG_UST_TP_ARGS(
71 struct lttng_ust_session *, session,
72 void *, baddr,
73 char *, filename,
74 uint32_t, crc
75 ),
76 LTTNG_UST_TP_FIELDS(
77 lttng_ust_field_unused(session)
78 lttng_ust_field_integer_hex(void *, baddr, baddr)
79 lttng_ust_field_integer(uint32_t, crc, crc)
80 lttng_ust_field_string(filename, filename)
81 )
82 )
83
84 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, procname,
85 LTTNG_UST_TP_ARGS(
86 struct lttng_ust_session *, session,
87 char *, name
88 ),
89 LTTNG_UST_TP_FIELDS(
90 lttng_ust_field_unused(session)
91 lttng_ust_field_array_text(char, procname, name, LTTNG_UST_ABI_PROCNAME_LEN)
92 )
93 )
94
95 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_statedump, end,
96 LTTNG_UST_TP_ARGS(struct lttng_ust_session *, session),
97 LTTNG_UST_TP_FIELDS(
98 lttng_ust_field_unused(session)
99 )
100 )
101
102 #endif /* _TRACEPOINT_LTTNG_UST_STATEDUMP_H */
103
104 #undef LTTNG_UST_TRACEPOINT_INCLUDE
105 #define LTTNG_UST_TRACEPOINT_INCLUDE "./lttng-ust-statedump-provider.h"
106
107 /* This part must be outside ifdef protection */
108 #include <lttng/tracepoint-event.h>
109
110 #ifdef __cplusplus
111 }
112 #endif
This page took 0.030744 seconds and 3 git commands to generate.