Age | Commit message (Collapse) | Author |
|
|
|
|
|
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.
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
diet libc outputs usage/version to stderr.
Function is also a little cleaner now.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Demonstrate how a libc implementation without ldconfig might work.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Based on a patch from Ubuntu/Debian.
|
|
The kernel on my PowerBook G4 uses this string rather than ppc32.
|
|
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>
|
|
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
|
|
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.
|
|
|
|
|
|
|
|
|
|
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.
|
|
Hide Frequency Scaling section instead of showing zeroes.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
cmake/GNUInstallDirs.cmake
Fixes: lpereira/hardinfo#76
Signed-off-by: Mattia Rizzolo <mattia@mapreri.org>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Copied from the recent changes for ARM.
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>
|
|
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>
|
|
Also, some stray whitespace removed.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
* 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>
|
|
Use /sys/.../cpufreq/ data if available.
Processor max frequency is now used for cpu_mhz.
Signed-off-by: Burt P <pburt0@gmail.com>
|
|
Use own _g_strv_contains().
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>
|
|
* 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>
|