summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.h
Commit message (Collapse)AuthorAgeFilesLines
* lscpu: add a new columns to --cacheKarel Zak2019-06-171-1/+8
| | | | | References: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-devices-system-cpu Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: report CPU vulnerabilitiesKarel Zak2019-04-111-0/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add --cachesKarel Zak2019-03-191-1/+6
| | | | | | | | | | | | | | | $ 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>
* 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>
* lscpu: add 'Address sizes'Karel Zak2018-08-011-0/+1
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/674 Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: use new ul_path_* APIKarel Zak2018-06-211-0/+5
| | | | | | | | | * use ul_path_* API for /sys/devices/system/cpu paths * use ul_path_* API for /proc * rename is_compatible() to is_devtree_compatible() as it works with the devices tree only Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: move ARM decoding to lscpu-arm.cKarel Zak2018-01-221-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: move struct lscpu_desc header fileKarel Zak2018-01-221-0/+161
| | | | | | | The lscpu code is growing and it seems better to allow to make code more structured. Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: Detect Windows Subsystem for LinuxStanislav Brabec2017-01-311-0/+1
| | | | | | | | | | | | | | | | | | | | | Windows 10 implements Windows Subsystem for Linux (WSL). WSL does not implement support for SIGSEGV handler, which is used inside is_vmware_platform(). As a result, lscpu crashes there. Implement WSL detection, and as a side effect, work around the crash. Note that none of existing virtualization types exactly matches. But the the closest would be "container". References: Provide a way to positively detect WSL from an app compiled on Linux. https://github.com/Microsoft/BashOnWindows/issues/423 missing support for SIGSEGV handler https://github.com/Microsoft/BashOnWindows/issues/1637 Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
* lscpu: add s-Par supportBenjamin Romer2015-02-111-0/+1
| | | | | | Adds support for the s-Par firmware's hypervisor leaf. Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
* lscpu: detect OS/400 and pHyp hypervisorsRuediger Meier2014-05-291-0/+2
| | | | | | | | | | | | | | | | This patch comes originally from openSUSE / SLE. Author was probably Petr Uzel. Internal SUSE references: fate310255, sr226509 In comparison to the original patch we have slightly corrected iSeries and pSeries detection according to Alexander Graf's comments on util-linux@vger.kernel.org. Maybe we would need to add some more code to detect pSeries emulated by Qemu/KVM. CC: Stanislav Brabec <sbrabec@suse.cz> CC: Petr Uzel <petr.uzel@suse.cz> CC: Alexander Graf <agraf@suse.de> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* lscpu: minor cleanup and improve hypervisor detectionRuediger Meier2014-05-291-1/+2
| | | | | | | | | | | | | - add HYPER_VBOX - improve HYPER_VMWARE This patch comes from openSUSE / SLE. Original author was probably Petr Uzel. Internal SUSE references: fate310255, sr226509 CC: Stanislav Brabec <sbrabec@suse.cz> CC: Petr Uzel <petr.uzel@suse.cz> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* lscpu: detect more hypervisor vendorsOndrej Oprala2013-05-201-0/+21
[kzak@redhat.com: - cleanup coding style, - use path_exist()] Signed-off-by: Ondrej Oprala <ooprala@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>