-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathlinux.ksy
379 lines (365 loc) · 10.4 KB
/
linux.ksy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
# Copyright (C) 2015-2023 Swift Navigation Inc.
# Contact: https://support.swiftnav.com
#
# This source is subject to the license found in the file 'LICENSE' which must
# be distributed together with this source. All other rights reserved.
#
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
#
# Linux state monitoring.
#
# Automatically generated from spec/yaml/swiftnav/sbp/linux.yaml with generate.py.
# Do not modify by hand!
meta:
id: linux
endian: le
imports: [ ]
types:
msg_linux_cpu_state_dep_a:
doc: |
Deprecated.
seq:
- id: index
doc: |
sequence of this status message, values from 0-9
type: u1
- id: pid
doc: |
the PID of the process
type: u2
- id: pcpu
doc: |
percent of cpu used, expressed as a fraction of 256
type: u1
- id: tname
doc: |
fixed length string representing the thread name
type: str
encoding: ascii
size: 15
- id: cmdline
doc: |
the command line (as much as it fits in the remaining packet)
type: str
encoding: ascii
size-eos: true
msg_linux_mem_state_dep_a:
doc: |
Deprecated.
seq:
- id: index
doc: |
sequence of this status message, values from 0-9
type: u1
- id: pid
doc: |
the PID of the process
type: u2
- id: pmem
doc: |
percent of memory used, expressed as a fraction of 256
type: u1
- id: tname
doc: |
fixed length string representing the thread name
type: str
encoding: ascii
size: 15
- id: cmdline
doc: |
the command line (as much as it fits in the remaining packet)
type: str
encoding: ascii
size-eos: true
msg_linux_sys_state_dep_a:
doc: |
Deprecated.
seq:
- id: mem_total
doc: |
total system memory
type: u2
- id: pcpu
doc: |
percent of total cpu currently utilized
type: u1
- id: pmem
doc: |
percent of total memory currently utilized
type: u1
- id: procs_starting
doc: |
number of processes that started during collection phase
type: u2
- id: procs_stopping
doc: |
number of processes that stopped during collection phase
type: u2
- id: pid_count
doc: |
the count of processes on the system
type: u2
msg_linux_process_socket_counts:
doc: |
Top 10 list of processes with high socket counts.
seq:
- id: index
doc: |
sequence of this status message, values from 0-9
type: u1
- id: pid
doc: |
the PID of the process in question
type: u2
- id: socket_count
doc: |
the number of sockets the process is using
type: u2
- id: socket_types
doc: |
A bitfield indicating the socket types used: 0x1 (tcp), 0x2 (udp),
0x4 (unix stream), 0x8 (unix dgram), 0x10 (netlink), and 0x8000
(unknown)
type: u2
- id: socket_states
doc: |
A bitfield indicating the socket states: 0x1 (established), 0x2
(syn-sent), 0x4 (syn-recv), 0x8 (fin-wait-1), 0x10 (fin-wait-2),
0x20 (time-wait), 0x40 (closed), 0x80 (close-wait), 0x100 (last-
ack), 0x200 (listen), 0x400 (closing), 0x800 (unconnected), and
0x8000 (unknown)
type: u2
- id: cmdline
doc: |
the command line of the process in question
type: str
encoding: ascii
size-eos: true
msg_linux_process_socket_queues:
doc: |
Top 10 list of sockets with deep queues.
seq:
- id: index
doc: |
sequence of this status message, values from 0-9
type: u1
- id: pid
doc: |
the PID of the process in question
type: u2
- id: recv_queued
doc: |
the total amount of receive data queued for this process
type: u2
- id: send_queued
doc: |
the total amount of send data queued for this process
type: u2
- id: socket_types
doc: |
A bitfield indicating the socket types used: 0x1 (tcp), 0x2 (udp),
0x4 (unix stream), 0x8 (unix dgram), 0x10 (netlink), and 0x8000
(unknown)
type: u2
- id: socket_states
doc: |
A bitfield indicating the socket states: 0x1 (established), 0x2
(syn-sent), 0x4 (syn-recv), 0x8 (fin-wait-1), 0x10 (fin-wait-2),
0x20 (time-wait), 0x40 (closed), 0x80 (close-wait), 0x100 (last-
ack), 0x200 (listen), 0x400 (closing), 0x800 (unconnected), and
0x8000 (unknown)
type: u2
- id: address_of_largest
doc: |
Address of the largest queue, remote or local depending on the
directionality of the connection.
type: str
encoding: ascii
size: 64
- id: cmdline
doc: |
the command line of the process in question
type: str
encoding: ascii
size-eos: true
msg_linux_socket_usage:
doc: |
Summaries the socket usage across the system.
seq:
- id: avg_queue_depth
doc: |
average socket queue depths across all sockets on the system
type: u4
- id: max_queue_depth
doc: |
the max queue depth seen within the reporting period
type: u4
- id: socket_state_counts
doc: |
A count for each socket type reported in the `socket_types_reported`
field, the first entry corresponds to the first enabled bit in
`types_reported`.
type: u2
repeat: expr
repeat-expr: 16
- id: socket_type_counts
doc: |
A count for each socket type reported in the `socket_types_reported`
field, the first entry corresponds to the first enabled bit in
`types_reported`.
type: u2
repeat: expr
repeat-expr: 16
msg_linux_process_fd_count:
doc: |
Top 10 list of processes with a large number of open file descriptors.
seq:
- id: index
doc: |
sequence of this status message, values from 0-9
type: u1
- id: pid
doc: |
the PID of the process in question
type: u2
- id: fd_count
doc: |
a count of the number of file descriptors opened by the process
type: u2
- id: cmdline
doc: |
the command line of the process in question
type: str
encoding: ascii
size-eos: true
msg_linux_process_fd_summary:
doc: |
Summary of open file descriptors on the system.
seq:
- id: sys_fd_count
doc: |
count of total FDs open on the system
type: u4
- id: most_opened
doc: |
A null delimited list of strings which alternates between a string
representation of the process count and the file name whose count it
being reported. That is, in C string syntax
"32\0/var/log/syslog\012\0/tmp/foo\0" with the end of the list being
2 NULL terminators in a row.
type: str
encoding: ascii
size-eos: true
msg_linux_cpu_state:
doc: |
This message indicates the process state of the top 10 heaviest
consumers of CPU on the system, including a timestamp.
seq:
- id: index
doc: |
sequence of this status message, values from 0-9
type: u1
- id: pid
doc: |
the PID of the process
type: u2
- id: pcpu
doc: |
percent of CPU used, expressed as a fraction of 256
type: u1
- id: time
doc: |
timestamp of message, refer to flags field for how to interpret
type: u4
- id: flags
doc: |
flags
type: u1
- id: tname
doc: |
fixed length string representing the thread name
type: str
encoding: ascii
size: 15
- id: cmdline
doc: |
the command line (as much as it fits in the remaining packet)
type: str
encoding: ascii
size-eos: true
msg_linux_mem_state:
doc: |
This message indicates the process state of the top 10 heaviest
consumers of memory on the system, including a timestamp.
seq:
- id: index
doc: |
sequence of this status message, values from 0-9
type: u1
- id: pid
doc: |
the PID of the process
type: u2
- id: pmem
doc: |
percent of memory used, expressed as a fraction of 256
type: u1
- id: time
doc: |
timestamp of message, refer to flags field for how to interpret
type: u4
- id: flags
doc: |
flags
type: u1
- id: tname
doc: |
fixed length string representing the thread name
type: str
encoding: ascii
size: 15
- id: cmdline
doc: |
the command line (as much as it fits in the remaining packet)
type: str
encoding: ascii
size-eos: true
msg_linux_sys_state:
doc: |
This presents a summary of CPU and memory utilization, including a
timestamp.
seq:
- id: mem_total
doc: |
total system memory, in MiB
type: u2
- id: pcpu
doc: |
percent of CPU used, expressed as a fraction of 256
type: u1
- id: pmem
doc: |
percent of memory used, expressed as a fraction of 256
type: u1
- id: procs_starting
doc: |
number of processes that started during collection phase
type: u2
- id: procs_stopping
doc: |
number of processes that stopped during collection phase
type: u2
- id: pid_count
doc: |
the count of processes on the system
type: u2
- id: time
doc: |
timestamp of message, refer to flags field for how to interpret
type: u4
- id: flags
doc: |
flags
type: u1