Re: [RFC][PATCH] x86_32: Return actual stack when requesting sp from regs

2012-07-18 Thread Masami Hiramatsu
(2012/07/14 4:44), Steven Rostedt wrote: > > As x86_32 traps do not save sp when taken in kernel mode, we need to > accommodate the sp when requesting to get the register. > > This affects kprobes. > > Before: > > # echo 'p:ftrace sys_read+4 s=%sp' > /debug/tracing/kprobe_events > # echo 1 >

Re: [RFC][PATCH] x86_32: Return actual stack when requesting sp from regs

2012-07-18 Thread Masami Hiramatsu
(2012/07/14 4:44), Steven Rostedt wrote: As x86_32 traps do not save sp when taken in kernel mode, we need to accommodate the sp when requesting to get the register. This affects kprobes. Before: # echo 'p:ftrace sys_read+4 s=%sp' /debug/tracing/kprobe_events # echo 1

[RFC][PATCH] x86_32: Return actual stack when requesting sp from regs

2012-07-13 Thread Steven Rostedt
As x86_32 traps do not save sp when taken in kernel mode, we need to accommodate the sp when requesting to get the register. This affects kprobes. Before: # echo 'p:ftrace sys_read+4 s=%sp' > /debug/tracing/kprobe_events # echo 1 > /debug/tracing/events/kprobes/enable # cat trace

[RFC][PATCH] x86_32: Return actual stack when requesting sp from regs

2012-07-13 Thread Steven Rostedt
As x86_32 traps do not save sp when taken in kernel mode, we need to accommodate the sp when requesting to get the register. This affects kprobes. Before: # echo 'p:ftrace sys_read+4 s=%sp' /debug/tracing/kprobe_events # echo 1 /debug/tracing/events/kprobes/enable # cat trace