Stepping using kprobe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

  I was using kprobe for venturing into the 2.6
kernel.
Using kprobe currently I'am using printk to see the
values of kernel variables at different parts of the
code.

  But once the kprobe function is executed , 
the execution flow continues.
  
  Is there a way to stop the flow of execution till 
an external event is raised to continue execution.

  Elaborating to be more clear, I wanted to know if 
there is any code that can be added to the kprobe 
function ( the one with printk's ) and the flow 
needs to stop until say `c` is typed on the keyboard.
I'am trying to see if something like gdb can be 
achieved .

  I'am aware that we can do single stepping using 
kgdb over a serial line. Just wanted to know if 
we can try something using kprobes.

  Any thoughts/pointers/code for this would be
appreciated .

Cheers!



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux