kprobe is a useful tool when debug kernel.
It can directly hook the related function of kernel,
before or after it run.
It also can be used to patch kernel in some special case.
example
We can update kernel stat before kernel show it.
1 | 1 |
It can directly hook the related function of kernel,
before or after it run.
It also can be used to patch kernel in some special case.
We can update kernel stat before kernel show it.
1 | 1 |