From: Sebastien Godard Date: Sat, 28 May 2011 14:03:55 +0000 (+0200) Subject: Fixed XML output displayed by sadf (hugepages statistics were X-Git-Tag: v10.0.1~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6af435006ff13b6067351a31713abd37a8a47fa;p=sysstat 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. --- 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 };