summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)Author
2020-05-09Add generated benchmark.jsonLeandro Pereira
2020-05-09Require json-glib to buildLeandro Pereira
2020-05-03Disable warnings about deprecated functionsLeandro Pereira
Until we port this to GTK4 or something, we'll have to live with those.
2020-01-17shell: new flag/funcs for escaping label part in keysBurt P
Will allow formerly forbidden characters in a label, "#$=" See: https://github.com/lpereira/hardinfo/issues/509 Signed-off-by: Burt P <pburt0@gmail.com>
2020-01-04pci: include a minimum pci.ids with classes, note when pci.ids is missingBurt P
Noticed that the RPi4 has a PCIe bus, but pci.ids is not included with the standard Raspbian image, so everything is "(Unknown)." Now there will be some basic information about what the device is, and a note about installing pci.ids for more information. Signed-off-by: Burt P <pburt0@gmail.com>
2020-01-03use newer cpubits.{h,c} from sysobjBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-12-27shell: add key flag for strings expected to contian vendorsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-12-26computer/display: add notes for wanted extern utilsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-28monitors: add ieee_oui lookup, link for vendor nameBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-18Link sysobj_early with -whole-archiveBurt P
2019-08-18Devices/MonitorsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-14Devices/FirmwareBurt P
As requested in: https://github.com/lpereira/hardinfo/issues/420 firmware: translatable labels, parse flags, link vendors firmware: attempt using struct Info, issues exist firmware: add flag definitions firmware: remove <-... from guid when run with sudo firmware: map lvfs icons to hardinfo pixmaps firmware: cleanup, add hinote when not available. Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-14Add wrapper for Alexey Kopytov's sysbench, memory benchmarksBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-14Benchmark: fixes, user_note, verifiable test dataBurt P
* fix zlib display order * fix cryptohash MiB/s calculation * revision and params for other benchmarks * allow attaching user note to bench result with -u * don't inlcude the new result value bits if they are empty/invalid in bench_value_to_str(). bench_value_from_str() doesn't need to be modified. * bench_results: clean old result cpu name for x86 * use problem_marker() from dmi_memory to mark old version bench results * benchmark: verifiable test data size and content - The test data benchmark.data is stored in a file that could be edited to change the size or content. /* to guarantee size */ gchar *get_test_data(gsize min_size); /* to checksum content */ char *md5_digest_str(const char *data, unsigned int len); Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-10Merge branch 'master' into usb3Leandro A. F. Pereira
2019-08-10name cleanup for x86 model strings and intel pci device stringsBurt P
x86 CPU: * Remove (R), (TM), etc * AMD: remove redundant "X2 Dual Core", "X4 Quad Core", etc * Move vendor to front if not already * Remove speed, as the actual speed is usually right next to it * Remove "CPU", "APU", "Processor" to shorten * Compress space Intel GPU: * Remove (R) * Abbreviate "Generation": "Gen" * Remove "Processor", "Controller", and "Device" to shorten * Compress space Some examples: x86 CPU: 'AMD Turion(tm) 64 Mobile Technology ML-32' ---> 'AMD Turion 64 Mobile ML-32' 'Cyrix MediaGXtm MMXtm Enhanced' ---> 'Cyrix MediaGX MMX Enhanced' 'Transmeta(tm) Crusoe(tm) Processor TM5800' ---> 'Transmeta Crusoe TM5800' 'VIA Nano X2 L4350 @ 1.6+ GHz' ---> 'VIA Nano X2 L4350' 'AMD Athlon(tm) 64 X2 Dual-Core Processor TK-53' ---> 'AMD Athlon 64 X2 TK-53' 'Embedded AMD Opteron(tm) Processor 23KS EE' ---> 'AMD Embedded Opteron 23KS EE' 'Intel(R) Atom(TM) x5-Z8300 CPU @ 1.44GHz' ---> 'Intel Atom x5-Z8300' 'Intel(R) Pentium(R) III CPU - S 1400MHz' ---> 'Intel Pentium III - S' 'Dual Core AMD Opteron(tm) Processor 165' ---> 'AMD Dual Core Opteron 165' 'Genuine Intel(R) CPU T1350 @ 1.86GHz' ---> 'Intel T1350' 'AMD Phenom(tm) 9350e Quad-Core Processor' ---> 'AMD Phenom 9350e Quad-Core' Intel GPU: 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller' ---> 'Atom/Celeron/Pentium x5-E8000/J3xxx/N3xxx Integrated Graphics' '4th Generation Core Processor Family Integrated Graphics Controller' ---> '4th Gen Core Family Integrated Graphics' 'Mobile GM965/GL960 Integrated Graphics Controller (secondary)' ---> 'Mobile GM965/GL960 Integrated Graphics (secondary)' 'Mobile 915GM/GMS/910GML Express Graphics Controller' ---> 'Mobile 915GM/GMS/910GML Express Graphics' Also: Fix/replace the appf() and SEQ() that were peppered about. Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-10arm: use arm.ids for implementer/part lookupBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-10vendor.ids: update and move to sysobj_earlyBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-08-04usb: added usb.ids parsingOndrej Čerman
2019-07-29udisks2: get sdcard oem/manufacturerBurt P
udisks doesn't provide, but it can be looked up using attributes from sysfs. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29replace idle_free() with auto_free() from sysobjBurt P
* auto_free() works in both report mode and gui mode. * auto_free() only creates one recuring event for the whole system rather than idle_free()'s one event per call. * auto_free_ex() allows specifying the free function to use. * auto_free() is thread-aware, free_auto_free_thread_final() can be used to clean up on thread exit. * auto_free() has some tweakability. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29uri_handler functions from sysobjBurt P
This allows link clicks to be intercepted so that they might be used by the application internally before falling back to the system uri handler. I've also found the default GTK label link handler to be unreliable outside of GNOME Shell, and this will use xdg-open instead. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-29vendor.ids update and vendor.{h,c} improvements from sysobj versionBurt P
* more fields in struct Vendor. * match_case -> match_rule and new match rule "exact". match_rule remains compatible with match_case for old conf format. * matches must be "whole word" matches so "Harmony" no longer hits for "ARM". * Parts outside of () are checked first, so "Foo (formerly Barly)" matches Foo before Barly, even though Barly is longer and would otherwise match first. * vendor_list type (a blessed GSList*) and helper functions to manage it. Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-10computer/os: Ubuntu flavorsBurt P
See: https://github.com/lpereira/hardinfo/issues/404 Signed-off-by: Burt P <pburt0@gmail.com>
2019-07-06Memory devices: enable more warnings and cleanupBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-29Memory Devices: a little name cleanupBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-28Combine Memory DMI and Memory SPD into "Memory Devices"Burt P
Combines the information from DMI and SPD into a single Memory Devices section. Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-27GTK3/Benchmarks disable guibench onlyJuro Bystricky
GTK3 build inadvertably disabled all benchmarking. At present, the GTK3 build intentionally avoids building of "guibench" due to non-trivial changes from GTK2 to GTK3. However, all other benchmarks were disabled as well. This was not by design, as non-gui benchmarks have no GTK3 dependencies. The reason benchmarks were diasbled (did not show up in the menus) was that the code for "benchark_gui" still referenced the missing "guibench" routine. This routine was not present in the "benchmark.so", so the library would not load due to the missing entry point. This patch addresses the issue. All benchmarks (except guibench) show/work fine with GTK3. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
2019-06-26devices/dmi_memory.c: shell viewtype=1 version, other tweaksBurt P
* add -std=c99 for dmi_memory.c to use unicode * -std=c99 is picky about inline functions Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-22DMI socket/module information moved from Processor to Memory DMIBurt P
As discussed in https://github.com/lpereira/hardinfo/issues/345 Signed-off-by: Burt P <pburt0@gmail.com>
2019-06-20move devices/memory to computer/memory usageBurt P
As discussed in https://github.com/lpereira/hardinfo/issues/345 Signed-off-by: Burt P <pburt0@gmail.com>
2018-12-04Replaces the uber-graph submodule with a local forkBurt P
Includes the hardinfo-required source files directly instead of using a git submodule. The original is unmaintained. Signed-off-by: Burt P <pburt0@gmail.com>
2018-12-02dt_util: enable and fix warningsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-12-02enable and fix some warningsBurt P
Part of (#298). Signed-off-by: Burt P <pburt0@gmail.com>
2018-11-30devices/storage: added udisks2 supportOndrej Čerman
2018-11-04benchmark/blowfish: new version of blowfish benchmarkBurt P
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>
2018-05-29move data files to data/Burt P
Signed-off-by: Burt P <pburt0@gmail.com>
2018-05-29vendor.c/vendor.ids: create vendor.idsBurt P
Create a new, more easily maintained, file for vendor information. Installs with hardinfo, but can be sync-ed if that function ever gets restored. Reading the old vendor.conf format is still fully supported, AFAIK. Signed-off-by: Burt P <pburt0@gmail.com>
2018-04-24[new] devices/gpu: graphics processorsBurt P
Signed-off-by: Burt P <pburt0@gmail.com>
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-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-12Do not use hardcoded path for iconLeandro Pereira
Use just the symbolic name "hardinfo", allowing for icon packs to provide alternative icons. Fixes #227
2017-12-09Build debug builds with address sanitizerLeandro Pereira
2017-08-27Create dmi_util.c and move *_util.c to hardinfo/Burt P
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>
2017-08-14cmake: add info.c to gtk3 build/link listBurt P
Fixes #150. Signed-off-by: Burt P <pburt0@gmail.com>
2017-08-14Begin getting rid of callbacks returning stringsLeandro Pereira
Strings were never a good choice to begin with. However, with the efforts to improve translatability, they became even worse. This is an attempt to clean up the current mess and provide a more structured way for modules to commmunicate with the shell. The Computer module has been partially converted and changes will be provided next. It's partially converted since some of its information is still stored as strings. The Shell still only understands strings; that's why the structured data is converted to a string the way it is. Once all modules are converted, the Shell can be modified to handle struct Info directly without having to parse the .ini-like strings.
2017-08-14Create man pagePICCORO Lenz McKAY
2017-08-07cmake: fix mistake that broken gui benchmark for gtk2Burt P
I broke it. Signed-off-by: Burt P <pburt0@gmail.com>