Skip to content

Commit 428e689

Browse files
authored
Create REAME.md
1 parent 37ea3b8 commit 428e689

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

ASU_CSE530/assignment01/REAME.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Kernel debugging is generally viewed as an annoying process because it might heavily use printk with static debugging techniques (compile, then run). However, in this work, I want to show you how to write a mprobe module through device interface and then, in user programs, we can use POSIX interface, open()/read()/write(), to operate the virtual device exported through the mprobe module. Through this virtual device, we can observe the interesting kernel information. Therefore, without any help from physical devices, we can dynamically debug developing kernel modules.
2+
3+
In this work, I demonstrated how to write a loadable kernel module and a mprobe module; moreover, the kernel module can be debugged by the mprobe module.
4+
* https://github.com/HawxChen/Linux-Kernel-Driver-Programming/tree/master/ASU_CSE530/assignment01
5+
* If you feel it useful, please star or watch this repository.
6+
7+
The folder included two modules:
8+
* A kernel module used hashtable and synchronization.
9+
* A mprobe module could debug the previous kernel module.
10+
* Both parts had testing programs and README.
11+
12+
13+
Enjoy tracing the code!

0 commit comments

Comments
 (0)