diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-29 12:08:56 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-17 15:30:15 -0200 |
commit | cf0c074cc8c7e6fe858d621ea59976d2159d51bf (patch) | |
tree | 04688c8b7d64d1105dd6ca41c05c337c68731ab7 /linux/LinuxProcess.h | |
parent | 9c40c9a0e7e43577e77a372c18aa733ee17d81c2 (diff) |
Add IPC performance counter for Linux
Diffstat (limited to 'linux/LinuxProcess.h')
-rw-r--r-- | linux/LinuxProcess.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/linux/LinuxProcess.h b/linux/LinuxProcess.h index 5995dafb..ca22bdda 100644 --- a/linux/LinuxProcess.h +++ b/linux/LinuxProcess.h @@ -10,11 +10,14 @@ in the source distribution for its full text. */ +#include "PerfCounter.h" + #define PROCESS_FLAG_LINUX_IOPRIO 0x0100 #define PROCESS_FLAG_LINUX_OPENVZ 0x0200 #define PROCESS_FLAG_LINUX_VSERVER 0x0400 #define PROCESS_FLAG_LINUX_CGROUP 0x0800 #define PROCESS_FLAG_LINUX_OOM 0x1000 +#define PROCESS_FLAG_LINUX_HPC 0x2000 typedef enum UnsupportedProcessFields { FLAGS = 9, @@ -78,7 +81,10 @@ typedef enum LinuxProcessFields { PERCENT_IO_DELAY = 117, PERCENT_SWAP_DELAY = 118, #endif - LAST_PROCESSFIELD = 119, + #ifdef HAVE_PERFCOUNTERS + IPC = 119, + #endif + LAST_PROCESSFIELD = 120, } LinuxProcessField; #include "IOPriority.h" @@ -131,6 +137,11 @@ typedef struct LinuxProcess_ { float blkio_delay_percent; float swapin_delay_percent; #endif + #ifdef HAVE_PERFCOUNTERS + PerfCounter* cycleCounter; + PerfCounter* insnCounter; + double ipc; + #endif } LinuxProcess; #ifndef Process_isKernelThread |