From: Ben Gras Date: Tue, 8 Feb 2011 13:59:21 +0000 (+0000) Subject: procfs - export extra kernel time accounting fields X-Git-Tag: v3.2.0~682 X-Git-Url: http://zhaoyanbai.com/repos/%22../static/icons/man.7.txt?a=commitdiff_plain;h=ab73ac3b6fec89fe011c492b9b37a5f9b4d8e581;p=minix.git procfs - export extra kernel time accounting fields --- diff --git a/servers/procfs/pid.c b/servers/procfs/pid.c index 88a9868aa..581768678 100644 --- a/servers/procfs/pid.c +++ b/servers/procfs/pid.c @@ -168,6 +168,13 @@ PRIVATE void pid_psinfo(int i) ); } + /* always add kernel cycles */ + buf_printf(" %lu %lu %lu %lu", + ex64hi(proc[i].p_kipc_cycles), + ex64lo(proc[i].p_kipc_cycles), + ex64hi(proc[i].p_kcall_cycles), + ex64lo(proc[i].p_kcall_cycles)); + /* Newline at the end of the file. */ buf_printf("\n"); }