From ab73ac3b6fec89fe011c492b9b37a5f9b4d8e581 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Tue, 8 Feb 2011 13:59:21 +0000 Subject: [PATCH] procfs - export extra kernel time accounting fields --- servers/procfs/pid.c | 7 +++++++ 1 file changed, 7 insertions(+) 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"); }