pub struct ThreadView {Show 19 fields
pub tid: i32,
pub cmd_line: String,
pub comm: String,
pub state: u8,
pub ppid: i32,
pub pgrp: i32,
pub session: i32,
pub flags: i32,
pub utime: u64,
pub stime: u64,
pub cutime: u64,
pub cstime: u64,
pub nice: u64,
pub uid: u64,
pub gid: u32,
pub cursig: u16,
pub sighold: u64,
pub sigpend: u64,
pub arch_state: Box<ArchState>,
}Expand description
Linux Light-weight Process
Fields§
§tid: i32Thread id.
cmd_line: StringCommand line.
comm: StringThe filename of the executable, in parentheses. This is visible whether or not the executable is swapped out.
state: u8One of the following characters, indicating process state: R Running S Sleeping in an interruptible wait D Waiting in uninterruptible disk sleep Z Zombie T Stopped (on a signal) or (before Linux 2.6.33) trace stopped t Tracing stop (Linux 2.6.33 onward) W Paging (only before Linux 2.6.0) X Dead (from Linux 2.6.0 onward) x Dead (Linux 2.6.33 to 3.13 only) K Wakekill (Linux 2.6.33 to 3.13 only) W Waking (Linux 2.6.33 to 3.13 only) P Parked (Linux 3.9 to 3.13 only)
ppid: i32The PID of the parent of this process.
pgrp: i32The process group ID of the process.
session: i32The session ID of the process.
flags: i32The kernel flags word of the process. For bit mean‐ ings, see the PF_* defines in the Linux kernel source file include/linux/sched.h. Details depend on the kernel version. The format for this field was %lu before Linux 2.6.
utime: u64Amount of time that this process has been scheduled in user mode, measured in clock ticks (divide by sysconf(_SC_CLK_TCK)). This includes guest time, guest_time (time spent running a virtual CPU, see below), so that applications that are not aware of the guest time field do not lose that time from their calculations.
stime: u64Amount of time that this process has been scheduled in kernel mode, measured in clock ticks (divide by sysconf(_SC_CLK_TCK)).
cutime: u64Amount of time that this process’s waited-for chil‐ dren have been scheduled in user mode, measured in clock ticks (divide by sysconf(_SC_CLK_TCK)). (See also times(2).) This includes guest time, cguest_time (time spent running a virtual CPU, see below).
cstime: u64Amount of time that this process’s waited-for chil‐ dren have been scheduled in kernel mode, measured in clock ticks (divide by sysconf(_SC_CLK_TCK)).
nice: u64The nice value (see setpriority(2)), a value in the range 19 (low priority) to -20 (high priority).
uid: u64User Id.
gid: u32Group Id.
cursig: u16Current signal.
sighold: u64Blocked signal.
sigpend: u64Pending signal.
arch_state: Box<ArchState>State of the CPU