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 7753bd1004
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
a65de0fd73
commit
6c8e9d9581
@ -41,11 +41,11 @@ typedef struct proc_t {
|
|||||||
int
|
int
|
||||||
tid, // (special) task id, the POSIX thread ID (see also: tgid)
|
tid, // (special) task id, the POSIX thread ID (see also: tgid)
|
||||||
ppid; // stat,status pid of parent process
|
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
|
unsigned long // next 2 fields are NOT filled in by readproc
|
||||||
maj_delta, // stat (special) major page faults since last update
|
maj_delta, // stat (special) major page faults since last update
|
||||||
min_delta; // stat (special) minor 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
|
char
|
||||||
state, // stat,status single-char code for process state (S=sleeping)
|
state, // stat,status single-char code for process state (S=sleeping)
|
||||||
#ifdef QUICK_THREADS
|
#ifdef QUICK_THREADS
|
||||||
|
Loading…
Reference in New Issue
Block a user