Age | Commit message (Collapse) | Author |
|
|
|
(#298)
I don't know what -W... would cause this to be checked by the
compiler so I can't test it. It's not -Wimplicit-pointer-decl,
at least not in gcc 8.2.0.
This fix is a guess based on what I've read in other patches
trying to fix this.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* devices/usb: Added support for USB interfaces
* devices/usb: added icons for usb devices
* tabs -> spaces
|
|
|
|
The new version uses a fixed time and provides variants for
single-thread, multi-thread, and multi-core.
A few results are included.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
The html_ok param added in
970174b0897d40b804808632784ffa1544d9da93
is misleading. It turns out that it is not HTML,
but Pango Markup that is used by GTK, and a subset of that
happens to also work as HTML4 for the HTML report generation.
This change renames html_ok to markup_ok in ProgramParameters
and adds a comment explaining what common set of tags may be
used.
Also, if report generation happens as a fallback after GUI
initialization failed, then also disable markup, unless report
will be generated as HTML.
Pango markup info at:
https://developer.gnome.org/pango/stable/PangoMarkupFormat.html
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Just dumps the conf/keyfile-format output. Very useful for
development.
Try `hardinfo -s -w -r -f shell >shell_dump.txt`
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Dumps any "moreinfo" for all items.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Fixes https://github.com/lpereira/hardinfo/issues/223
The first item to use it will be Devices/Processors/Package Info.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
from dmidecode
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
I don't have any hardware to test, this is based only on the
OPP kernel docs.
https://www.kernel.org/doc/Documentation/devicetree/bindings/opp/opp.txt
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Requested by @lpereira in #286.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* opp-v2 = operating-points-v2, frequency scaling information
from device tree that can be used for cpu, gpu, etc.
* adds helper function to get the opp-v2 range of frequencies
for a node, dtr_get_opp_range() in dt_util.c
* adds a freq range in opp-v2 property for a node in dt
* reports a gpu's max clock frequency if avaiable via opp-v2
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Fixes https://github.com/lpereira/hardinfo/issues/266
This is also needed so that vendor urls can be links where
appropriate.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* Initialize strings to empty in `read_from_vendor_ids()`
* vendor.ids format reader clears all fields at `name`
* Added `name_short`, and `url_support` fields
* `vendor_cleanup()` function that frees `vendor_list`
* `vendor_match()` returns the whole `Vendor` data structure
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Fix a really stupid sort function I wrote for 60b9f3360930296c0f3e8b04672b8bf7468bedcb.
Now actually does what that commit claims to do.
I think I must have just sketched it out and then forgot to go back and correct it. It's
weird that it happened to fix the one result I was testing for.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
|
|
* Rename struct members to be less ambiguous
* Sort the list by length of match_string, longest first,
so better matches match first
* Add flag to force case-sensitive matching so that two or
three-letter names don't match names that happen to have
those letters in them
Also, added ASUS and fixes #241.
(https://github.com/lpereira/hardinfo/issues/241)
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
If you just need the hardware report, this makes it so much
faster.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
This commit fixes:
* #200
now using xrandr to get screen info instead of gdk, so it works
from the cli
* #27
opengl core and compatibility versions are both listed
* #230
(by removing extension list)
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Enumerates GPUs into a list. Currently from PCI and device tree.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Get X display info from Xlib, xrandr, xdpyinfo, and glxinfo.
Also, Some simple Wayland info lives here for now.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Based on usb_util. Only current method is via lspci, but framework
exists to add other methods.
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>
|
|
For benchmark results, the current machine will be highlighted in the list
by using the shell's select marker.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Use shared_cpu_list as a unique cache id, but only in the
case that kernel-supplied cache id is not available.
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>
|
|
If (end - start) / threads left a remainder, benchmark_parallel_for()
would start an extra thread for the leftover elements. Now, it has the
last thread process the few extra elements.
Added a note:
benchmark_parallel_for(): element [start] included, but [end] is excluded.
callback(): expected to processes elements [start] through [end] inclusive.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
New benchmark types:
* benchmark_crunch_for(): call function repeatedly for a number
of seconds; result is number of completions.
* benchmark_parallel(): one call for each available thread
up to n_threads; result is sum of return values.
Tweaks:
* Store return values from callback via
benchmark_parallel_for_dispatcher()
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
For running benchmarks from the command line, add a new param
to specify the output format:
-g "conf" gives a line suitable for benchmark.conf
-g "shell" gives the complete "moreinfo" shell data
-g "short" (or nothing) gives the bench_value string as before
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Benchmark results store actual number of threads used by benchmark
when it was run. Previously, results assumed all available threads
were used.
Examples:
* CPU Fib only uses one
* FPU FFT uses 4, 2, or 1
* N-Queens uses 10, 5, 2, or 1
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Show actual physical caches by counting only unique
references from each "cpu" (hardware thread).
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|
|
Change requested by lpereira in
https://github.com/lpereira/hardinfo/pull/160
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
These stand alone interfaces and are used across modules, so just
make them available to any module by default.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
dmi_chassis_type_str() is moved from code in
computer.c:detect_machine_type().
It makes sense to keep it with dmi, as it maps a dmi-defined
value to a string. This way it can be used in both dmi.c
and computer.c.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
|