From: Sebastien GODARD Date: Mon, 25 Nov 2019 08:09:18 +0000 (+0100) Subject: mpstat: Add new non regression tests X-Git-Tag: v12.3.1~15 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a0fe8ce49d7cee66ae94dde1b65e639fb6f2404;p=sysstat mpstat: Add new non regression tests Add new non regression tests for topology and JSON output. Signed-off-by: Sebastien GODARD --- diff --git a/tests/00360 b/tests/00360 new file mode 100644 index 0000000..3a30c6d --- /dev/null +++ b/tests/00360 @@ -0,0 +1,8 @@ +. tests/variables +if [ ! -z "$VER_JSON" ]; then + rm -f tests/root + ln -s root1 tests/root + ./mpstat -P ALL -T 1 2 -o JSON | $VER_JSON >/dev/null +else + echo Skipped +fi diff --git a/tests/03050 b/tests/03050 new file mode 100644 index 0000000..d435cb1 --- /dev/null +++ b/tests/03050 @@ -0,0 +1,3 @@ +rm -f tests/root +ln -s root1 tests/root +LC_ALL=C TZ=GMT ./mpstat -T -P ALL 1 2 > tests/out.mpstat-T.tmp diff --git a/tests/03055 b/tests/03055 new file mode 100644 index 0000000..24b6957 --- /dev/null +++ b/tests/03055 @@ -0,0 +1 @@ +diff -u tests/out.mpstat-T.tmp tests/expected.mpstat-T diff --git a/tests/03060 b/tests/03060 new file mode 100644 index 0000000..8b3ac6c --- /dev/null +++ b/tests/03060 @@ -0,0 +1,3 @@ +rm -f tests/root +ln -s root1 tests/root +LC_ALL=C TZ=GMT ./mpstat -o JSON -A 1 1 > tests/out.mpstat-A-JSON.tmp diff --git a/tests/03065 b/tests/03065 new file mode 100644 index 0000000..55f4d04 --- /dev/null +++ b/tests/03065 @@ -0,0 +1 @@ +diff -u tests/out.mpstat-A-JSON.tmp tests/expected.mpstat-A-JSON diff --git a/tests/03070 b/tests/03070 new file mode 100644 index 0000000..4684dba --- /dev/null +++ b/tests/03070 @@ -0,0 +1,3 @@ +rm -f tests/root +ln -s root1 tests/root +LC_ALL=C TZ=GMT ./mpstat -o JSON -T -P ALL > tests/out.mpstat-T-JSON.tmp diff --git a/tests/03075 b/tests/03075 new file mode 100644 index 0000000..22ccccb --- /dev/null +++ b/tests/03075 @@ -0,0 +1 @@ +diff -u tests/out.mpstat-T-JSON.tmp tests/expected.mpstat-T-JSON diff --git a/tests/TLIST b/tests/TLIST index 500fffa..480ba72 100644 --- a/tests/TLIST +++ b/tests/TLIST @@ -67,7 +67,8 @@ NOTES: 00345 ./iostat -y 1 3 -o JSON ALL -p ALL -xt | $VER_JSON >/dev/null 00346 ./iostat 1 3 -o JSON | $VER_JSON >/dev/null 00347 ./iostat -xs 1 3 -o JSON ALL -p ALL | $VER_JSON >/dev/null -00350 ./iostat -o JSON -g total /dev/sda1 sda3 -g foo 1 3 | $VER_JSON >/dev/null; +00350 ./iostat -o JSON -g total /dev/sda1 sda3 -g foo 1 3 | $VER_JSON >/dev/null +00360 ./mpstat -P ALL -T 1 2 -o JSON | $VER_JSON >/dev/null ===== Checking XML output validity 00400 export LC_ALL=C ; ./sadf -x tests/data.tmp -C -- -A | $VER_XML --schema xml/sysstat.xsd - >/dev/null && ./sadf -x tests/data.tmp | $VER_XML --schema xml/sysstat.xsd - >/dev/null && ./sadf -T -x tests/data.tmp | $VER_XML --schema xml/sysstat.xsd - >/dev/null @@ -435,6 +436,12 @@ NOTES: ===== Playing with mpstat 03040 LC_ALL=C TZ=GMT ./mpstat -I ALL --dec=1 > tests/out.mpstat-dec.tmp 03042 diff -u tests/out.mpstat-dec.tmp tests/expected.mpstat-dec +03050 LC_ALL=C TZ=GMT ./mpstat -T -P ALL 1 2 > tests/out.mpstat-T.tmp +03055 diff -u tests/out.mpstat-T.tmp tests/expected.mpstat-T +03060 LC_ALL=C TZ=GMT ./mpstat -o JSON -A 1 1 > tests/out.mpstat-A-JSON.tmp +03065 diff -u tests/out.mpstat-A-JSON.tmp tests/expected.mpstat-A-JSON +03070 LC_ALL=C TZ=GMT ./mpstat -o JSON -T -P ALL > tests/out.mpstat-T-JSON.tmp +03075 diff -u tests/out.mpstat-T-JSON.tmp tests/expected.mpstat-T-JSON ===== Tests mpstat error cases 03100 LC_ALL=C ./mpstat -1 2>&1 | grep "Usage:" >/dev/null diff --git a/tests/expected.mpstat-A-JSON b/tests/expected.mpstat-A-JSON new file mode 100644 index 0000000..52b9349 --- /dev/null +++ b/tests/expected.mpstat-A-JSON @@ -0,0 +1,504 @@ +{"sysstat": { + "hosts": [ + { + "nodename": "SYSSTAT.TEST", + "sysname": "Linux", + "release": "1.2.3-TEST", + "machine": "x86_64", + "number-of-cpus": 8, + "date": "01/01/70", + "statistics": [ + { + "timestamp": "00:00:01", + "cpu-load": [ + {"cpu": "all", "usr": 2.15, "nice": 12.50, "sys": 1.84, "iowait": 0.12, "irq": 0.34, "soft": 0.19, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 82.88}, + {"cpu": "0", "usr": 2.71, "nice": 0.03, "sys": 2.16, "iowait": 0.00, "irq": 0.32, "soft": 0.64, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 94.14}, + {"cpu": "1", "usr": 2.85, "nice": 0.00, "sys": 4.28, "iowait": 0.00, "irq": 0.68, "soft": 0.19, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 91.99}, + {"cpu": "2", "usr": 2.25, "nice": 0.03, "sys": 1.51, "iowait": 0.68, "irq": 0.23, "soft": 0.13, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 95.18}, + {"cpu": "3", "usr": 0.00, "nice": 99.55, "sys": 0.06, "iowait": 0.00, "irq": 0.32, "soft": 0.06, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 0.00}, + {"cpu": "4", "usr": 2.41, "nice": 0.00, "sys": 1.61, "iowait": 0.03, "irq": 0.26, "soft": 0.19, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 95.50}, + {"cpu": "5", "usr": 1.65, "nice": 0.00, "sys": 2.33, "iowait": 0.00, "irq": 0.36, "soft": 0.10, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 95.57}, + {"cpu": "6", "usr": 2.41, "nice": 0.00, "sys": 2.03, "iowait": 0.16, "irq": 0.48, "soft": 0.10, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 94.82}, + {"cpu": "7", "usr": 2.89, "nice": 0.00, "sys": 0.74, "iowait": 0.06, "irq": 0.06, "soft": 0.06, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 96.18} + ], + "node-load": [ + {"node": "all", "usr": 2.15, "nice": 12.50, "sys": 1.84, "iowait": 0.12, "irq": 0.34, "soft": 0.19, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 82.88}, + {"node": "0", "usr": 2.44, "nice": 0.02, "sys": 1.83, "iowait": 0.22, "irq": 0.32, "soft": 0.27, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 94.91}, + {"node": "1", "usr": 1.85, "nice": 25.01, "sys": 1.85, "iowait": 0.02, "irq": 0.35, "soft": 0.10, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 70.83} + ], + "sum-interrupts": [ + {"cpu": "all", "intr": 35525.06}, + {"cpu": "0", "intr": 40.78}, + {"cpu": "1", "intr": 33.62}, + {"cpu": "2", "intr": 46.65}, + {"cpu": "3", "intr": 48.67}, + {"cpu": "4", "intr": 68.85}, + {"cpu": "5", "intr": 42.67}, + {"cpu": "6", "intr": 62.88}, + {"cpu": "7", "intr": 42.22} + ], + "individual-interrupts": [ + {"cpu": "0", "intr": [ + {"name": "0", "value": 0.00}, + {"name": "8", "value": 0.00}, + {"name": "9", "value": 0.00}, + {"name": "16", "value": 0.00}, + {"name": "17", "value": 0.00}, + {"name": "18", "value": 0.00}, + {"name": "19", "value": 0.00}, + {"name": "23", "value": 0.00}, + {"name": "24", "value": 0.00}, + {"name": "25", "value": 0.00}, + {"name": "26", "value": 0.00}, + {"name": "27", "value": 0.00}, + {"name": "28", "value": 0.00}, + {"name": "29", "value": 0.00}, + {"name": "30", "value": 0.00}, + {"name": "31", "value": 0.00}, + {"name": "32", "value": 0.00}, + {"name": "33", "value": 0.00}, + {"name": "34", "value": 0.00}, + {"name": "35", "value": 0.00}, + {"name": "36", "value": 0.00}, + {"name": "NMI", "value": 0.03}, + {"name": "LOC", "value": 5434.36}, + {"name": "SPU", "value": 0.00}, + {"name": "PMI", "value": 0.03}, + {"name": "IWI", "value": 0.00}, + {"name": "RTR", "value": 0.00}, + {"name": "RES", "value": 149.37}, + {"name": "CAL", "value": 69.87}, + {"name": "TLB", "value": 105.97}, + {"name": "TRM", "value": 0.00}, + {"name": "THR", "value": 0.00}, + {"name": "DFR", "value": 0.00}, + {"name": "MCE", "value": 0.00}, + {"name": "MCP", "value": 0.03}, + {"name": "HYP", "value": 0.00}, + {"name": "HRE", "value": 0.00}, + {"name": "HVS", "value": 0.00}, + {"name": "ERR", "value": 0.00}, + {"name": "MIS", "value": 0.00}, + {"name": "PIN", "value": 0.00}, + {"name": "NPI", "value": 0.00}, + {"name": "PIW", "value": 0.00} + ] }, + {"cpu": "1", "intr": [ + {"name": "0", "value": 0.00}, + {"name": "8", "value": 0.00}, + {"name": "9", "value": 0.00}, + {"name": "16", "value": 0.00}, + {"name": "17", "value": 0.00}, + {"name": "18", "value": 0.00}, + {"name": "19", "value": 0.00}, + {"name": "23", "value": 0.00}, + {"name": "24", "value": 0.00}, + {"name": "25", "value": 0.00}, + {"name": "26", "value": 0.00}, + {"name": "27", "value": 0.00}, + {"name": "28", "value": 0.00}, + {"name": "29", "value": 0.00}, + {"name": "30", "value": 0.00}, + {"name": "31", "value": 0.00}, + {"name": "32", "value": 0.00}, + {"name": "33", "value": 0.00}, + {"name": "34", "value": 0.00}, + {"name": "35", "value": 0.00}, + {"name": "36", "value": 0.00}, + {"name": "NMI", "value": 0.00}, + {"name": "LOC", "value": 11720.31}, + {"name": "SPU", "value": 0.00}, + {"name": "PMI", "value": 0.00}, + {"name": "IWI", "value": 0.00}, + {"name": "RTR", "value": 0.00}, + {"name": "RES", "value": 32.72}, + {"name": "CAL", "value": 19.44}, + {"name": "TLB", "value": 56.79}, + {"name": "TRM", "value": 0.00}, + {"name": "THR", "value": 0.00}, + {"name": "DFR", "value": 0.00}, + {"name": "MCE", "value": 0.00}, + {"name": "MCP", "value": 0.03}, + {"name": "HYP", "value": 0.00}, + {"name": "HRE", "value": 0.00}, + {"name": "HVS", "value": 0.00}, + {"name": "ERR", "value": 0.00}, + {"name": "MIS", "value": 0.00}, + {"name": "PIN", "value": 0.00}, + {"name": "NPI", "value": 0.00}, + {"name": "PIW", "value": 0.00} + ] }, + {"cpu": "2", "intr": [ + {"name": "0", "value": 0.00}, + {"name": "8", "value": 0.00}, + {"name": "9", "value": 0.00}, + {"name": "16", "value": 0.00}, + {"name": "17", "value": 0.00}, + {"name": "18", "value": 0.00}, + {"name": "19", "value": 0.00}, + {"name": "23", "value": 0.00}, + {"name": "24", "value": 10.39}, + {"name": "25", "value": 0.00}, + {"name": "26", "value": 0.00}, + {"name": "27", "value": 0.00}, + {"name": "28", "value": 0.00}, + {"name": "29", "value": 0.00}, + {"name": "30", "value": 0.00}, + {"name": "31", "value": 0.00}, + {"name": "32", "value": 0.00}, + {"name": "33", "value": 0.00}, + {"name": "34", "value": 0.00}, + {"name": "35", "value": 0.00}, + {"name": "36", "value": 0.00}, + {"name": "NMI", "value": 0.00}, + {"name": "LOC", "value": 2903.79}, + {"name": "SPU", "value": 0.00}, + {"name": "PMI", "value": 0.00}, + {"name": "IWI", "value": 0.00}, + {"name": "RTR", "value": 0.00}, + {"name": "RES", "value": 13.19}, + {"name": "CAL", "value": 20.47}, + {"name": "TLB", "value": 42.89}, + {"name": "TRM", "value": 0.00}, + {"name": "THR", "value": 0.00}, + {"name": "DFR", "value": 0.00}, + {"name": "MCE", "value": 0.00}, + {"name": "MCP", "value": 0.03}, + {"name": "HYP", "value": 0.00}, + {"name": "HRE", "value": 0.00}, + {"name": "HVS", "value": 0.00}, + {"name": "ERR", "value": 0.00}, + {"name": "MIS", "value": 0.00}, + {"name": "PIN", "value": 0.00}, + {"name": "NPI", "value": 0.00}, + {"name": "PIW", "value": 0.00} + ] }, + {"cpu": "3", "intr": [ + {"name": "0", "value": 0.00}, + {"name": "8", "value": 0.00}, + {"name": "9", "value": 0.00}, + {"name": "16", "value": 0.00}, + {"name": "17", "value": 0.00}, + {"name": "18", "value": 0.00}, + {"name": "19", "value": 0.00}, + {"name": "23", "value": 0.00}, + {"name": "24", "value": 0.00}, + {"name": "25", "value": 0.00}, + {"name": "26", "value": 0.00}, + {"name": "27", "value": 0.00}, + {"name": "28", "value": 0.00}, + {"name": "29", "value": 0.00}, + {"name": "30", "value": 0.00}, + {"name": "31", "value": 0.00}, + {"name": "32", "value": 0.00}, + {"name": "33", "value": 15.11}, + {"name": "34", "value": 0.00}, + {"name": "35", "value": 0.00}, + {"name": "36", "value": 0.00}, + {"name": "NMI", "value": 0.13}, + {"name": "LOC", "value": 1009.79}, + {"name": "SPU", "value": 0.00}, + {"name": "PMI", "value": 0.13}, + {"name": "IWI", "value": 0.00}, + {"name": "RTR", "value": 0.00}, + {"name": "RES", "value": 0.10}, + {"name": "CAL", "value": 1.41}, + {"name": "TLB", "value": 0.35}, + {"name": "TRM", "value": 0.00}, + {"name": "THR", "value": 0.00}, + {"name": "DFR", "value": 0.00}, + {"name": "MCE", "value": 0.00}, + {"name": "MCP", "value": 0.03}, + {"name": "HYP", "value": 0.00}, + {"name": "HRE", "value": 0.00}, + {"name": "HVS", "value": 0.00}, + {"name": "ERR", "value": 0.00}, + {"name": "MIS", "value": 0.00}, + {"name": "PIN", "value": 0.00}, + {"name": "NPI", "value": 0.00}, + {"name": "PIW", "value": 0.00} + ] }, + {"cpu": "4", "intr": [ + {"name": "0", "value": 0.00}, + {"name": "8", "value": 0.00}, + {"name": "9", "value": 0.00}, + {"name": "16", "value": 0.00}, + {"name": "17", "value": 0.00}, + {"name": "18", "value": 0.00}, + {"name": "19", "value": 25.92}, + {"name": "23", "value": 35.03}, + {"name": "24", "value": 0.00}, + {"name": "25", "value": 0.00}, + {"name": "26", "value": 0.00}, + {"name": "27", "value": 0.00}, + {"name": "28", "value": 0.00}, + {"name": "29", "value": 0.00}, + {"name": "30", "value": 0.00}, + {"name": "31", "value": 0.00}, + {"name": "32", "value": 0.00}, + {"name": "33", "value": 0.00}, + {"name": "34", "value": 0.00}, + {"name": "35", "value": 0.00}, + {"name": "36", "value": 0.00}, + {"name": "NMI", "value": 0.00}, + {"name": "LOC", "value": 2825.25}, + {"name": "SPU", "value": 0.00}, + {"name": "PMI", "value": 0.00}, + {"name": "IWI", "value": 0.00}, + {"name": "RTR", "value": 0.00}, + {"name": "RES", "value": 4.62}, + {"name": "CAL", "value": 13.35}, + {"name": "TLB", "value": 48.60}, + {"name": "TRM", "value": 0.00}, + {"name": "THR", "value": 0.00}, + {"name": "DFR", "value": 0.00}, + {"name": "MCE", "value": 0.00}, + {"name": "MCP", "value": 0.03}, + {"name": "HYP", "value": 0.00}, + {"name": "HRE", "value": 0.00}, + {"name": "HVS", "value": 0.00}, + {"name": "ERR", "value": 0.00}, + {"name": "MIS", "value": 0.00}, + {"name": "PIN", "value": 0.00}, + {"name": "NPI", "value": 0.00}, + {"name": "PIW", "value": 0.00} + ] }, + {"cpu": "5", "intr": [ + {"name": "0", "value": 0.00}, + {"name": "8", "value": 0.00}, + {"name": "9", "value": 0.00}, + {"name": "16", "value": 0.00}, + {"name": "17", "value": 0.00}, + {"name": "18", "value": 0.00}, + {"name": "19", "value": 0.00}, + {"name": "23", "value": 0.00}, + {"name": "24", "value": 0.00}, + {"name": "25", "value": 0.00}, + {"name": "26", "value": 0.00}, + {"name": "27", "value": 0.00}, + {"name": "28", "value": 0.00}, + {"name": "29", "value": 0.00}, + {"name": "30", "value": 0.00}, + {"name": "31", "value": 0.00}, + {"name": "32", "value": 0.00}, + {"name": "33", "value": 0.00}, + {"name": "34", "value": 0.00}, + {"name": "35", "value": 0.00}, + {"name": "36", "value": 0.00}, + {"name": "NMI", "value": 0.00}, + {"name": "LOC", "value": 5828.49}, + {"name": "SPU", "value": 0.00}, + {"name": "PMI", "value": 0.00}, + {"name": "IWI", "value": 0.00}, + {"name": "RTR", "value": 0.00}, + {"name": "RES", "value": 2.69}, + {"name": "CAL", "value": 17.32}, + {"name": "TLB", "value": 32.34}, + {"name": "TRM", "value": 0.00}, + {"name": "THR", "value": 0.00}, + {"name": "DFR", "value": 0.00}, + {"name": "MCE", "value": 0.00}, + {"name": "MCP", "value": 0.03}, + {"name": "HYP", "value": 0.00}, + {"name": "HRE", "value": 0.00}, + {"name": "HVS", "value": 0.00}, + {"name": "ERR", "value": 0.00}, + {"name": "MIS", "value": 0.00}, + {"name": "PIN", "value": 0.00}, + {"name": "NPI", "value": 0.00}, + {"name": "PIW", "value": 0.00} + ] }, + {"cpu": "6", "intr": [ + {"name": "0", "value": 0.00}, + {"name": "8", "value": 0.00}, + {"name": "9", "value": 0.00}, + {"name": "16", "value": 0.00}, + {"name": "17", "value": 0.00}, + {"name": "18", "value": 0.00}, + {"name": "19", "value": 0.00}, + {"name": "23", "value": 0.00}, + {"name": "24", "value": 0.00}, + {"name": "25", "value": 0.00}, + {"name": "26", "value": 0.00}, + {"name": "27", "value": 0.00}, + {"name": "28", "value": 0.00}, + {"name": "29", "value": 0.00}, + {"name": "30", "value": 0.00}, + {"name": "31", "value": 0.00}, + {"name": "32", "value": 0.00}, + {"name": "33", "value": 0.00}, + {"name": "34", "value": 149.98}, + {"name": "35", "value": 0.00}, + {"name": "36", "value": 0.00}, + {"name": "NMI", "value": 0.03}, + {"name": "LOC", "value": 4691.08}, + {"name": "SPU", "value": 0.00}, + {"name": "PMI", "value": 0.03}, + {"name": "IWI", "value": 0.00}, + {"name": "RTR", "value": 0.00}, + {"name": "RES", "value": 9.11}, + {"name": "CAL", "value": 18.67}, + {"name": "TLB", "value": 29.71}, + {"name": "TRM", "value": 0.00}, + {"name": "THR", "value": 0.00}, + {"name": "DFR", "value": 0.00}, + {"name": "MCE", "value": 0.00}, + {"name": "MCP", "value": 0.03}, + {"name": "HYP", "value": 0.00}, + {"name": "HRE", "value": 0.00}, + {"name": "HVS", "value": 0.00}, + {"name": "ERR", "value": 0.00}, + {"name": "MIS", "value": 0.00}, + {"name": "PIN", "value": 0.00}, + {"name": "NPI", "value": 0.00}, + {"name": "PIW", "value": 0.00} + ] }, + {"cpu": "7", "intr": [ + {"name": "0", "value": 0.00}, + {"name": "8", "value": 0.00}, + {"name": "9", "value": 0.00}, + {"name": "16", "value": 0.00}, + {"name": "17", "value": 0.00}, + {"name": "18", "value": 0.00}, + {"name": "19", "value": 0.00}, + {"name": "23", "value": 0.00}, + {"name": "24", "value": 0.00}, + {"name": "25", "value": 0.00}, + {"name": "26", "value": 0.00}, + {"name": "27", "value": 0.00}, + {"name": "28", "value": 0.00}, + {"name": "29", "value": 0.00}, + {"name": "30", "value": 0.00}, + {"name": "31", "value": 0.00}, + {"name": "32", "value": 0.00}, + {"name": "33", "value": 0.00}, + {"name": "34", "value": 0.00}, + {"name": "35", "value": 0.00}, + {"name": "36", "value": 0.00}, + {"name": "NMI", "value": 0.00}, + {"name": "LOC", "value": 468.33}, + {"name": "SPU", "value": 0.00}, + {"name": "PMI", "value": 0.00}, + {"name": "IWI", "value": 0.00}, + {"name": "RTR", "value": 0.00}, + {"name": "RES", "value": 3.21}, + {"name": "CAL", "value": 31.15}, + {"name": "TLB", "value": 84.57}, + {"name": "TRM", "value": 0.00}, + {"name": "THR", "value": 0.00}, + {"name": "DFR", "value": 0.00}, + {"name": "MCE", "value": 0.00}, + {"name": "MCP", "value": 0.03}, + {"name": "HYP", "value": 0.00}, + {"name": "HRE", "value": 0.00}, + {"name": "HVS", "value": 0.00}, + {"name": "ERR", "value": 0.00}, + {"name": "MIS", "value": 0.00}, + {"name": "PIN", "value": 0.00}, + {"name": "NPI", "value": 0.00}, + {"name": "PIW", "value": 0.00} + ] } + ], + "soft-interrupts": [ + {"cpu": "0", "intr": [ + {"name": "HI", "value": 0.00}, + {"name": "TIMER", "value": 13.09}, + {"name": "NET_TX", "value": 0.00}, + {"name": "NET_RX", "value": 0.00}, + {"name": "BLOCK", "value": 0.00}, + {"name": "IRQ_POLL", "value": 0.00}, + {"name": "TASKLET", "value": 0.00}, + {"name": "SCHED", "value": 19.44}, + {"name": "HRTIMER", "value": 0.00}, + {"name": "RCU", "value": 8.25} + ] }, + {"cpu": "1", "intr": [ + {"name": "HI", "value": 0.00}, + {"name": "TIMER", "value": 17.36}, + {"name": "NET_TX", "value": 0.00}, + {"name": "NET_RX", "value": 0.00}, + {"name": "BLOCK", "value": 0.00}, + {"name": "IRQ_POLL", "value": 0.00}, + {"name": "TASKLET", "value": 0.00}, + {"name": "SCHED", "value": 8.05}, + {"name": "HRTIMER", "value": 0.00}, + {"name": "RCU", "value": 8.21} + ] }, + {"cpu": "2", "intr": [ + {"name": "HI", "value": 0.00}, + {"name": "TIMER", "value": 25.99}, + {"name": "NET_TX", "value": 0.00}, + {"name": "NET_RX", "value": 0.00}, + {"name": "BLOCK", "value": 2.18}, + {"name": "IRQ_POLL", "value": 0.00}, + {"name": "TASKLET", "value": 0.00}, + {"name": "SCHED", "value": 6.10}, + {"name": "HRTIMER", "value": 0.00}, + {"name": "RCU", "value": 12.38} + ] }, + {"cpu": "3", "intr": [ + {"name": "HI", "value": 0.00}, + {"name": "TIMER", "value": 21.98}, + {"name": "NET_TX", "value": 0.10}, + {"name": "NET_RX", "value": 1.19}, + {"name": "BLOCK", "value": 0.00}, + {"name": "IRQ_POLL", "value": 0.00}, + {"name": "TASKLET", "value": 0.00}, + {"name": "SCHED", "value": 9.98}, + {"name": "HRTIMER", "value": 0.00}, + {"name": "RCU", "value": 15.43} + ] }, + {"cpu": "4", "intr": [ + {"name": "HI", "value": 3.02}, + {"name": "TIMER", "value": 21.78}, + {"name": "NET_TX", "value": 0.00}, + {"name": "NET_RX", "value": 0.00}, + {"name": "BLOCK", "value": 0.38}, + {"name": "IRQ_POLL", "value": 0.00}, + {"name": "TASKLET", "value": 19.44}, + {"name": "SCHED", "value": 11.97}, + {"name": "HRTIMER", "value": 0.00}, + {"name": "RCU", "value": 12.26} + ] }, + {"cpu": "5", "intr": [ + {"name": "HI", "value": 0.00}, + {"name": "TIMER", "value": 19.19}, + {"name": "NET_TX", "value": 0.00}, + {"name": "NET_RX", "value": 0.00}, + {"name": "BLOCK", "value": 0.77}, + {"name": "IRQ_POLL", "value": 0.00}, + {"name": "TASKLET", "value": 0.00}, + {"name": "SCHED", "value": 11.87}, + {"name": "HRTIMER", "value": 0.00}, + {"name": "RCU", "value": 10.84} + ] }, + {"cpu": "6", "intr": [ + {"name": "HI", "value": 0.00}, + {"name": "TIMER", "value": 31.41}, + {"name": "NET_TX", "value": 0.00}, + {"name": "NET_RX", "value": 0.00}, + {"name": "BLOCK", "value": 0.00}, + {"name": "IRQ_POLL", "value": 0.00}, + {"name": "TASKLET", "value": 0.00}, + {"name": "SCHED", "value": 15.01}, + {"name": "HRTIMER", "value": 0.00}, + {"name": "RCU", "value": 16.46} + ] }, + {"cpu": "7", "intr": [ + {"name": "HI", "value": 0.00}, + {"name": "TIMER", "value": 20.08}, + {"name": "NET_TX", "value": 0.00}, + {"name": "NET_RX", "value": 0.00}, + {"name": "BLOCK", "value": 0.00}, + {"name": "IRQ_POLL", "value": 0.00}, + {"name": "TASKLET", "value": 0.00}, + {"name": "SCHED", "value": 9.82}, + {"name": "HRTIMER", "value": 0.00}, + {"name": "RCU", "value": 12.32} + ] } + ] + } + ] + } + ] +}} diff --git a/tests/expected.mpstat-T b/tests/expected.mpstat-T new file mode 100644 index 0000000..32de128 --- /dev/null +++ b/tests/expected.mpstat-T @@ -0,0 +1,33 @@ +Linux 1.2.3-TEST (SYSSTAT.TEST) 01/01/70 _x86_64_ (8 CPU) + +00:00:00 CPU CORE SOCK NODE %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle +00:00:01 all 2.15 12.50 1.84 0.12 0.34 0.19 0.00 0.00 0.00 82.88 +00:00:01 0 0 0 0 2.71 0.03 2.16 0.00 0.32 0.64 0.00 0.00 0.00 94.14 +00:00:01 1 1 0 1 2.85 0.00 4.28 0.00 0.68 0.19 0.00 0.00 0.00 91.99 +00:00:01 2 2 0 0 2.25 0.03 1.51 0.68 0.23 0.13 0.00 0.00 0.00 95.18 +00:00:01 3 3 0 1 0.00 99.55 0.06 0.00 0.32 0.06 0.00 0.00 0.00 0.00 +00:00:01 4 0 0 0 2.41 0.00 1.61 0.03 0.26 0.19 0.00 0.00 0.00 95.50 +00:00:01 5 1 0 1 1.65 0.00 2.33 0.00 0.36 0.10 0.00 0.00 0.00 95.57 +00:00:01 6 2 0 0 2.41 0.00 2.03 0.16 0.48 0.10 0.00 0.00 0.00 94.82 +00:00:01 7 3 0 1 2.89 0.00 0.74 0.06 0.06 0.06 0.00 0.00 0.00 96.18 + +00:00:01 CPU CORE SOCK NODE %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle +00:00:02 all 2.28 0.00 1.55 0.50 0.19 0.19 0.00 0.00 0.00 95.29 +00:00:02 0 0 0 0 1.25 0.00 1.51 0.35 0.19 0.58 0.00 0.00 0.00 96.12 +00:00:02 1 1 0 1 2.15 0.00 0.96 0.77 0.10 0.16 0.00 0.00 0.00 95.87 +00:00:02 2 2 0 0 3.27 0.00 1.73 0.77 0.22 0.10 0.00 0.00 0.00 93.90 +00:00:02 3 3 0 1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 100.00 +00:00:02 4 0 0 0 3.44 0.00 2.16 0.84 0.32 0.16 0.00 0.00 0.00 93.08 +00:00:02 5 1 0 1 2.76 0.00 2.08 0.16 0.19 0.10 0.00 0.00 0.00 94.71 +00:00:02 7 3 0 1 0.83 0.00 0.83 0.10 0.10 0.06 0.00 0.00 0.00 98.08 + +Average: CPU CORE SOCK NODE %usr %nice %sys %iowait %irq %soft %steal %guest %gnice %idle +Average: all 2.20 7.13 1.71 0.28 0.27 0.19 0.00 0.00 0.00 88.21 +Average: 0 0 0 0 1.98 0.02 1.83 0.18 0.26 0.61 0.00 0.00 0.00 95.13 +Average: 1 1 0 1 2.50 0.00 2.61 0.39 0.39 0.18 0.00 0.00 0.00 93.94 +Average: 2 2 0 0 2.76 0.02 1.62 0.72 0.22 0.11 0.00 0.00 0.00 94.54 +Average: 3 3 0 1 0.00 99.55 0.06 0.00 0.32 0.06 0.00 0.00 0.00 0.00 +Average: 4 0 0 0 2.93 0.00 1.88 0.43 0.29 0.18 0.00 0.00 0.00 94.29 +Average: 5 1 0 1 2.21 0.00 2.21 0.08 0.27 0.10 0.00 0.00 0.00 95.14 +Average: 6 2 0 0 2.41 0.00 2.03 0.16 0.48 0.10 0.00 0.00 0.00 94.82 +Average: 7 3 0 1 1.86 0.00 0.79 0.08 0.08 0.06 0.00 0.00 0.00 97.13 diff --git a/tests/expected.mpstat-T-JSON b/tests/expected.mpstat-T-JSON new file mode 100644 index 0000000..b674c7e --- /dev/null +++ b/tests/expected.mpstat-T-JSON @@ -0,0 +1,28 @@ +{"sysstat": { + "hosts": [ + { + "nodename": "SYSSTAT.TEST", + "sysname": "Linux", + "release": "1.2.3-TEST", + "machine": "x86_64", + "number-of-cpus": 8, + "date": "01/01/70", + "statistics": [ + { + "timestamp": "00:00:00", + "cpu-load": [ + {"cpu": "all", "core": "", "socket": "", "node": "", "usr": 1.65, "nice": 44.90, "sys": 0.91, "iowait": 1.01, "irq": 0.48, "soft": 0.45, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 50.60}, + {"cpu": "0", "core": "0", "socket": "0", "node": "0", "usr": 1.48, "nice": 46.19, "sys": 0.81, "iowait": 0.59, "irq": 0.45, "soft": 1.34, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 49.15}, + {"cpu": "1", "core": "1", "socket": "0", "node": "1", "usr": 1.54, "nice": 50.59, "sys": 0.87, "iowait": 0.75, "irq": 0.48, "soft": 0.65, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 45.12}, + {"cpu": "2", "core": "2", "socket": "0", "node": "0", "usr": 0.81, "nice": 78.78, "sys": 0.40, "iowait": 1.03, "irq": 0.62, "soft": 0.19, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 18.18}, + {"cpu": "3", "core": "3", "socket": "0", "node": "1", "usr": 1.09, "nice": 77.04, "sys": 0.51, "iowait": 0.78, "irq": 0.60, "soft": 0.24, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 19.73}, + {"cpu": "4", "core": "0", "socket": "0", "node": "0", "usr": 1.78, "nice": 40.97, "sys": 1.11, "iowait": 1.30, "irq": 0.48, "soft": 0.74, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 53.62}, + {"cpu": "5", "core": "1", "socket": "0", "node": "1", "usr": 1.73, "nice": 42.97, "sys": 0.93, "iowait": 1.10, "irq": 0.43, "soft": 0.15, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 52.69}, + {"cpu": "6", "core": "2", "socket": "0", "node": "0", "usr": 2.49, "nice": 8.42, "sys": 1.41, "iowait": 1.51, "irq": 0.49, "soft": 0.15, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 85.53}, + {"cpu": "7", "core": "3", "socket": "0", "node": "1", "usr": 2.27, "nice": 14.07, "sys": 1.27, "iowait": 1.02, "irq": 0.29, "soft": 0.14, "steal": 0.00, "guest": 0.00, "gnice": 0.00, "idle": 80.95} + ] + } + ] + } + ] +}} diff --git a/tests/root1/sys/devices/system/cpu/cpu0/topology/physical_package_id b/tests/root1/sys/devices/system/cpu/cpu0/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu0/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root1/sys/devices/system/cpu/cpu0/topology/thread_siblings_list b/tests/root1/sys/devices/system/cpu/cpu0/topology/thread_siblings_list new file mode 100644 index 0000000..d41d18b --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu0/topology/thread_siblings_list @@ -0,0 +1 @@ +0,4 diff --git a/tests/root1/sys/devices/system/cpu/cpu1/topology/physical_package_id b/tests/root1/sys/devices/system/cpu/cpu1/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu1/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root1/sys/devices/system/cpu/cpu1/topology/thread_siblings_list b/tests/root1/sys/devices/system/cpu/cpu1/topology/thread_siblings_list new file mode 100644 index 0000000..cf141eb --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu1/topology/thread_siblings_list @@ -0,0 +1 @@ +1,5 diff --git a/tests/root1/sys/devices/system/cpu/cpu2/topology/physical_package_id b/tests/root1/sys/devices/system/cpu/cpu2/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu2/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root1/sys/devices/system/cpu/cpu2/topology/thread_siblings_list b/tests/root1/sys/devices/system/cpu/cpu2/topology/thread_siblings_list new file mode 100644 index 0000000..62188ed --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu2/topology/thread_siblings_list @@ -0,0 +1 @@ +2,6 diff --git a/tests/root1/sys/devices/system/cpu/cpu3/topology/physical_package_id b/tests/root1/sys/devices/system/cpu/cpu3/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu3/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root1/sys/devices/system/cpu/cpu3/topology/thread_siblings_list b/tests/root1/sys/devices/system/cpu/cpu3/topology/thread_siblings_list new file mode 100644 index 0000000..62dcd59 --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu3/topology/thread_siblings_list @@ -0,0 +1 @@ +3,7 diff --git a/tests/root1/sys/devices/system/cpu/cpu4/topology/physical_package_id b/tests/root1/sys/devices/system/cpu/cpu4/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu4/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root1/sys/devices/system/cpu/cpu4/topology/thread_siblings_list b/tests/root1/sys/devices/system/cpu/cpu4/topology/thread_siblings_list new file mode 100644 index 0000000..d41d18b --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu4/topology/thread_siblings_list @@ -0,0 +1 @@ +0,4 diff --git a/tests/root1/sys/devices/system/cpu/cpu5/topology/physical_package_id b/tests/root1/sys/devices/system/cpu/cpu5/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu5/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root1/sys/devices/system/cpu/cpu5/topology/thread_siblings_list b/tests/root1/sys/devices/system/cpu/cpu5/topology/thread_siblings_list new file mode 100644 index 0000000..cf141eb --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu5/topology/thread_siblings_list @@ -0,0 +1 @@ +1,5 diff --git a/tests/root1/sys/devices/system/cpu/cpu6/topology/physical_package_id b/tests/root1/sys/devices/system/cpu/cpu6/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu6/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root1/sys/devices/system/cpu/cpu6/topology/thread_siblings_list b/tests/root1/sys/devices/system/cpu/cpu6/topology/thread_siblings_list new file mode 100644 index 0000000..62188ed --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu6/topology/thread_siblings_list @@ -0,0 +1 @@ +2,6 diff --git a/tests/root1/sys/devices/system/cpu/cpu7/topology/physical_package_id b/tests/root1/sys/devices/system/cpu/cpu7/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu7/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root1/sys/devices/system/cpu/cpu7/topology/thread_siblings_list b/tests/root1/sys/devices/system/cpu/cpu7/topology/thread_siblings_list new file mode 100644 index 0000000..62dcd59 --- /dev/null +++ b/tests/root1/sys/devices/system/cpu/cpu7/topology/thread_siblings_list @@ -0,0 +1 @@ +3,7 diff --git a/tests/root2/sys/devices/system/cpu/cpu0/topology/physical_package_id b/tests/root2/sys/devices/system/cpu/cpu0/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu0/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root2/sys/devices/system/cpu/cpu0/topology/thread_siblings_list b/tests/root2/sys/devices/system/cpu/cpu0/topology/thread_siblings_list new file mode 100644 index 0000000..d41d18b --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu0/topology/thread_siblings_list @@ -0,0 +1 @@ +0,4 diff --git a/tests/root2/sys/devices/system/cpu/cpu1/topology/physical_package_id b/tests/root2/sys/devices/system/cpu/cpu1/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu1/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root2/sys/devices/system/cpu/cpu1/topology/thread_siblings_list b/tests/root2/sys/devices/system/cpu/cpu1/topology/thread_siblings_list new file mode 100644 index 0000000..cf141eb --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu1/topology/thread_siblings_list @@ -0,0 +1 @@ +1,5 diff --git a/tests/root2/sys/devices/system/cpu/cpu2/topology/physical_package_id b/tests/root2/sys/devices/system/cpu/cpu2/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu2/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root2/sys/devices/system/cpu/cpu2/topology/thread_siblings_list b/tests/root2/sys/devices/system/cpu/cpu2/topology/thread_siblings_list new file mode 100644 index 0000000..62188ed --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu2/topology/thread_siblings_list @@ -0,0 +1 @@ +2,6 diff --git a/tests/root2/sys/devices/system/cpu/cpu3/topology/physical_package_id b/tests/root2/sys/devices/system/cpu/cpu3/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu3/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root2/sys/devices/system/cpu/cpu3/topology/thread_siblings_list b/tests/root2/sys/devices/system/cpu/cpu3/topology/thread_siblings_list new file mode 100644 index 0000000..62dcd59 --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu3/topology/thread_siblings_list @@ -0,0 +1 @@ +3,7 diff --git a/tests/root2/sys/devices/system/cpu/cpu4/topology/physical_package_id b/tests/root2/sys/devices/system/cpu/cpu4/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu4/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root2/sys/devices/system/cpu/cpu4/topology/thread_siblings_list b/tests/root2/sys/devices/system/cpu/cpu4/topology/thread_siblings_list new file mode 100644 index 0000000..d41d18b --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu4/topology/thread_siblings_list @@ -0,0 +1 @@ +0,4 diff --git a/tests/root2/sys/devices/system/cpu/cpu5/topology/physical_package_id b/tests/root2/sys/devices/system/cpu/cpu5/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu5/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root2/sys/devices/system/cpu/cpu5/topology/thread_siblings_list b/tests/root2/sys/devices/system/cpu/cpu5/topology/thread_siblings_list new file mode 100644 index 0000000..cf141eb --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu5/topology/thread_siblings_list @@ -0,0 +1 @@ +1,5 diff --git a/tests/root2/sys/devices/system/cpu/cpu6/topology/physical_package_id b/tests/root2/sys/devices/system/cpu/cpu6/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu6/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root2/sys/devices/system/cpu/cpu6/topology/thread_siblings_list b/tests/root2/sys/devices/system/cpu/cpu6/topology/thread_siblings_list new file mode 100644 index 0000000..62188ed --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu6/topology/thread_siblings_list @@ -0,0 +1 @@ +2,6 diff --git a/tests/root2/sys/devices/system/cpu/cpu7/topology/physical_package_id b/tests/root2/sys/devices/system/cpu/cpu7/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu7/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root2/sys/devices/system/cpu/cpu7/topology/thread_siblings_list b/tests/root2/sys/devices/system/cpu/cpu7/topology/thread_siblings_list new file mode 100644 index 0000000..62dcd59 --- /dev/null +++ b/tests/root2/sys/devices/system/cpu/cpu7/topology/thread_siblings_list @@ -0,0 +1 @@ +3,7 diff --git a/tests/root3/sys/devices/system/cpu/cpu0/topology/physical_package_id b/tests/root3/sys/devices/system/cpu/cpu0/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu0/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root3/sys/devices/system/cpu/cpu0/topology/thread_siblings_list b/tests/root3/sys/devices/system/cpu/cpu0/topology/thread_siblings_list new file mode 100644 index 0000000..d41d18b --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu0/topology/thread_siblings_list @@ -0,0 +1 @@ +0,4 diff --git a/tests/root3/sys/devices/system/cpu/cpu1/topology/physical_package_id b/tests/root3/sys/devices/system/cpu/cpu1/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu1/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root3/sys/devices/system/cpu/cpu1/topology/thread_siblings_list b/tests/root3/sys/devices/system/cpu/cpu1/topology/thread_siblings_list new file mode 100644 index 0000000..cf141eb --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu1/topology/thread_siblings_list @@ -0,0 +1 @@ +1,5 diff --git a/tests/root3/sys/devices/system/cpu/cpu2/topology/physical_package_id b/tests/root3/sys/devices/system/cpu/cpu2/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu2/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root3/sys/devices/system/cpu/cpu2/topology/thread_siblings_list b/tests/root3/sys/devices/system/cpu/cpu2/topology/thread_siblings_list new file mode 100644 index 0000000..62188ed --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu2/topology/thread_siblings_list @@ -0,0 +1 @@ +2,6 diff --git a/tests/root3/sys/devices/system/cpu/cpu3/topology/physical_package_id b/tests/root3/sys/devices/system/cpu/cpu3/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu3/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root3/sys/devices/system/cpu/cpu3/topology/thread_siblings_list b/tests/root3/sys/devices/system/cpu/cpu3/topology/thread_siblings_list new file mode 100644 index 0000000..62dcd59 --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu3/topology/thread_siblings_list @@ -0,0 +1 @@ +3,7 diff --git a/tests/root3/sys/devices/system/cpu/cpu4/topology/physical_package_id b/tests/root3/sys/devices/system/cpu/cpu4/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu4/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root3/sys/devices/system/cpu/cpu4/topology/thread_siblings_list b/tests/root3/sys/devices/system/cpu/cpu4/topology/thread_siblings_list new file mode 100644 index 0000000..d41d18b --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu4/topology/thread_siblings_list @@ -0,0 +1 @@ +0,4 diff --git a/tests/root3/sys/devices/system/cpu/cpu5/topology/physical_package_id b/tests/root3/sys/devices/system/cpu/cpu5/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu5/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root3/sys/devices/system/cpu/cpu5/topology/thread_siblings_list b/tests/root3/sys/devices/system/cpu/cpu5/topology/thread_siblings_list new file mode 100644 index 0000000..cf141eb --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu5/topology/thread_siblings_list @@ -0,0 +1 @@ +1,5 diff --git a/tests/root3/sys/devices/system/cpu/cpu6/topology/physical_package_id b/tests/root3/sys/devices/system/cpu/cpu6/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu6/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root3/sys/devices/system/cpu/cpu6/topology/thread_siblings_list b/tests/root3/sys/devices/system/cpu/cpu6/topology/thread_siblings_list new file mode 100644 index 0000000..62188ed --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu6/topology/thread_siblings_list @@ -0,0 +1 @@ +2,6 diff --git a/tests/root3/sys/devices/system/cpu/cpu7/topology/physical_package_id b/tests/root3/sys/devices/system/cpu/cpu7/topology/physical_package_id new file mode 100644 index 0000000..573541a --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu7/topology/physical_package_id @@ -0,0 +1 @@ +0 diff --git a/tests/root3/sys/devices/system/cpu/cpu7/topology/thread_siblings_list b/tests/root3/sys/devices/system/cpu/cpu7/topology/thread_siblings_list new file mode 100644 index 0000000..62dcd59 --- /dev/null +++ b/tests/root3/sys/devices/system/cpu/cpu7/topology/thread_siblings_list @@ -0,0 +1 @@ +3,7