Move to kernel style SPDX license identifiers
[lttng-ust.git] / liblttng-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 TRACEPOINT_PROVIDER
9 #define TRACEPOINT_PROVIDER lttng_ust_statedump
10
11 #if !defined(_TRACEPOINT_LTTNG_UST_STATEDUMP_H) || defined(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 #include "compat.h"
23
24 #define LTTNG_UST_STATEDUMP_PROVIDER
25 #include <lttng/tracepoint.h>
26
27 TRACEPOINT_EVENT(lttng_ust_statedump, start,
28 TP_ARGS(struct lttng_session *, session),
29 TP_FIELDS()
30 )
31
32 TRACEPOINT_EVENT(lttng_ust_statedump, bin_info,
33 TP_ARGS(
34 struct lttng_session *, session,
35 void *, baddr,
36 const char*, path,
37 uint64_t, memsz,
38 uint8_t, is_pic,
39 uint8_t, has_build_id,
40 uint8_t, has_debug_link
41 ),
42 TP_FIELDS(
43 ctf_integer_hex(void *, baddr, baddr)
44 ctf_integer(uint64_t, memsz, memsz)
45 ctf_string(path, path)
46 ctf_integer(uint8_t, is_pic, is_pic)
47 ctf_integer(uint8_t, has_build_id, has_build_id)
48 ctf_integer(uint8_t, has_debug_link, has_debug_link)
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)
77 )
78 )
79
80 TRACEPOINT_EVENT(lttng_ust_statedump, procname,
81 TP_ARGS(
82 struct lttng_session *, session,
83 char *, name
84 ),
85 TP_FIELDS(
86 ctf_array_text(char, procname, name, LTTNG_UST_ABI_PROCNAME_LEN)
87 )
88 )
89
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 */
96
97 #undef TRACEPOINT_INCLUDE
98 #define TRACEPOINT_INCLUDE "./lttng-ust-statedump-provider.h"
99
100 /* This part must be outside ifdef protection */
101 #include <lttng/tracepoint-event.h>
102
103 #ifdef __cplusplus
104 }
105 #endif
This page took 0.031477 seconds and 4 git commands to generate.