Age | Commit message (Collapse) | Author |
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
As discussed in #289:
"Maybe instead of falling back separately it could try for the
best from the board group and the best from the product/system
group and always give <board> (<system>), perhaps with any
duplicates removed."
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
This reverts a change 2db563687071c099851c59396bdde29a00dba156.
It seems to me that using product version in this way gives
inconsistent values.
The recent benchmark result submitted demonstrates the problem:
`2.0 / X370 SLI PLUS (MS-7A33) (Micro-Star International Co., Ltd.)`
The product version `2.0` is put in front, but without the product
name or product vendor for context, it doesn't really add anything.
The board vendor, which otherwise would be in front, is now in () at
the end.
When the product version is not defined, then the motherboard is
reported as `<board vendor> <board name>`. The only time it is
`<board name> (<board vendor>)` is when product version is defined.
If this change is applied, that same motherboard would be reported
`Micro-Star International Co., Ltd. X370 SLI PLUS (MS-7A33)`
which, to me, makes more sense for getMotherboard(). I have no idea
what "product" this is version 2.0 of.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
A set of functions for getting information for a single USB device,
or a list of all devices.
The only implemented method is using `lsusb`, which is slow. A
method using sysfs would be much better. The existing sysfs and
procfs methods in devices/usb.c do not appear to work, so it would
have to be something new.
devices/usb.c modified to use usb_util, but all the old code is
still there.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
Also, simplify now that an empty DMI string is returned as null.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Now that group names are translatable, this seems a better
way.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
This will return something like:
ThinkPad X220 / 42917J10 (LENOVO)
As opposed to just:
42917J10 LENOVO
|
|
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>
|
|
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>
|
|
In the future, I think a processor will need a name and a
description. Name as the straight name of the processor or SOC,
and description as what name is now, with 4x and whatnot.
x86 description might be "8 cores, 16 threads" or similar.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* Moved device tree functions to
modules/devices/devicetree/dt_util.c
* The dtr_* functions usable from outside devicetree.c,
for example in get_motherboard().
Must #include "dt_util.h"
* Now possible to use an alternate device tree root for testing
-DOVRDTRROOT=\"/some/path\"
* Alternately, pass dtr_new() an alternate base path.
* Abandoned the tuple grouping and inherited properties stuff
for now.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
The complete tree is now available to view. There are some bugs,
mostly to do with hardinfo protocol quirks.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Hack a way to skip unavailable entries. Now "Resources" is
avaialbe outside of x86 when it wasn't before.
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>
|
|
To get around the earlier problems with localized labels in the
memory view, add a column "Description" that uses the localized
labels.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Writing this I realized why I stopped working on HardInfo. While
there are some good ideas in the architecture, it's API is beyond
salvation. It's buggy, quirky, and not intuitive at all.
|
|
This is a step in adding sensor graphing support.
|
|
* dt_get_model() replaced by the simpler g_file_get_contents()
* rpi_get_boardname() declared static
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Uses /proc/device-tree/model for get_motherboard() when not x86.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Minor edits to the Raspberry Pi board data table.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
get_motherboard() will now return something for Raspberry Pi boards.
example:
"Raspberry Pi 3 (Q1 2016) pcb-rev:1.2 soc:BCM2835 mem:1GB mfg-by:Sony"
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
|
|
moreinfo_lookup rather than hi_more_info); fix usb display crashing (util.c now looks for lsusb in /usr/sbin first); fix glibc version not showing (glibc located in /lib64/libc.so.6); initial support for DDR3 spd-decoding (incomplete, the manufacturer is not shown yet).
|
|
different shared libraries (fix: make the functions private).
|
|
|
|
lib suffix in hardinfo/binreloc.c is already supported
and will be respected now
|
|
|
|
Have only one for the whole program and use per-module namespaces/prefixes
so that each module can clear its own information easily.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|