From 74ac39c1af5c8e85bf10711aed2ffc9dfee2e277 Mon Sep 17 00:00:00 2001 From: Wiimm Date: Sun, 28 May 2023 05:52:52 +0200 Subject: SZS v2.34a --- project/dclib/dclib-file.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'project/dclib/dclib-file.h') diff --git a/project/dclib/dclib-file.h b/project/dclib/dclib-file.h index 8215583..bfc85e6 100644 --- a/project/dclib/dclib-file.h +++ b/project/dclib/dclib-file.h @@ -1679,15 +1679,23 @@ __attribute__ ((__format__(__printf__,3,4))); typedef struct CpuStatus_t { bool valid; // TRUE: data valid (setup done) + bool have_irq; // TRUE if 'irq' ever >0 + bool have_virtual; // TRUE if 'virtual' ever >0 + bool have_unknown; // TRUE if 'unknown' ever >0 + u_nsec_t nsec; // GetTimerNSec() int clock_ticks; // number of clock ticks per second int n_cpu; // total number of cpus // all times in 1e4 ticks per second (in 0.01%) - u64 user; // time spent in user mode. - u64 nice; // time spent in user mode with low priority. - u64 system; // time spent in system mode. - u64 idle; // time spent in the idle task. + u64 user; // 1: time spent in user mode. + u64 nice; // 2: time spent in user mode with low priority. + u64 system; // 3: time spent in system mode. + u64 idle; // 4: time spent in the idle task. + u64 iowait; // 5: time waiting for I/O to complete (not reliable). + u64 irq; // 6..7: Time servicing (soft-)interrupts. + u64 virtual; // 8..10: time for virtual os. + u64 unknown; // 11...: time for future extentions int running_proc; // currently runnable processes int total_proc; // currently total processes -- cgit v1.3.1