summaryrefslogtreecommitdiffstats
path: root/tests/expected/lscpu
Commit message (Collapse)AuthorAgeFilesLines
* lscpu: fix floating point exceptionSami Kerola2019-05-181-0/+76
| | | | | | | | | | | | | As the title tells this change indeed fixes floating point exception, but post processing as value overwrite feels a wrong. Possibly something in input is making cpu set count to go wrong, but I could not get my head around what could it be. Anyway avoiding division by zero seems better than crashing so lets do this atleast for now. Caused-by: e5f721132ec8b8c933a396d8dcb3efcb67854f13 Addresses: https://github.com/karelzak/util-linux/issues/788 Reported-by: Lars Wendler <polynomial-c@gentoo.org> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lscpu: remove extra space from field key nameSami Kerola2019-05-161-37/+37
| | | | | | | | | | | | | | | | | | | The extra space was more obvious in json output. But as the expected test output displays also the standard output can be effected by this change. $ lscpu --json | jq '.lscpu | .[].field' | grep ': ' "L1d cache: " "L1i cache: " "L2 cache: " "L3 cache: " "Vulnerability L1tf: " "Vulnerability Mds: " "Vulnerability Meltdown: " "Vulnerability Spec store bypass: " "Vulnerability Spectre v1: " "Vulnerability Spectre v2: " Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lscpu: move trailing null after removing characters from a stringSami Kerola2019-05-161-1/+1
| | | | | | | | | From the test input string ':' characters are removed: cat x86_64-epyc_7451/sys/devices/system/cpu/vulnerabilities/spectre_v2 Mitigation: Full AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: update lscpu due to 'Vulnerability' fieldsKarel Zak2019-04-111-32/+37
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add --cachesKarel Zak2019-03-191-2/+2
| | | | | | | | | | | | | | | $ lscpu -C NAME ONE-SIZE ALL-SIZE WAYS TYPE LEVEL L3 8M 8M 16 Unified 3 L2 256K 1M 8 Unified 2 L1i 32K 128K 8 Instruction 1 L1d 32K 128K 8 Data 1 The patch also updates extra caches (s390) output in lsblk summary to be compatible with output about normal caches. Addresses: https://github.com/karelzak/util-linux/issues/663 Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lscpu outputKarel Zak2019-03-198-25/+23Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add 'Frequency boost'Karel Zak2019-03-151-0/+1
| | | | | | | | Show turbo boost status on platforms where is available a file /sys/devices/system/cpu/cpufreq/boost. Addresses: https://github.com/karelzak/util-linux/issues/755 Signed-off-by: Karel Zak <kzak@redhat.com>
* test: Adding AMD EPYC 7451 24-Core ProcessorErwan Velu2019-02-271-0/+233
| | | | | | | This cpu is massively numa and have interesting cache organization. This will be useful to test & implement issue #663 Signed-off-by: Erwan Velu <e.velu@criteo.com>
* tests: update lscpu testsKarel Zak2018-08-013-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: Decode ARM CPUsRiku Voipio2018-01-191-0/+3
| | | | | | | | Since the kernel developers have refused to make /proc/cpuinfo user understandable, implement mapping in userspace. lscpu is available for most users via util-linux, so store the information here. Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
* tests: refresh lscpu testsKarel Zak2017-03-1512-196/+196
| | | | | | | .. due to libsmartcols use for the default output. The output does not contain extra unnecessary blank space anymore. Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add aarch64 specific namesKarel Zak2017-01-091-0/+3
| | | | | | | | It seems that aarch64 uses a different names for some /proc/cpuinfo fields (e.g. intel: bogomips, flags, and aarch64: BogoMIPS, features, ...) Addresses: https://github.com/karelzak/util-linux/issues/392 Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add parsable testcase with the --physical optionHeiko Carstens2016-08-0312-0/+251
| | | | Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: update s390-lpar-drawer testcaseHeiko Carstens2016-06-241-2/+1Star
| | | | | | | | | | | | | | | | I noticed that the "cpu" line within /proc/cpuinfo has a different meaning on powerpc and sparc than on s390. On s390 it represents the cpu number while on powerpc and sparc it represent the model name. Given that the s390 kernel patch which adds the "cpu" line to /proc/cpuinfo hasn't been merged into the kernel yet, I changed that line to "cpu number" to avoid the unnecessary conflict. Therefore this patch updates the testcase, which mainly changes the contents of /proc/cpuinfo. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: show additional caches (s390)Heiko Carstens2016-06-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | The Linux kernel exposes the cache topology via sysfs. However on virtualized machines like s390 the cache topology contains only cpu private caches. For shared caches it is not known which cpus share them. The hypervisor would have to update this information whenever a virtual cpu would be scheduled on a different physical cpu and make the guest aware of that change. Given that there is hardly any benefit, if it all, this isn't done. However it is still of interest to know about the non-private caches. Therefore this information is available via /proc/cpuinfo at least on s390. This patch adds additional lines to the summary output for all shared caches for which information can be found in /proc/cpuinfo, since we know these aren't exposed via sysfs. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: show machine type (s390)Heiko Carstens2016-06-244-0/+4
| | | | | | | | Show also the machine type within the lscpu output. With the machine type it is possible to identify the cpu generation and the supported features. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: show static and dynamic MHz (s390)Heiko Carstens2016-06-241-0/+2
| | | | | | | | | | | | | | | | s390 machines provide static and dynamic cpu mhz information via /proc/cpuinfo. The static cpu mhz is the normal cpu frequency a cpu is supposed to run with. The dynamic cpu mhz is the actual frequency a cpu is running with. This is usually the same as the static cpu mhz. Note that this values are different to the min/max mhz values available on other architecutes. The min/max values are unknown. This patch adds two new fields to the summary output which display these two values. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: fix typo in summary outputHeiko Carstens2016-06-241-1/+1
| | | | | | | The new drawer support did have a type in the summary output: it reported Drawers(s) instead of Drawer(s). Fix this. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add s390 drawer testcaseHeiko Carstens2016-06-241-0/+35
| | | | | | | Add a new s390 testcase so we get some coverage for the new drawer cpu topology level. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: fix memleak because of ambiguous tagsRuediger Meier2016-03-162-2/+2
| | | | | | | Now the first one of certain ambiguous tags wins. Alternatively to this patch we could have called free() before xstrdup(). Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* lscpu: use cpu and revision tag if availableRuediger Meier2016-03-164-3/+7
| | | | | | | | | | Avoid ifdef which does not work with --sysroot. Our existing test dumps produce even better output now for ppc and sparc. The logic moved to the printing section. CC: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: update lscpu tests (due to CPU flags in output)Karel Zak2015-05-137-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add lscpu IBM pSeries test dataRuediger Meier2014-05-291-0/+2
| | | | | | | | | Just adding missing files /proc/device-tree/ibm,partition-name /proc/device-tree/hmc-managed? to our existing lscpu-ppc64-POWER7-64cpu dump. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add vbox lscpu dumpRuediger Meier2014-05-291-0/+29
| | | | | | | | | | | Taken from openSUSE-13.1 guest in VirtualBox-4.3.10 (host=Win7): Hypervisor vendor: Oracle Virtualization type: full Dump was provides by Bernhard Voelker. CC: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: cleanup, remove unused lscpu outputRuediger Meier2014-03-2717-1114/+0Star
| | | | | | All these files are not used since a292bbde or 0d86c70a. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: add lscpu dump for ppc cpu with no cache sizeRuediger Meier2014-03-271-0/+15
| | | | | | | Taken from qemu-system-ppc (qemu 1.7) machine with installed debian 7.4 wheezy, kernel 3.2.0-4-powerpc. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* tests: update lscpu testsKarel Zak2014-01-141-33/+35
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add sparc64 lscpu testKarel Zak2013-11-051-0/+17
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lscpu testsKarel Zak2013-09-253-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: lscpu: add CPU max MHz to test resultsSami Kerola2013-09-123-0/+3
| | | | | | Commit 44320710bdb98a3036e8297d0e0af043fb72d702 changed default output. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* tests: update lscpu testsKarel Zak2013-04-102-0/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add armv7 lscpu dumpKarel Zak2012-11-121-0/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add ppc64-POWER7-64cpu lscpu dumpKarel Zak2012-11-121-0/+80
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add lscpu test for box with 64 CPUsKarel Zak2012-06-211-0/+88
| | | | | | | | | | | | | | | Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 64 On-line CPU(s) list: 0-63 Thread(s) per core: 2 Core(s) per socket: 8 Socket(s): 4 Vendor ID: GenuineIntel ... Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add s390 kvm test caseHeiko Carstens2011-10-111-0/+21
| | | | Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add Hypervisor to outputHeiko Carstens2011-09-092-0/+2
| | | | | | | | Some vendors have several hypervisors. Therefore it makes sense to not only print out the hypervisor vendor but also the name of the hypervisor. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add s390 test caseHeiko Carstens2011-09-092-0/+56
| | | | Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* tests: update lscpu testsKarel Zak2011-07-2716-16/+16
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add lscpu dumps from three Dell's & a XenSami Kerola2011-06-084-0/+121
| | | | | | | | | | | | | | | | x86_64-dell_poweredgeR610 Ubuntu 11.04 kernel 2.6.38-8 x86_64-dell_poweredge1950 Red Hat EL 4.5 kernel 2.6.9-55.ELsmp x86_64-dell_e4310 Red Hat EL 5.3 kernel 2.6.18-194.17.4.el5 x86_64-el5xen Red Hat EL 5.6 kernel 2.6.18-238.el5xen Signed-off-by: Sami Kerola <sami.kerola@tomtom.com>
* tests: add dump from PPC64 to lscpu testsKarel Zak2011-03-311-0/+31
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: detect sun4{u,v} in /proc/cpuinfo for sparc64Karel Zak2011-03-311-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add dump from UltraSparc T1 to lscpu testsKarel Zak2011-03-311-0/+37
| | | | | | Thanks to Jan Engelhardt. Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add dump from huge ia64 to lscpu testsKarel Zak2011-03-311-0/+654
| | | | | | Thanks to Jan Engelhardt. Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: fix op-mode for /{sys,proc} dumpsKarel Zak2011-03-311-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lscpu tests on x86_64Karel Zak2011-01-252-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lscpu testsKarel Zak2010-08-207-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lscpu testKarel Zak2010-06-041-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: add lscpu dump from Dell R710, 8-core Nehalem w/HT (RHEL 5.5)Karel Zak2010-06-011-0/+39
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: update lscpuKarel Zak2010-06-016-36/+48
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* tests: refresh lscpu testsKarel Zak2010-01-076-0/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>