Re: Single Stepping Process in Kernel

2011-11-27 Thread Luis Useche
On Sun, Nov 27, 2011 at 4:42 PM, Philip Guenther wrote: > On Sun, Nov 27, 2011 at 9:19 AM, Luis Useche wrote: > ... >> The idea is to create this temporary mapping after we make sure the >> access was valid but the page was not in memory. > ... >> I am not proposing to trace the fault handler. My

Re: Single Stepping Process in Kernel

2011-11-27 Thread Philip Guenther
On Sun, Nov 27, 2011 at 9:19 AM, Luis Useche wrote: ... > The idea is to create this temporary mapping after we make sure the > access was valid but the page was not in memory. ... > I am not proposing to trace the fault handler. My idea is to single > step the last user-space instruction of the p

Re: Single Stepping Process in Kernel

2011-11-27 Thread Luis Useche
On Sun, Nov 27, 2011 at 4:14 AM, Philip Guenther wrote: > On Sat, Nov 26, 2011 at 10:25 PM, Luis Useche wrote: >> On Sat, Nov 26, 2011 at 7:31 PM, Ted Unangst wrote: >>> On Sat, Nov 26, 2011, Luis Useche wrote: For a project I need to single step a user space process while executing th

Re: Single Stepping Process in Kernel

2011-11-27 Thread Philip Guenther
On Sat, Nov 26, 2011 at 10:25 PM, Luis Useche wrote: > On Sat, Nov 26, 2011 at 7:31 PM, Ted Unangst wrote: >> On Sat, Nov 26, 2011, Luis Useche wrote: >>> For a project I need to single step a user space process while >>> executing the fault handler. I was thinking that probably ddb single >>> st

Re: Single Stepping Process in Kernel

2011-11-26 Thread Luis Useche
On Sat, Nov 26, 2011 at 7:31 PM, Ted Unangst wrote: > On Sat, Nov 26, 2011, Luis Useche wrote: >> For a project I need to single step a user space process while >> executing the fault handler. I was thinking that probably ddb single >> stepping can be reused but this is probably for kernel single

Re: Single Stepping Process in Kernel

2011-11-26 Thread Ted Unangst
On Sat, Nov 26, 2011, Luis Useche wrote: > For a project I need to single step a user space process while > executing the fault handler. I was thinking that probably ddb single > stepping can be reused but this is probably for kernel single stepping > only. How about ptrace? I am officially confus

Single Stepping Process in Kernel

2011-11-26 Thread Luis Useche
Hi Guys, For a project I need to single step a user space process while executing the fault handler. I was thinking that probably ddb single stepping can be reused but this is probably for kernel single stepping only. How about ptrace? Any ideas on this? Thanks for the help, Luis.