513 Commits
Author SHA1 Message Date
Dr-Noob 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) 2020-07-05 16:52:41 +02:00
Dr-Noob c6c4d8b6fd Fix spaces bug in CPU name 2020-07-03 19:42:05 +02:00
Dr-Noob c8fde107dd Fix ascii logo in AMD. Fix output on CPUs without L3 2020-07-03 16:24:14 +02:00
Dr-Noob b076189b32 Add support to detect if HT/SMT is enabled or disabled 2020-07-03 16:11:09 +02:00
Dr-Noob d43229359a Support for 4 colors with --color (2 for ascii, 2 for text) 2020-07-03 09:42:30 +02:00
Dr-Noob ba047c76e3 Add two different styles. The old one is now called retro, and the new one, which is the default, is called fancy 2020-07-02 18:53:28 +02:00
Dr-Noob 942a86c04f Remove styles and add option to specify custom color output in RGB format 2020-07-02 16:14:37 +02:00
Dr-Noob ea338a68c8 Forgot to support AMD in printer 2020-06-29 17:32:50 +02:00
Dr-Noob d7b7e2b62d Support printing dual socket. Fix bug where cache sizes were not displayed correctly (they were truncated) 2020-06-29 17:13:37 +02:00
Dr-Noob 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 2020-06-28 15:51:30 +02:00
Dr-Noob 131d860de6 Print total cache sizes (for L1 and L2, but also for L3 in case we run in dual socket!) 2020-06-28 12:47:03 +02:00
Dr-Noob 92992be225 Support for multi socket systems (only information gathering, not printing) v0.410 2020-06-22 18:04:24 +02:00
Dr-Noob 698274e44c Fix bug and memory leak 2020-06-22 18:00:45 +02:00
Dr-Noob 7fee305e8b Little fixes 2020-06-22 15:30:05 +02:00
Dr-Noob 1ce6b97bec Fix topology in AMD, using extended level to fetch it 2020-06-22 15:04:32 +02:00
Dr-Noob 8211f24f46 Fix cache in AMD, using extended level 2020-06-22 13:50:00 +02:00
Dr-Noob 0725e9d876 Add --levels option 2020-06-22 13:17:00 +02:00
Dr-Noob 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 2020-06-22 12:47:14 +02:00
Dr-Noob 08ce1de122 Add fallback in Linux in case we cant get the freq from cpuid, using udev (welcome back, udev...) 2020-06-22 12:05:04 +02:00
Dr-Noob 10cf53479e Fix small bug in get_str_topology. Fix #15 2020-06-21 15:55:14 +02:00
Dr-Noob ce4ecd7af4 Fix bug introduced when using stdbool instead of ints 2020-06-21 13:41:14 +02:00
Dr-Noob 1435978b37 Add release and debug targets in Makefile. Improve robustness by checking cache sizes and snprintf returns 2020-06-21 13:37:44 +02:00
Dr-Noob 0087453eda Refactoring in printer 2020-06-21 12:43:51 +02:00
Dr-Noob 0cba7b4348 Add "none" style (useful for non colored terminals). Refactoring in printer 2020-06-21 11:07:35 +02:00
Dr-Noob a1496278c3 Fix bug: remove spaces between CPU name in certain processors 2020-06-21 01:48:29 +02:00
Dr-Noob 525cf1a76f Get number of cores (Intel only) with cpuid. This removes sysconf dependency. This implementation breaks cpufetch in NUMA environments 2020-06-20 20:54:38 +02:00
Dr-Noob 6ad5f65c34 Improve error checking. Add partial support for verbose output 2020-06-20 19:21:07 +02:00
Dr-Noob 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 2020-06-20 13:24:50 +02:00
Dr-Noob 04a2fef2a2 Fetch cache info from cpuid, instead of asking Linux (using /proc) 2020-06-20 12:15:59 +02:00
Dr-Noob e766f38884 Big refactoring 2020-06-20 11:24:43 +02:00
Dr-Noob 7cd4cb6dcb Fixed little bug in amd. Introduced feature to check version 2018-06-24 00:17:50 +02:00
Dr-Noob 8e56bc3801 Add simple manpage 2018-06-23 13:07:35 +02:00
Dr-Noob 3be59c9057 Update information to not showing cpu arch and new colors 2018-06-23 13:06:02 +02:00
Dr-Noob 9f55672aa2 Divide source code from other stuff 2018-06-23 13:04:42 +02:00
Dr-Noob 3ded41ce44 Add license to the project 2018-06-22 21:59:52 +02:00
Dr-Noob f08438c7e9 Remove unused files 2018-06-22 21:02:58 +02:00
Dr-Noob e9b5fe5f0a Add gcc flags to improve reliability 2018-06-22 21:01:16 +02:00
Dr-Noob 3199ac739a Function to notify errors 2018-06-22 20:36:56 +02:00
Dr-Noob ebe49743e5 Drop support for 32bit cpus; dont show cpu arch and assume x86_64. Little refactoring in calculating the spacing in text displayed 2018-06-22 13:39:39 +02:00
Dr-Noob 7b059c046a Support for simple args options(currently, help and style). New feature to switch colors of logo, to improve visibility in bright terminals 2018-06-21 15:30:29 +02:00
Dr-Noob 5bf6cbf2c7 Refactoring of printer 2018-06-21 10:04:55 +02:00
Dr-Noob 49d59d6708 Fixed freq bug. Improved Makefile and fixed some minor errors 2018-05-21 15:36:32 +02:00
Dr-Noob 2628516460 Fixed image 2018-03-31 12:20:49 +02:00
Dr-Noob 785545a008 Moved 01h(name) to standart and removed 02h(useless) 2018-03-31 12:16:08 +02:00
Dr-Noob c38a427375 Fixed little mistake in number of cores. Changed a little README with more doc 2018-03-31 12:07:42 +02:00
Dr-Noob 904d1fd17f Added README 2018-03-31 01:25:08 +02:00
Dr-Noob cad0778fd6 Fixed memory leaks and unitialized variables 2018-03-30 21:39:15 +02:00
Dr-Noob c0ad4283e9 Fix unused characters in cpu name 2018-03-30 19:06:36 +02:00
Dr-Noob af0f80953c Text color 2018-03-30 16:15:22 +02:00
Dr-Noob 744ba41ebf Logos color 2018-03-30 15:53:42 +02:00