23 #ifndef LIBSBP_LINUX_MESSAGES_H
24 #define LIBSBP_LINUX_MESSAGES_H
36 #define SBP_MSG_LINUX_CPU_STATE 0x7F00
37 typedef struct SBP_ATTR_PACKED {
51 #define SBP_MSG_LINUX_MEM_STATE 0x7F01
52 typedef struct SBP_ATTR_PACKED {
65 #define SBP_MSG_LINUX_SYS_STATE 0x7F02
66 typedef struct SBP_ATTR_PACKED {
80 #define SBP_MSG_LINUX_PROCESS_SOCKET_COUNTS 0x7F03
81 typedef struct SBP_ATTR_PACKED {
103 #define SBP_MSG_LINUX_PROCESS_SOCKET_QUEUES 0x7F04
104 typedef struct SBP_ATTR_PACKED {
119 char address_of_largest[64];
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];
147 #define SBP_MSG_LINUX_PROCESS_FD_COUNT 0x7F06
148 typedef struct SBP_ATTR_PACKED {
160 #define SBP_MSG_LINUX_PROCESS_FD_SUMMARY 0x7F07
161 typedef struct SBP_ATTR_PACKED {
u8 pcpu
percent of cpu used, expressed as a fraction of 256
u16 pid
the PID of the process in question
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)
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)
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)
u16 fd_count
a count of the number of file descriptors opened by the process
u16 pid_count
the count of processes on the system
u8 pcpu
percent of total cpu currently utilized
u8 index
sequence of this status message, values from 0-9
u16 pid
the PID of the process
u8 index
sequence of this status message, values from 0-9
u32 sys_fd_count
count of total FDs open on the system
u8 index
sequence of this status message, values from 0-9
uint8_t u8
Unsigned 8-bit integer.
u16 recv_queued
the total amount of receive data queued for this process
u16 pid
the PID of the process
u16 send_queued
the total amount of send data queued for this process
u8 index
sequence of this status message, values from 0-9
uint16_t u16
Unsigned 16-bit integer.
uint32_t u32
Unsigned 32-bit integer.
u8 index
sequence of this status message, values from 0-9
u32 avg_queue_depth
average socket queue depths across all sockets on the system
u16 pid
the PID of the process in question
u16 procs_stopping
number of processes that stopped during collection phase
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)
u16 procs_starting
number of processes that started during collection phase
u32 max_queue_depth
the max queue depth seen within the reporting period
u8 pmem
percent of memory used, expressed as a fraction of 256
u8 pmem
percent of total memory currently utilized
u16 mem_total
total system memory
u16 pid
the PID of the process in question
u16 socket_count
the number of sockets the process is using