From d6af435006ff13b6067351a31713abd37a8a47fa Mon Sep 17 00:00:00 2001 From: Sebastien Godard Date: Sat, 28 May 2011 16:03:55 +0200 Subject: [PATCH] Fixed XML output displayed by sadf (hugepages statistics were included in power management ones). When displaying stats with sar, hugepages utilization statistics were displayed between voltage inputs statistics and CPU clock ones. This was not really smart but still OK. Yet, when displaying XML output with sadf -x, hugepages statistics were included in the section, which is quite bad in this case. So move hugepage structure just after memory utilization one in activity.c:act[] array. --- activity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activity.c b/activity.c index c559c28..c7d95bc 100644 --- a/activity.c +++ b/activity.c @@ -1169,6 +1169,7 @@ struct activity *act[NR_ACT] = { &paging_act, &io_act, &memory_act, + &huge_act, &ktables_act, &queue_act, &serial_act, @@ -1195,7 +1196,6 @@ struct activity *act[NR_ACT] = { &pwr_fan_act, &pwr_temp_act, &pwr_in_act, - &huge_act, &pwr_wghfreq_act, &pwr_usb_act }; -- 2.40.0