From 7753bd1004e65bde7fce4622c943401abc71f24a Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 5 Jul 2012 12:47:22 -0500 Subject: [PATCH] library: adapt proc_t for top 'page fault delta' counts Signed-off-by: Jim Warner --- proc/readproc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/proc/readproc.h b/proc/readproc.h index 774fd3bc..0ae3b302 100644 --- a/proc/readproc.h +++ b/proc/readproc.h @@ -43,6 +43,9 @@ typedef struct proc_t { ppid; // stat,status pid of parent process unsigned pcpu; // stat (special) %CPU usage (is not filled in by readproc!!!) + unsigned long // next 2 fields are NOT filled in by readproc + maj_delta, // stat (special) major page faults since last update + min_delta; // stat (special) minor page faults since last update char state, // stat,status single-char code for process state (S=sleeping) #ifdef QUICK_THREADS