aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-07-09Use g_spawn_command_line_sync() to detect libc versionLeandro Pereira
No need to invoke the shell using popen(), and have it redirect output from stderr to stdout in the diet libc case. This also hides possible errors during detection.
2017-07-09libc detection cosmetic fixBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-09Fix diet libc detectionBurt P
diet libc outputs usage/version to stderr. Function is also a little cleaner now. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-09Add diet libc to libc detectionBurt P
Demonstrate how a libc implementation without ldconfig might work. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-09Use ldconfig to detect C library implementation and versionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-09OS: Improve C library detectionBurt P
Based on a patch from Ubuntu/Debian.
2017-07-06Add "ppc" as a supported architecture name againLeandro Pereira
The kernel on my PowerBook G4 uses this string rather than ppc32.
2017-07-06PPC: Information improvementsBurt P
Based on the recent ARM work. * Shows multiple processors, like x86 and ARM * topology: physical package and core ids * cpufreq: min/max/cur frequency and driver info Tested against /proc/cpuinfos from a PowerMac G5 and the Talos POWER8 workstation. Not tested on actual hardware. Signed-off-by: Burt P <pburt0@gmail.com>
2017-07-06Fix FTBFS on ppc64leBurt P
Patch by Frédéric Bonnard <frediz@linux.vnet.ibm.com> from Debian bug report. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865776#10
2017-07-04Use load graph (used in memory view) to graph sensor dataLeandro Pereira
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.
2017-07-04Ungroup sensor valuesLeandro Pereira
This is a step in adding sensor graphing support.
2017-07-04Reindent sensors.c using clang-formatLeandro Pereira
2017-07-03Do not select first item if reloading moduleLeandro Pereira
2017-07-03Use file-roller icon for Zlib benchmarkLeandro Pereira
2017-07-02Add zlib benchmarkLeandro Pereira
2017-07-02Select first item automatically when opening a dual paneLeandro Pereira
I've seen a lot of people using HardInfo and never clicking in the top pane to get more information about a hardware item. By selecting the first item automatically, this gives a clue that more information can be obtained without being obnoxious with popups and other annoyances.
2017-06-26arm,x86: Don't show frequency scaling information if it isn't availableBurt P
Hide Frequency Scaling section instead of showing zeroes. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-26cmake: comply with the BSD license by copying the full license text in ↵Mattia Rizzolo
cmake/GNUInstallDirs.cmake Fixes: lpereira/hardinfo#76 Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
2017-06-23x86: update cpuinfo flag meaningsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-23x86: add socket/core and more cpufreq informationBurt P
Copied from the recent changes for ARM. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-22ARM: add socket/core and more cpufreq informationBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-22x86: fix code commentBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-21Use arm_flag_meaning() directly instead of creating a GHashTableBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-21After testing on aarch64 a problem is discoveredBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-21ARM arch tweaksBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-21Use arm for aarch64Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-21Various typo fixes.Simon Quigley
2017-06-19Make the strend function accessible.Simon Quigley
2017-06-05cmake: HARDINFO_NOSYNC option on by defaultBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-05cmake: add option to disable sync via libsoupBurt P
Adds a cmake option HARDINFO_NOSYNC to disable libsoup and remote sync. * Workaround for incompatible libsoup (ex: on raspbian) * xmlrpc.hardinfo.org is down and sync isn't currently available anyway. Use: cmake -DHARDINFO_NOSYNC=1 .. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-05Fallback g_strv_contains() imp when using glib<2.44Burt P
Also, some stray whitespace removed. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-05arm: label changes to match requested changes to x86 versionBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-04x86: frequency scaling item labels abbr. -> full namesBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-04x86: clean up processor_scan()Burt P
* mixed tab/space indentation -> spaces only * move cache/family/freq/flags list processing out of main read loop and make a second pass through the processor list * make simple pm list if it isn't provided * use processor id from cpuinfo instead of counter Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-04x86: improve processor frequency informationBurt P
Use /sys/.../cpufreq/ data if available. Processor max frequency is now used for cpu_mhz. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-04g_strv_contains() requires glib>2.44, not available in current DebianBurt P
Use own _g_strv_contains(). Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-04x86: Remove unused parameter to populate_cpu_flags_list_internal()Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-02arm: use processor id from cpuinfo instead of counterBurt P
Also fixes a memleak. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-02Decode ARM processor implementer and part numbersBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-02Handle more cpuinfo format variantsBurt P
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>
2017-06-02arm: bug fix in mode detectionBurt P
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>
2017-06-02arm: more processor detailsBurt P
* 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>
2017-06-02arm: a few more cpu flagsBurt P
A few more flags for ARM. No new defitions. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-02arm: more flag definitionsBurt P
A few more flag definitions for ARM. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-02ARM processor information improvementsBurt P
* 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>
2017-06-02Cosmetic changes in /modules/devices/arm/processor.cBurt P
Mixed tab/space indentation to all space for indentation. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-02Requested changes in re rpi board nameBurt P
* dt_get_model() replaced by the simpler g_file_get_contents() * rpi_get_boardname() declared static Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-02Get "model" from device tree for board nameBurt P
Uses /proc/device-tree/model for get_motherboard() when not x86. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-02rpi board data editsBurt P
Minor edits to the Raspberry Pi board data table. Signed-off-by: Burt P <pburt0@gmail.com>
2017-06-02Get board information for Raspberry PisBurt P
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>