Age | Commit message (Collapse) | Author |
|
|
|
from copyright holders - see: https://github.com/lpereira/hardinfo/issues/530 https://github.com/lpereira/hardinfo/issues/707
|
|
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Show actual clocks where cores or threads share a clock.
Ex: x86 SMT each core has one clock shared by both threads.
Ex: BCM2837 has one clock for all four cores.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
It was kindof translatable before, but as part of a messy
use-once c-format string. In this form it is re-usable elsewhere.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Current CPU configurations aren't properly represented in Hardinfo.
For SMT, each hardware thread is still reported as a CPU. Clusters
with different CPU clock rates are not reported. It is common for
ARM to pair a cluster of fast cores with a cluster of slower, but
more power-efficient cores. These changes attempt to address this.
The getProcessorFrequency method now returns the processor's max
frequency for all its cores. While the new
getProcessorFrequencyDesc lists each unique frequency with a prefix
Nx with the count of cores at that freqency.
Benchmark results have been reformated to use the de-prefixed
getProcessorName and getProcessorFrequencyDesc.
As an example from benchmark.conf:
4x AMD Phenom(tm) II X4 940 Processor | 800 MHz
becomes:
AMD Phenom(tm) II X4 940 Processor | 4x 800 MHz
Which, I think, makes much more sense, as it works well with
this kind of thing:
Qualcomm Snapdragon 691 | 4x 1400 MHz + 4x 800 MHz
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* add cpu_procs_cores_threads() function to get counts from sysfs/topology
* each platform must now provide processor_name() and processor_describe()
* processor_name_default(): returns a list of unique processor->model_name
* processor_describe_default(): returns "N physical; M cores; L threads"
* processor_describe_by_counting_names(): returns a list of unique
processor->model_name with Nx prefix
(ex: "4x ARM Cortex A53 + 4x ARM Cortex A33")
* x86: _name and _describe use defaults
* arm: _name returns name of SOC, if available, _describe returns
processor_describe_by_counting_names()
* all other platforms: _name and _describe use defaults
* Computer module summary now shows both name and description for CPU
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Just ARM for now, but maybe this will become more generic and
it will be possible to have the processor package name and
description seperate, even for x86 and whatnot. Also perhaps
work in Sockets/Threads/Cores information.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* check if device tree was found before add_keys()
* UNKIFNULL(model) before strcmp
* make UNKIFNULL() STRIFNULL() EMPIFNULL() macros more generic
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* PROC_CPUINFO define used in testing
* STRIFNULL(), UNKIFNULL() EMPIFNULL() macros used in
reading cpuinfo
* byte order, topology, and cpufreq data structures and
functions that are platform independent
* processor_has_flag() helper
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Additional labels made translatable and some cleanup.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Make some recently added info labels easy to translate. Includes
the topology and frequency scaling strings.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Hide Frequency Scaling section instead of showing zeroes.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Also, some stray whitespace removed.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Also fixes a memleak.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
There are a few variants of /proc/cpuinfo format for ARM.
Examples:
1. https://github.com/bp0/rpiz/blob/master/test/rpi3_cpuinfo
2. https://github.com/bp0/rpiz/blob/master/test/az100_cpuinfo
3. https://github.com/bp0/rpiz/blob/master/test/odroidx_cpuinfo
4. https://github.com/bp0/rpiz/blob/master/test/unk_marv0_cpuinfo
Previously, only 1 and 4 worked. Now all should be working.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Changed code arrangement to fix a problem where only the last
processor's mode was correct.
This also separates the /proc/cpuinfo data from the other data
in a logical way.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* Report the ARM CPUID information from /proc/cpuinfo.
* Attempt to detect if running 32-bit on a 64-bit processor.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
A few more flags for ARM. No new defitions.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
A few more flag definitions for ARM.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* Multiple processors/cores reported
* CPU min/max/cur frequency information reported
* Flag definitions
Tested only on Raspberry Pi models 1 and 3.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Mixed tab/space indentation to all space for indentation.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
|