Commit Graph

  • 093222d533 [v0.88][DOC] Update documentation and divide it in two files, one for each architecture Dr-Noob 2020-11-23 16:11:54 +01:00
  • 716706d0a7 [v0.88][ARM][BUGFIX] Fetch number of cores from /sys/devices/system/cpu/present file, instead of /proc/cpuinfo. Pay attention to cases where frequency and/or MIDR can not be fetched from cpuinfo. This happens when the CPU has offline cores Dr-Noob 2020-11-22 15:18:15 +01:00
  • fcb2c716db [v0.87][FREQ] Frequency in udev is now fetched as a per core basis. Before this commit, freq was always fetched from core 0. This allows ARM do detect the max frequency of each of the cores (which may or may not be the same in all of them) Dr-Noob 2020-11-22 10:23:02 +01:00
  • 0875c4d425 [v0.87][ARM] cpuInfo now holds all the structs (freq, cache, etc), instead of having them separated. This allows ARM to represent a single CPU, because from its pointer, it is able to access the specific frequency, cache, etc Dr-Noob 2020-11-22 09:57:50 +01:00
  • f5ec566577 [v0.87][DOC] Explain commit #42ade63 in documentation. Add Android information in README Dr-Noob 2020-11-22 09:20:35 +01:00
  • 5b0cbd622f [v0.87][BUGFIX] Add checks to detect wrong ASCII arts. Fix ARM ASCII art Dr-Noob 2020-11-21 19:21:19 +01:00
  • 0b9f0e860c [v0.87][PRINTER] ASCII art attributes are no longer fixed in a given position, and are not fixed in length (max length is now 100). Added different algorithms for printing ASCII art for X86 and ARM, which allows ARM to show each CPU inside a SoC Dr-Noob 2020-11-21 19:02:04 +01:00
  • 50931ee94d [v0.86][BUGFIX] Fix print format for hex values Dr-Noob 2020-11-21 16:45:51 +01:00
  • 42ade63746 [v0.86][BUGFIX] Add old AMD CPUs cache fix to master branch Dr-Noob 2020-11-21 16:41:08 +01:00
  • e4a4e13d56 [v0.82][BUGFIX] Using 0x80000006 in new AMD CPUs outputs wrong L3 size since it reports the full size instead the size of a single L3. Use old method just when is necessary Dr-Noob 2020-11-21 16:37:51 +01:00
  • 7d707916fb [v0.86][OPTIONS] Replace levels option with debug option, which does the same on x86, but also exists on ARM, which prints MIDR registers (need work to be properly implemented) Dr-Noob 2020-11-18 23:41:42 +01:00
  • c44a646cd1 [v0.85][ARM] Add SoC field in ARM and remove CPU Name field, which is only valid in x86. Fix Makefile for some strict compilers Dr-Noob 2020-11-18 23:22:26 +01:00
  • 8c11cb2422 [v0.84][ARM] Add ISA field in ARM. ISA depends on uarch, not on specific CPU. Fill all the missing data in uarch.c Dr-Noob 2020-11-14 11:10:51 +01:00
  • cb78f18de1 [v0.84][BUGFIX] Fix more compilation issues Dr-Noob 2020-11-10 22:46:39 +01:00
  • 07f3f26ff6 [v0.84][BUGFIX] Fix more compilation issues Dr-Noob 2020-11-10 22:45:14 +01:00
  • 27aabb35be [v0.84][BUGFIX] Fix compilation issues Dr-Noob 2020-11-10 18:51:13 +01:00
  • 904cb46765 [v0.84][ARM] Add lots of new microarch detection Dr-Noob 2020-11-10 18:48:10 +01:00
  • 3aa13269b7 [v0.83][ARM] Add basic support for microarchitecture and CPU name detection. Need to add the remaining models Dr-Noob 2020-11-08 16:49:01 +01:00
  • b978ddc83d [v0.82][BUGFIX] Issue #33: Use 0x80000006 for cache fetching in AMD, instead of 0x8000001D. This means that a different approach in Intel and AMD CPUs Dr-Noob 2020-11-07 10:48:48 +01:00
  • 16abfa7022 [v0.82][README] Update README to show ARM experimental support Dr-Noob 2020-11-06 11:10:30 +01:00
  • 9c8e169592 [v0.82][ARM][ASCII][Refactoring] ARM ascii changes. Remove the assumption that all sockets are equal in a ARM based SoC. Little more support for ARM processors. Add ARM color style Dr-Noob 2020-11-06 10:02:59 +01:00
  • 4f1722ead6 [v0.81][ARM][Refactoring] Refactoring and very basic ARM support Dr-Noob 2020-11-05 13:44:46 +01:00
  • f4f68287aa [v0.8][Refactoring] Refactoring ARM code and source code tree Dr-Noob 2020-11-05 11:01:46 +01:00
  • 1fad4fd10b [v0.8][ARM] Building support in ARM Dr-Noob 2020-11-05 09:28:41 +01:00
  • 5cc9038f3d Fix peak performance in KNL Dr-Noob 2020-10-20 21:13:04 +02:00
  • f992d0122f Merge remote-tracking branch 'Wunkolo/feat/windows-colors' into master Dr-Noob 2020-10-20 20:49:29 +02:00
  • ac86be2d7a Fix bug in Windows where specifying a style while using a terminal that supports color does not enable the color support, so colors do not show correctly Dr-Noob 2020-10-20 20:43:14 +02:00
  • c158cab005 Update readme with new Windows terminal support Wunkolo 2020-10-17 18:46:53 -07:00
  • 9867754d08 Implement VT100 escape-code detection for Windows Wunkolo 2020-10-15 13:08:59 -07:00
  • 5119ece0dd Refactoring defines to enums Dr-Noob 2020-10-13 00:00:20 +02:00
  • e37c7d9ae0 Basic support for virtual machines Dr-Noob 2020-10-11 23:27:19 +02:00
  • aa5f0a8b88 Add install option in Makefile Dr-Noob 2020-09-21 13:07:18 +02:00
  • 075e4399f8 Update description Dr-Noob 2020-09-05 10:51:16 +02:00
  • 3dedb0bbc3 Add programming documentation Dr-Noob 2020-09-05 09:46:37 +02:00
  • 60bc02185d Small fix v0.7 Dr-Noob 2020-09-01 20:48:37 +02:00
  • ae752bac77 Add images Dr-Noob 2020-09-01 20:45:52 +02:00
  • 500ccfa871 Stable version 0.7 heavily tested in many different CPUs Dr-Noob 2020-09-01 20:44:48 +02:00
  • 877833db0a Dont fetch if smt is enabled if its not supported (AMD). Dont guess cache topology, fetch it from CPUID (AMD) Dr-Noob 2020-09-01 13:08:44 +02:00
  • 5cca6df218 Fix memory leaks. Add debug message when microarch is unknown Dr-Noob 2020-09-01 11:32:08 +02:00
  • de8952b4ea Fix bug which caused you couldnt use --version. Change --style to be more user friendly. Update --help Dr-Noob 2020-09-01 11:00:11 +02:00
  • 1f80566f63 New info to be displayed (uarch and process) instead of other info (sha, aes, sse) Dr-Noob 2020-08-31 19:57:29 +02:00
  • ab1416563c Fix PP in Ice Lake Dr-Noob 2020-08-31 18:27:32 +02:00
  • 1a9c0546f2 Add support for detecting AMD microarch Dr-Noob 2020-08-31 15:56:21 +02:00
  • 35efdd8f2c Fix #26. Guess number of VPUs according to microarchitecture Dr-Noob 2020-08-31 14:04:41 +02:00
  • 5148962fa3 Add code to detect CPU microarchitecture (Intel only, at the moment) Dr-Noob 2020-08-31 13:18:25 +02:00
  • d998acdcdf Fix #25: Compute PP taking into account the number of sockets Dr-Noob 2020-08-31 09:33:39 +02:00
  • 81a45628f0 Code refactoring. Forgot to add verbose option to help Dr-Noob 2020-08-30 13:49:12 +02:00
  • 4f98a5bccf Refactor previous commit Dr-Noob 2020-08-30 12:42:38 +02:00
  • dae0f678ad Fix #23. I tried fetching the cache topology in AMD but could not find a proper way, so the code fallback to two commits ago. cpufetch has to guess cache sizes except L3, which can be fetched. Since I have been trying many approaches and stuff, the code needs to be refactored Dr-Noob 2020-08-30 12:12:25 +02:00
  • 69cc08759a Fix #21 and #22: Obtain the number of caches of every level instead of guessing them. It is done by fetching cache topology from apic. It works, but it needs a big refactoring. Moreover, it currently works only on Intel CPUs, so this breaks the cache in AMD. Dr-Noob 2020-08-29 21:50:51 +02:00
  • d8dad29a57 Fix SMT bug in AMD. I would like to improve it, since Intel can use APIC with 0x1 and 0xB (extended) while AMD does with 0x1 and extended seems to be 0x1E. Add support to detect more than one L3 cache. This is not a very elegant solution, since we still assume that we have the same number of caches as caches in a given level. To fix it, cpufetch should know how many caches are in a given level (hint, Linux knows using shared_cpu_map) Dr-Noob 2020-08-29 15:42:56 +02:00
  • e08b60b1c8 Project stopped until I have time to continue Dr-Noob 2020-07-12 19:08:38 +02:00
  • ad6c3c88ce Small corrections in code and Makefile v0.6 Dr-Noob 2020-07-12 15:39:34 +02:00
  • e114bde128 Complete topology read in AMD Dr-Noob 2020-07-06 01:58:48 +02:00
  • 7164409ca2 Add legacy style (for Windows) and make it the default for Windows. Add verbose flag Dr-Noob 2020-07-06 01:30:14 +02:00
  • 08f79bb914 Fix compilation in Windows and add support for bind to specific cores. Separate APIC code in other file Dr-Noob 2020-07-06 01:16:59 +02:00
  • b457c86100 Add support for obtaining topology in old processors (with CPUID less than 0xB) Dr-Noob 2020-07-05 19:59:55 +02:00
  • e5d86289b5 Use APIC to obtain topology. This is interesting because this will allow us to obtain it even on older CPUs (without CPUID 0xB) (will be added in future commits) Dr-Noob 2020-07-05 16:52:41 +02:00
  • c6c4d8b6fd Fix spaces bug in CPU name Dr-Noob 2020-07-03 19:42:05 +02:00
  • c8fde107dd Fix ascii logo in AMD. Fix output on CPUs without L3 Dr-Noob 2020-07-03 16:24:14 +02:00
  • b076189b32 Add support to detect if HT/SMT is enabled or disabled Dr-Noob 2020-07-03 16:11:09 +02:00
  • d43229359a Support for 4 colors with --color (2 for ascii, 2 for text) Dr-Noob 2020-07-03 09:42:30 +02:00
  • ba047c76e3 Add two different styles. The old one is now called retro, and the new one, which is the default, is called fancy Dr-Noob 2020-07-02 18:53:28 +02:00
  • 942a86c04f Remove styles and add option to specify custom color output in RGB format Dr-Noob 2020-07-02 16:14:37 +02:00
  • ea338a68c8 Forgot to support AMD in printer Dr-Noob 2020-06-29 17:32:08 +02:00
  • d7b7e2b62d Support printing dual socket. Fix bug where cache sizes were not displayed correctly (they were truncated) Dr-Noob 2020-06-29 17:13:37 +02:00
  • 941bf35d03 Big refactoring. Move ascii managment to printer. Mix extended and standart cpuid functions in cpuid file. Old cpuid renamed to cpuid_asm. Store cpu name in cpuInfo struct Dr-Noob 2020-06-28 15:51:30 +02:00
  • 131d860de6 Print total cache sizes (for L1 and L2, but also for L3 in case we run in dual socket!) Dr-Noob 2020-06-28 12:47:03 +02:00
  • 92992be225 Support for multi socket systems (only information gathering, not printing) v0.410 Dr-Noob 2020-06-22 18:04:24 +02:00
  • 698274e44c Fix bug and memory leak Dr-Noob 2020-06-22 18:00:45 +02:00
  • 7fee305e8b Little fixes Dr-Noob 2020-06-22 15:30:05 +02:00
  • 1ce6b97bec Fix topology in AMD, using extended level to fetch it Dr-Noob 2020-06-22 15:04:32 +02:00
  • 8211f24f46 Fix cache in AMD, using extended level Dr-Noob 2020-06-22 13:50:00 +02:00
  • 0725e9d876 Add --levels option Dr-Noob 2020-06-22 13:17:00 +02:00
  • a2dab8129c Use standart types instead of int/long in specific files. This fixes a problem in Windows, were PP was not computed correctly. Compiling with C99 v0.47 Dr-Noob 2020-06-22 12:47:14 +02:00
  • 08ce1de122 Add fallback in Linux in case we cant get the freq from cpuid, using udev (welcome back, udev...) Dr-Noob 2020-06-22 12:05:04 +02:00
  • 10cf53479e Fix small bug in get_str_topology. Fix #15 Dr-Noob 2020-06-21 15:55:14 +02:00
  • ce4ecd7af4 Fix bug introduced when using stdbool instead of ints Dr-Noob 2020-06-21 13:41:14 +02:00
  • 1435978b37 Add release and debug targets in Makefile. Improve robustness by checking cache sizes and snprintf returns Dr-Noob 2020-06-21 13:37:44 +02:00
  • 0087453eda Refactoring in printer Dr-Noob 2020-06-21 12:43:51 +02:00
  • 0cba7b4348 Add "none" style (useful for non colored terminals). Refactoring in printer Dr-Noob 2020-06-21 11:07:35 +02:00
  • a1496278c3 Fix bug: remove spaces between CPU name in certain processors Dr-Noob 2020-06-21 01:48:29 +02:00
  • 525cf1a76f Get number of cores (Intel only) with cpuid. This removes sysconf dependency. This implementation breaks cpufetch in NUMA environments Dr-Noob 2020-06-20 20:54:38 +02:00
  • 6ad5f65c34 Improve error checking. Add partial support for verbose output Dr-Noob 2020-06-20 19:21:07 +02:00
  • b81d611282 Fetch freq from cpuid, instead of asking Linux (using /proc). This finally removes udev dependency. However, the support of cpuid 0x16 is limited, so this may break cpufetch on some systems Dr-Noob 2020-06-20 13:24:50 +02:00
  • 04a2fef2a2 Fetch cache info from cpuid, instead of asking Linux (using /proc) Dr-Noob 2020-06-20 12:15:59 +02:00
  • e766f38884 Big refactoring Dr-Noob 2020-06-20 11:24:43 +02:00
  • 7cd4cb6dcb Fixed little bug in amd. Introduced feature to check version Dr-Noob 2018-06-24 00:17:50 +02:00
  • 8e56bc3801 Add simple manpage Dr-Noob 2018-06-23 13:07:35 +02:00
  • 3be59c9057 Update information to not showing cpu arch and new colors Dr-Noob 2018-06-23 13:06:02 +02:00
  • 9f55672aa2 Divide source code from other stuff Dr-Noob 2018-06-23 13:04:42 +02:00
  • 3ded41ce44 Add license to the project Dr-Noob 2018-06-22 21:59:52 +02:00
  • f08438c7e9 Remove unused files Dr-Noob 2018-06-22 21:02:58 +02:00
  • e9b5fe5f0a Add gcc flags to improve reliability Dr-Noob 2018-06-22 21:01:16 +02:00
  • 3199ac739a Function to notify errors Dr-Noob 2018-06-22 20:36:56 +02:00
  • ebe49743e5 Drop support for 32bit cpus; dont show cpu arch and assume x86_64. Little refactoring in calculating the spacing in text displayed Dr-Noob 2018-06-22 13:39:39 +02:00
  • 7b059c046a Support for simple args options(currently, help and style). New feature to switch colors of logo, to improve visibility in bright terminals Dr-Noob 2018-06-21 15:30:29 +02:00
  • 5bf6cbf2c7 Refactoring of printer Dr-Noob 2018-06-21 10:04:55 +02:00
  • 49d59d6708 Fixed freq bug. Improved Makefile and fixed some minor errors Dr-Noob 2018-05-21 15:36:32 +02:00
  • 2628516460 Fixed image Dr-Noob 2018-03-31 12:20:49 +02:00