00510 LC_ALL=C ./sadf -d tests/data.tmp -C -- -A > tests/out.sadf-d.tmp
00515 LC_ALL=C ./sadf -d tests/data.tmp -- -qu > tests/out.sadf-d-qu.tmp
00520 LC_ALL=C ./sadf -x tests/data.tmp -C -- -A > tests/out.sadf-x.tmp
+00525 LC_ALL=C ./sadf -x tests/datax.tmp -C 1 2 -- -uw -P 0-2 > tests/out1.sadf-x.tmp
00530 LC_ALL=C ./sadf -j tests/data.tmp -C -- -A > tests/out.sadf-j.tmp
00540 LC_ALL=C ./sadf -g tests/data.tmp -C -- -A > tests/out.sadf-g.tmp
00542 LC_ALL=C ./sadf -O height=370 -g tests/data.tmp > tests/out3.sadf-g.tmp
00980 LC_ALL=C TZ=GMT ./sar -f tests/data2.tmp -q ALL > tests/out2.sar-q.tmp
01010 LC_ALL=C TZ=GMT ./sar -f tests/data1.tmp -q ALL > tests/out2.sar-qALL.tmp
01020 LC_ALL=C TZ=GMT ./sadc --unix_time=1555593609 -S A_NULL,A_PSI_CPU tests/data1.tmp 1 1 2>&1 | grep "Requested activities not available"
+01030 LC_ALL=C TZ=GMT ./sar -f tests/datax.tmp 1 1 -C -uw -P 0-2 > tests/out.sar-11.tmp
===== sar/sadf: Reading data0.tmp
01100 LC_ALL=C TZ=GMT ./sar -A -f tests/data0.tmp > tests/out0.sar-A.tmp
--- /dev/null
+Linux 1.2.3-TEST (SYSSTAT.TEST) 04/18/19 _x86_64_ (9 CPU)
+
+13:20:09 LINUX RESTART (9 CPU)
+13:20:13 COM First comment!
+
+13:20:15 CPU %user %nice %system %iowait %steal %idle
+13:20:19 0 2.71 0.03 3.12 0.00 0.00 94.14
+13:20:19 1 2.85 0.00 5.16 0.00 0.00 91.99
+13:20:19 2 2.25 0.03 1.86 0.68 0.00 95.18
+
+Average: CPU %user %nice %system %iowait %steal %idle
+Average: 0 2.71 0.03 3.12 0.00 0.00 94.14
+Average: 1 2.85 0.00 5.16 0.00 0.00 91.99
+Average: 2 2.25 0.03 1.86 0.68 0.00 95.18
+
+13:20:15 proc/s cswch/s
+13:20:19 3.56 68409.30
+
+Average: proc/s cswch/s
+Average: 3.56 68409.30
+
+13:22:11 LINUX RESTART (9 CPU)
+
+13:22:21 CPU %user %nice %system %iowait %steal %idle
+13:22:31 0 2.71 0.03 3.12 0.00 0.00 94.14
+13:22:31 1 2.85 0.00 5.16 0.00 0.00 91.99
+13:22:31 2 2.25 0.03 1.86 0.68 0.00 95.18
+
+Average: CPU %user %nice %system %iowait %steal %idle
+Average: 0 2.71 0.03 3.12 0.00 0.00 94.14
+Average: 1 2.85 0.00 5.16 0.00 0.00 91.99
+Average: 2 2.25 0.03 1.86 0.68 0.00 95.18
+
+13:22:21 proc/s cswch/s
+13:22:31 3.56 68409.30
+
+Average: proc/s cswch/s
+Average: 3.56 68409.30
+13:22:35 COM Second comment!
+
+13:23:20 LINUX RESTART (9 CPU)
+
+13:24:10 LINUX RESTART (9 CPU)
+
+13:24:12 LINUX RESTART (9 CPU)
+
+13:24:20 CPU %user %nice %system %iowait %steal %idle
+13:24:25 0 2.71 0.03 3.12 0.00 0.00 94.14
+13:24:25 1 2.85 0.00 5.16 0.00 0.00 91.99
+13:24:25 2 2.25 0.03 1.86 0.68 0.00 95.18
+
+Average: CPU %user %nice %system %iowait %steal %idle
+Average: 0 2.71 0.03 3.12 0.00 0.00 94.14
+Average: 1 2.85 0.00 5.16 0.00 0.00 91.99
+Average: 2 2.25 0.03 1.86 0.68 0.00 95.18
+
+13:24:20 proc/s cswch/s
+13:24:25 3.56 68409.30
+
+Average: proc/s cswch/s
+Average: 3.56 68409.30
+13:22:46 COM Third...
+13:22:47 COM and fourth comment!
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE sysstat PUBLIC "DTD v3.9 sysstat //EN"
+"http://pagesperso-orange.fr/sebastien.godard/sysstat-3.9.dtd">
+<sysstat
+xmlns="http://pagesperso-orange.fr/sebastien.godard/sysstat"
+xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+xsi:schemaLocation="http://pagesperso-orange.fr/sebastien.godard sysstat.xsd">
+ <sysdata-version>3.9</sysdata-version>
+ <host nodename="SYSSTAT.TEST">
+ <sysname>Linux</sysname>
+ <release>1.2.3-TEST</release>
+ <machine>x86_64</machine>
+ <number-of-cpus>9</number-of-cpus>
+ <file-date>2019-04-18</file-date>
+ <file-utc-time>13:20:09</file-utc-time>
+ <timezone>GMT</timezone>
+ <statistics>
+ <timestamp date="2019-04-18" time="13:20:19" utc="1" interval="31">
+ <cpu-load>
+ <cpu number="0" user="2.71" nice="0.03" system="3.12" iowait="0.00" steal="0.00" idle="94.14"/>
+ <cpu number="1" user="2.85" nice="0.00" system="5.16" iowait="0.00" steal="0.00" idle="91.99"/>
+ <cpu number="2" user="2.25" nice="0.03" system="1.86" iowait="0.68" steal="0.00" idle="95.18"/>
+ </cpu-load>
+ <process-and-context-switch per="second" proc="3.56" cswch="68409.30"/>
+ </timestamp>
+ <timestamp date="2019-04-18" time="13:20:23" utc="1" interval="31">
+ <cpu-load>
+ <cpu number="0" user="1.25" nice="0.00" system="2.28" iowait="0.35" steal="0.00" idle="96.12"/>
+ <cpu number="1" user="2.15" nice="0.00" system="1.22" iowait="0.77" steal="0.00" idle="95.87"/>
+ <cpu number="2" user="3.27" nice="0.00" system="2.05" iowait="0.77" steal="0.00" idle="93.90"/>
+ </cpu-load>
+ <process-and-context-switch per="second" proc="4.83" cswch="46287.74"/>
+ </timestamp>
+ <timestamp date="2019-04-18" time="13:22:31" utc="1" interval="31">
+ <cpu-load>
+ <cpu number="0" user="2.71" nice="0.03" system="3.12" iowait="0.00" steal="0.00" idle="94.14"/>
+ <cpu number="1" user="2.85" nice="0.00" system="5.16" iowait="0.00" steal="0.00" idle="91.99"/>
+ <cpu number="2" user="2.25" nice="0.03" system="1.86" iowait="0.68" steal="0.00" idle="95.18"/>
+ </cpu-load>
+ <process-and-context-switch per="second" proc="3.56" cswch="68409.30"/>
+ </timestamp>
+ <timestamp date="2019-04-18" time="13:24:25" utc="1" interval="31">
+ <cpu-load>
+ <cpu number="0" user="2.71" nice="0.03" system="3.12" iowait="0.00" steal="0.00" idle="94.14"/>
+ <cpu number="1" user="2.85" nice="0.00" system="5.16" iowait="0.00" steal="0.00" idle="91.99"/>
+ <cpu number="2" user="2.25" nice="0.03" system="1.86" iowait="0.68" steal="0.00" idle="95.18"/>
+ </cpu-load>
+ <process-and-context-switch per="second" proc="3.56" cswch="68409.30"/>
+ </timestamp>
+ <timestamp date="2019-04-18" time="13:24:30" utc="1" interval="31">
+ <cpu-load>
+ <cpu number="0" user="1.25" nice="0.00" system="2.28" iowait="0.35" steal="0.00" idle="96.12"/>
+ <cpu number="1" user="2.15" nice="0.00" system="1.22" iowait="0.77" steal="0.00" idle="95.87"/>
+ <cpu number="2" user="3.27" nice="0.00" system="2.05" iowait="0.77" steal="0.00" idle="93.90"/>
+ </cpu-load>
+ <process-and-context-switch per="second" proc="4.83" cswch="46287.74"/>
+ </timestamp>
+ </statistics>
+ <restarts>
+ <boot date="2019-04-18" time="13:20:09" utc="1" cpu_count="9"/>
+ <boot date="2019-04-18" time="13:22:11" utc="1" cpu_count="9"/>
+ <boot date="2019-04-18" time="13:23:20" utc="1" cpu_count="9"/>
+ <boot date="2019-04-18" time="13:24:10" utc="1" cpu_count="9"/>
+ <boot date="2019-04-18" time="13:24:12" utc="1" cpu_count="9"/>
+ </restarts>
+ <comments>
+ <comment date="2019-04-18" time="13:20:13" utc="1" com="First comment!"/>
+ <comment date="2019-04-18" time="13:22:35" utc="1" com="Second comment!"/>
+ <comment date="2019-04-18" time="13:22:46" utc="1" com="Third..."/>
+ <comment date="2019-04-18" time="13:22:47" utc="1" com="and fourth comment!"/>
+ </comments>
+ </host>
+</sysstat>