| From | Andi Kleen <> | Subject | Re: [PATCH -tip v2 3/9] ftrace/x86: Support SAVE_REGS feature on i386 | Date | Tue, 05 Jun 2012 14:51:18 -0700 |
| |
Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com> writes: > > + .macro FTRACE_SAVE_ALL > + /* eflags is saved on cs */ > + subl $8, %esp /* skip ip and orig_ax */ > + pushl %gs > + pushl %fs
For pure in kernel use you don't need to save/restore fs/gs This is only needed on kernel/user space boundaries.
And for this usage probably also not flags
-Andi
-- ak@linux.intel.com -- Speaking for myself only
|