xqjcool/KernelDebugger
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
This is the README file for funchook, which implements the function hook to provide a easy and convenient way to analyze kernel problems and provide hotfix to kernel. Introduction. ************* - Analyze kernel problems we can add code to the hook function to analyze the change before and after the execution of a specific function. like kernel printk, stack dump, etc. - hotfix patch for kernel problem we can fix the problem in hook function, once hook function is registered, it will work instead of the original function. Usage. ************* 1. Copy the hook_fput directory and rename it, for example, hook_new. 2. Modify samples/Makefile, add "obj-y += hook_new". 3. 3. Modify hook_new/module.c according to your needs. Installation. ************* Run `make` to generate module ko file, then install ko file on kernel system. Contacts. ********* Xing Qingjie <xqjcool@gmail.com> Copyrights: *********** All of the code can be freely used and redistributed.