Skip to contentSkip to conversation

module for controlling kprobes with /proc

DISCUSSION Prasanna S Panchamukhi 2 participants 2 messages Apr 4, 2005

lore
Share & tools
lore
#0 lore raw

Hi Piotr,

Good way to make kprobes useful, but I have some comments.

Quoted 3 lines

I have programmed a universal module to register/remove kprobes handlers by interacting with /proc with simple commands.

why /proc ?

You can use a combination of SysRq key to enter a kprobe command line prompt.
Initially you can define a dummy breakpoint for command line prompt and accept
commands from thereon.
Later display the list of features add/remove/display breakpoint, backtrace etc.
Also once you hit a breakpoint you give a command line prompt and user can backtrace/ dump some global memory, dump registers etc.

Let me know if you need more information.

Thanks
Prasanna

Signature · 5 lines
Prasanna S Panchamukhi
Linux Technology Center
India Software Labs, IBM Bangalore
Ph: 91-80-25044636
<[email protected]>
#1 lore raw

Hello Prasanna,

Quoted 1 line · Prasanna S Panchamukhi

why /proc ?

Thank you for your remarks. I originally thought of writing a simple CLI app to sit over /proc , do basic sanity checks and be simple to use.

Quoted 7 lines

You can use a combination of SysRq key to enter a kprobe command line prompt.
Initially you can define a dummy breakpoint for command line prompt and accept
commands from thereon.
Later display the list of features add/remove/display breakpoint, backtrace etc.
Also once you hit a breakpoint you give a command line prompt and user can backtrace/ dump some global memory, dump registers etc.

Let me know if you need more information.

Yes please, I would be grateful.
TIA

Piotr