From 6c8e9d95818bb4f5dbe18ee509e5d5c326bc06c5 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sat, 15 Sep 2012 15:15:15 -0500 Subject: [PATCH] library: fix proc_t page fault delta counts alignment When the maj_delta and min_delta fields were added to the proc_t, they necessitated some compiler generated padding bytes. With this slight reordering, those padding bytes are no longer generated. And since the original commit already broke the library ABI, now is an opportune time to correct that misalignment. Reference: commit 7753bd1004e65bde7fce4622c943401abc71f24a Signed-off-by: Jim Warner --- proc/readproc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proc/readproc.h b/proc/readproc.h index 0ae3b302..fb83dda6 100644 --- a/proc/readproc.h +++ b/proc/readproc.h @@ -41,11 +41,11 @@ typedef struct proc_t { int tid, // (special) task id, the POSIX thread ID (see also: tgid) 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 + unsigned + pcpu; // stat (special) %CPU usage (is not filled in by readproc!!!) char state, // stat,status single-char code for process state (S=sleeping) #ifdef QUICK_THREADS