aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-24[new] gpu_util: functions and data structures for gpu informationBurt P
Enumerates GPUs into a list. Currently from PCI and device tree. Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24[new] x_util: functions and data structures for x server informationBurt P
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>
2018-04-24[new] pci_util: functions and data structures for pci informationBurt P
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>
2018-04-24rpi_data: show rcode of unknown piBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24rpi_data: add Raspberry Pi Model 3 B-PlusBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24dmi: ignore placeholder strings ("To Be Filled...", etc)Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24Remove use of g_error() for reporting user errorBurt P
Instead, print message to stderr and set a non-zero exit value. Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-17devices/usb: remove unnecessary incrementationBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12shell: fix hardinfo window iconBurt P
Fix small typo in 1906d3027dc3ad8b9b5533712299d48e265c852c Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12usb: requested changesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12usb_util.cBurt P
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>
2018-03-12Updated Russian translationTotalCaesar659
2018-03-12benchmark.c: remove debug printf()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-03-12report: highlight "selected" itemsBurt P
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>
2018-03-12Do not use hardcoded path for iconLeandro Pereira
Use just the symbolic name "hardinfo", allowing for icon packs to provide alternative icons. Fixes #227
2018-03-01some little es updates and rebasePICCORO Lenz McKAY
stil not run the sh script ... for update, only rebase
2018-03-01Update es.po toPICCORO Lenz McKAY
2018-02-27x86: free urefBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27x86: fix for kernels that don't provide cache idBurt P
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>
2018-02-27x86,arm: cpu clocks list in package informationBurt P
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>
2018-02-27Fix benchmark_parallel_for() to use correct number of threadsBurt P
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>
2018-02-27hardinfo: fix typoBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27bench_results: store complete bench_valueBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27benchmarks: split individual test funcs out of benchmark.c frameworkBurt P
The idea here is to make adding/removing benchmark tests easier by having benchmark.c be the framework and all the functioned needed for individual benchmarks live in benches.c. Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27benchmark.conf: remove "new" results that may be wrongBurt P
Results assumed all threads were used for each benchmark. Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-27benchmark: New benchmark typesBurt P
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>
2018-02-27Add cli param to format result for -bBurt P
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>
2018-02-27Benchmark results: store threads usedBurt P
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>
2018-02-27struct simple_machine renamed to bench_machineBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-22cpu_util: bug fixBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-22report.c: don't try to use column values that weren't provided (html version)Burt P
Like 96980fbf494d9c453c6b558967c90c55e41abe2d, but the html version of that function. Fixes https://github.com/lpereira/hardinfo/issues/217 Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-09x86: metldown and spectre bug flagsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-09x86: increase the cpuinfo read buffer sizeBurt P
The flags list is often more than 512 bytes long these days. It was being truncated. Signed-off-by: Burt P <pburt0@gmail.com>
2018-02-09Add Intel cpu_insecure bug workaround flagBurt P
cpu_insecure = page table isolation is being used to work around a security vulnerability in Intel x86 CPUs. Signed-off-by: Burt P <pburt0@gmail.com>
2017-12-09x86: add summary of caches to package informationBurt P
Show actual physical caches by counting only unique references from each "cpu" (hardware thread). Signed-off-by: Burt P <pburt0@gmail.com>
2017-12-09report.c: don't try to use colum values that weren't providedBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-12-09cpubits_max() fixBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-12-09Build debug builds with address sanitizerLeandro Pereira
2017-11-29x86 CPU flags fix; show socket:core and thread in proc listBurt P
* Bug fix: Some flags are just an index, for example power management might have "[13] [14]" as flags. This looks like a new section to hardinfo shell and it truncates the CPU information there. * Show the Socket:Core and thread in the processor list, for x86 only right now. In the future, the idea is to show only one line for each core, and list the threads on that core, where currently, there is one line for each thread. Signed-off-by: Burt P <pburt0@gmail.com>
2017-11-06Updated Russian translationTotalCaesar659
2017-11-02Computer/Display: Add X Display NameBurt P
A field exists in struct _DisplayInfo, but it wasn't being filled or shown. Perhaps fix: https://github.com/lpereira/hardinfo/issues/181 Signed-off-by: Burt P <pburt0@gmail.com>
2017-10-29Fixed possible memory leak (#201)Roman Kalashnikov
Warnings, found using PVS-Studio: hardinfo/modules/devices/usb.c 397 err V773 The function was exited without releasing the 'temp' pointer. A memory leak is possible. hardinfo/modules/computer/uptime.c 33 err V773 The function was exited without releasing the 'ui' pointer. A memory leak is possible.
2017-10-09Fixed compilation warning when building on GTK3TotalCaesar659
2017-09-28Fix more compilation warnings when building with GTK+3TotalCaesar659
2017-09-26shell: select Computer Summary at startBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-09-21Russian translation updateTotalCaesar659
2017-09-21Ensure report saving dialog buttons are translatableTotalCaesar659
2017-09-21Do not use deprecated GtkDialog method when building for GTK+ 3TotalCaesar659
2017-09-10Remove the appended "Module" from about module dialog titleBurt P
The string is constructed one word at a time, "About", X, "Module" and it ends up being very strange in languages other than English. Cutting out the module makes it a little better, and not much is lost. A module could add "Module" to it's title, and then at least that string can be translated as a complete unit. Signed-off-by: Burt P <pburt0@gmail.com>
2017-09-10Fix compilation warning when benchmarkingTotalCaesar659