]> granicus.if.org Git - sysstat/commitdiff
Fixed XML output displayed by sadf (hugepages statistics were
authorSebastien Godard <sysstat@orange.fr>
Sat, 28 May 2011 14:03:55 +0000 (16:03 +0200)
committerSebastien Godard <sysstat@orange.fr>
Sat, 28 May 2011 14:03:55 +0000 (16:03 +0200)
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 <power-management> section, which is quite bad
in this case. So move hugepage structure just after memory utilization
one in activity.c:act[] array.

activity.c

index c559c2845a98c5b501a62417d1de5a828086104a..c7d95bcdfc06ac26fadf5b801ab99a8433a6cf8e 100644 (file)
@@ -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
 };