From 9d1f6cb4ea0a66ca2c932ff4f9c67b7a879b2298 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Wed, 21 Sep 2016 08:08:08 -0500 Subject: [PATCH] library : added overlooked numa guest tic counts When this module was upgraded to 3rd generation in the patch referenced below, numa node support was migrated from the top program into newlib. The 'guest_nice' and 'guest' tics were overlooked as top did not need them. So, this commit corrects that oversight and achieves a proper symmetry between the cpu & numa jiffies counts. Reference(s): . 3rd gen redesign, numa support imported commit abc71a46ada71b790eb526d6cddb91e0d0aed4cb Signed-off-by: Jim Warner --- proc/stat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proc/stat.c b/proc/stat.c index 141873c7..18d44db5 100644 --- a/proc/stat.c +++ b/proc/stat.c @@ -487,6 +487,8 @@ static int stat_make_numa_hist ( nod_ptr->new.irq += cpu_ptr->new.irq; nod_ptr->old.irq += cpu_ptr->old.irq; nod_ptr->new.sirq += cpu_ptr->new.sirq; nod_ptr->old.sirq += cpu_ptr->old.sirq; nod_ptr->new.stolen += cpu_ptr->new.stolen; nod_ptr->old.stolen += cpu_ptr->old.stolen; + nod_ptr->new.guest += cpu_ptr->new.guest; nod_ptr->old.guest += cpu_ptr->old.guest; + nod_ptr->new.gnice += cpu_ptr->new.gnice; nod_ptr->old.gnice += cpu_ptr->old.gnice; cpu_ptr->numa_node = node; nod_ptr->id = node;