libsbp  v2.4.7
linux.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015-2018 Swift Navigation Inc.
3  * Contact: Swift Navigation <dev@swiftnav.com>
4  *
5  * This source is subject to the license found in the file 'LICENSE' which must
6  * be be distributed together with this source. All other rights reserved.
7  *
8  * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
10  * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11  */
12 
13 /*****************************************************************************
14  * Automatically generated from yaml/swiftnav/sbp/linux.yaml
15  * with generate.py. Please do not hand edit!
16  *****************************************************************************/
17 
23 #ifndef LIBSBP_LINUX_MESSAGES_H
24 #define LIBSBP_LINUX_MESSAGES_H
25 
26 #include "common.h"
27 
28 SBP_PACK_START
29 
30 
36 #define SBP_MSG_LINUX_CPU_STATE 0x7F00
37 typedef struct SBP_ATTR_PACKED {
39  u16 pid;
40  u8 pcpu;
41  char tname[15];
42  char cmdline[0];
44 
45 
51 #define SBP_MSG_LINUX_MEM_STATE 0x7F01
52 typedef struct SBP_ATTR_PACKED {
54  u16 pid;
55  u8 pmem;
56  char tname[15];
57  char cmdline[0];
59 
60 
65 #define SBP_MSG_LINUX_SYS_STATE 0x7F02
66 typedef struct SBP_ATTR_PACKED {
68  u8 pcpu;
69  u8 pmem;
74 
75 
80 #define SBP_MSG_LINUX_PROCESS_SOCKET_COUNTS 0x7F03
81 typedef struct SBP_ATTR_PACKED {
83  u16 pid;
95  char cmdline[0];
97 
98 
103 #define SBP_MSG_LINUX_PROCESS_SOCKET_QUEUES 0x7F04
104 typedef struct SBP_ATTR_PACKED {
119  char address_of_largest[64];
122  char cmdline[0];
124 
125 
130 #define SBP_MSG_LINUX_SOCKET_USAGE 0x7F05
131 typedef struct SBP_ATTR_PACKED {
134  u16 socket_state_counts[16];
137  u16 socket_type_counts[16];
141 
142 
147 #define SBP_MSG_LINUX_PROCESS_FD_COUNT 0x7F06
148 typedef struct SBP_ATTR_PACKED {
152  char cmdline[0];
154 
155 
160 #define SBP_MSG_LINUX_PROCESS_FD_SUMMARY 0x7F07
161 typedef struct SBP_ATTR_PACKED {
163  char most_opened[0];
169 
170 
173 SBP_PACK_END
174 
175 #endif /* LIBSBP_LINUX_MESSAGES_H */
u8 pcpu
percent of cpu used, expressed as a fraction of 256
Definition: linux.h:40
u16 pid
the PID of the process in question
Definition: linux.h:83
u16 socket_states
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)
Definition: linux.h:113
u16 socket_types
A bitfield indicating the socket types used: 0x1 (tcp), 0x2 (udp), 0x4 (unix stream), 0x8 (unix dgram), 0x10 (netlink), and 0x8000 (unknown)
Definition: linux.h:85
u16 socket_types
A bitfield indicating the socket types used: 0x1 (tcp), 0x2 (udp), 0x4 (unix stream), 0x8 (unix dgram), 0x10 (netlink), and 0x8000 (unknown)
Definition: linux.h:109
u16 fd_count
a count of the number of file descriptors opened by the process
Definition: linux.h:151
u16 pid_count
the count of processes on the system
Definition: linux.h:72
u8 pcpu
percent of total cpu currently utilized
Definition: linux.h:68
u8 index
sequence of this status message, values from 0-9
Definition: linux.h:82
u16 pid
the PID of the process
Definition: linux.h:54
u8 index
sequence of this status message, values from 0-9
Definition: linux.h:105
u32 sys_fd_count
count of total FDs open on the system
Definition: linux.h:162
u8 index
sequence of this status message, values from 0-9
Definition: linux.h:38
uint8_t u8
Unsigned 8-bit integer.
Definition: common.h:40
u16 recv_queued
the total amount of receive data queued for this process
Definition: linux.h:107
u16 pid
the PID of the process
Definition: linux.h:39
u16 send_queued
the total amount of send data queued for this process
Definition: linux.h:108
u8 index
sequence of this status message, values from 0-9
Definition: linux.h:53
uint16_t u16
Unsigned 16-bit integer.
Definition: common.h:42
uint32_t u32
Unsigned 32-bit integer.
Definition: common.h:44
u8 index
sequence of this status message, values from 0-9
Definition: linux.h:149
u32 avg_queue_depth
average socket queue depths across all sockets on the system
Definition: linux.h:132
u16 pid
the PID of the process in question
Definition: linux.h:106
u16 procs_stopping
number of processes that stopped during collection phase
Definition: linux.h:71
u16 socket_states
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)
Definition: linux.h:89
u16 procs_starting
number of processes that started during collection phase
Definition: linux.h:70
u32 max_queue_depth
the max queue depth seen within the reporting period
Definition: linux.h:133
u8 pmem
percent of memory used, expressed as a fraction of 256
Definition: linux.h:55
u8 pmem
percent of total memory currently utilized
Definition: linux.h:69
u16 mem_total
total system memory
Definition: linux.h:67
u16 pid
the PID of the process in question
Definition: linux.h:150
u16 socket_count
the number of sockets the process is using
Definition: linux.h:84