diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-09-11 15:02:00 +0200 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2020-09-17 21:53:15 +0200 |
commit | 98ee833932ad90532246c95daf5859bdcf65dec9 (patch) | |
tree | d24676d96bacca04466c3050c509162fd74fb270 /linux/LinuxProcess.h | |
parent | ffc65b382753a1d61b8f43e4d86f5415b7bfb415 (diff) |
Add Linux process column for context switches
Displays the incremental sum of voluntary_ctxt_switches and nonvoluntary_ctxt_switches.
Diffstat (limited to 'linux/LinuxProcess.h')
-rw-r--r-- | linux/LinuxProcess.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h index 021cae7c..9972ee84 100644 --- a/linux/LinuxProcess.h +++ b/linux/LinuxProcess.h @@ -14,6 +14,7 @@ in the source distribution for its full text. #define PROCESS_FLAG_LINUX_CGROUP 0x0800 #define PROCESS_FLAG_LINUX_OOM 0x1000 #define PROCESS_FLAG_LINUX_SMAPS 0x2000 +#define PROCESS_FLAG_LINUX_CTXT 0x4000 typedef enum UnsupportedProcessFields { FLAGS = 9, @@ -80,7 +81,8 @@ typedef enum LinuxProcessFields { M_PSS = 119, M_SWAP = 120, M_PSSWP = 121, - LAST_PROCESSFIELD = 122, + CTXT = 122, + LAST_PROCESSFIELD = 123, } LinuxProcessField; #include "IOPriority.h" @@ -138,6 +140,8 @@ typedef struct LinuxProcess_ { float blkio_delay_percent; float swapin_delay_percent; #endif + unsigned long ctxt_total; + unsigned long ctxt_diff; } LinuxProcess; #define Process_isKernelThread(_process) (((LinuxProcess*)(_process))->isKernelThread) |