CoreMod
From Wiki.cyring.fr
(Difference between revisions)
(Page créée avec « <syntaxhighlight lang="c"> // coremod.c - CyrIng 2012 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> // Intel® 64 a... ») |
|||
(21 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
+ | === How To === | ||
+ | ==== Requirements ==== | ||
+ | Mandatory, | ||
+ | * The GNU/Linux x86_64 3.x : [http://www.kernel.org/ linux]<br /> | ||
+ | * The GNU Compiler Collection: [http://gcc.gnu.org gcc] - or - The C language family frontend for LLVM: [http://clang.llvm.org/ clang]<br /> | ||
+ | * Being root ! | ||
+ | * The Intel(R) Core(TM) i7, i5 Processors<br /> | ||
+ | <br /> | ||
+ | Optionally, | ||
+ | * The GNU Debugger: [http://www.gnu.org/software/gdb/ gdb]<br /> | ||
+ | * and a graphical front-end for gdb: [http://www.gnu.org/software/ddd/ ddd]<br /> | ||
+ | * The [http://www.intel.com/content/www/us/en/architecture-and-technology/64-ia-32-architectures-software-developer-vol-3a-3b-system-programming-manual.html Intel 64 and IA-32 Architectures Software Developer’s Manual] Volume 3<br /> | ||
+ | * The [http://www.dmtf.org/standards/smbios SMBIOS Reference Specification] (C) Distributed Management Task Force<br /> | ||
+ | <br /> | ||
+ | ==== Compiling ==== | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | $ make | ||
+ | </syntaxhighlight> | ||
+ | <pre> | ||
+ | Compiling : Done. | ||
+ | Linking : Done. | ||
+ | Ready : ./bin/coremod | ||
+ | Remark : You must be root to run CoreMod | ||
+ | </pre> | ||
+ | <br /> | ||
+ | |||
+ | ==== Debugging ==== | ||
+ | First of all, compile sources with the -g switch enabled, if not already, in the Makefile's CFLAGS, then launch the debugger<br /> | ||
<syntaxhighlight lang="c"> | <syntaxhighlight lang="c"> | ||
- | // coremod | + | $ kdesu ddd ./bin/coremod |
+ | </syntaxhighlight> | ||
+ | <br /> | ||
- | # | + | ==== Usage ==== |
- | + | Two kernel modules must be loaded | |
- | # | + | # msr |
- | + | # dmi-sysfs | |
- | + | <br /> | |
+ | Execute CoreMod as root | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | # ./coremod | ||
+ | </syntaxhighlight> | ||
+ | <br /> | ||
+ | http://blog.cyring.fr/wp-content/uploads/2012/07/CyrIng_coremod_screen12.jpg | ||
+ | <br /><br /> | ||
+ | Usage is straightforward. Just enter the corresponding initial character to the function you want to execute. | ||
+ | <br /> | ||
+ | Thus to show the core temperature, press the following keys:<br /> | ||
+ | * [s] | ||
+ | * [Enter] | ||
+ | * [c] | ||
+ | * [Enter] | ||
+ | and for instance, to go back to previous menu level:<br /> | ||
+ | * [<] | ||
+ | * [Enter] | ||
+ | <br /> | ||
+ | Discover the other functions to dump your components ! | ||
+ | <br /><br /> | ||
+ | http://blog.cyring.fr/wp-content/uploads/2012/07/CyrIng_coremod_screen17.jpg | ||
+ | <br /> | ||
+ | <br /> | ||
- | // | + | === Contact === |
- | // | + | Feel free to [http://blog.cyring.fr/about/?lang=en contact] us for any suggestion or question. |
- | // | + | <br /> |
+ | <br /> | ||
- | + | === Versions === | |
+ | ===== Nightly Build ===== | ||
+ | :[http://code.cyring.fr/FTS/?PATH=Source/C/CoreMod/Nightly_Build/Latest Latest] | ||
- | + | ===== Release 2012-0.1.4 ===== | |
- | + | :[http://code.cyring.fr/FTS/?PATH=Source/C/CoreMod/Previous_Build/2012-0.1.4 2012-0.1.4] | |
- | + | ===== Release 2012-0.1.3 ===== | |
- | + | :[http://code.cyring.fr/FTS/?PATH=Source/C/CoreMod/Previous_Build/2012-0.1.3 2012-0.1.3] | |
- | + | ===== Release 2012-0.1.2 ===== | |
- | + | :[http://code.cyring.fr/FTS/?PATH=Source/C/CoreMod/Previous_Build/2012-0.1.2 2012-0.1.2] | |
- | + | ===== Release 2012-0.1.1 ===== | |
- | + | :[http://code.cyring.fr/FTS/?PATH=Source/C/CoreMod/Previous_Build/2012-0.1.1 2012-0.1.1] | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Latest revision as of 10:04, 19 November 2012
Contents |
How To
Requirements
Mandatory,
- The GNU/Linux x86_64 3.x : linux
- The GNU Compiler Collection: gcc - or - The C language family frontend for LLVM: clang
- Being root !
- The Intel(R) Core(TM) i7, i5 Processors
Optionally,
- The GNU Debugger: gdb
- and a graphical front-end for gdb: ddd
- The Intel 64 and IA-32 Architectures Software Developer’s Manual Volume 3
- The SMBIOS Reference Specification (C) Distributed Management Task Force
Compiling
$ make
Compiling : Done. Linking : Done. Ready : ./bin/coremod Remark : You must be root to run CoreMod
Debugging
First of all, compile sources with the -g switch enabled, if not already, in the Makefile's CFLAGS, then launch the debugger
$ kdesu ddd ./bin/coremod
Usage
Two kernel modules must be loaded
- msr
- dmi-sysfs
Execute CoreMod as root
# ./coremod
Usage is straightforward. Just enter the corresponding initial character to the function you want to execute.
Thus to show the core temperature, press the following keys:
- [s]
- [Enter]
- [c]
- [Enter]
and for instance, to go back to previous menu level:
- [<]
- [Enter]
Discover the other functions to dump your components !
Contact
Feel free to contact us for any suggestion or question.