421 Commits
Author SHA1 Message Date
Dr-Noob 92992be225 Support for multi socket systems (only information gathering, not printing) 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 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 9f55672aa2 Divide source code from other stuff 2018-06-23 13:04:42 +02:00