[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m2ehptjull.fsf@firstfloor.org>
Date: Tue, 05 Jun 2012 14:51:18 -0700
From: Andi Kleen <andi@...stfloor.org>
To: Masami Hiramatsu <masami.hiramatsu.pt@...achi.com>
Cc: Steven Rostedt <rostedt@...dmis.org>, linux-kernel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>,
"H. Peter Anvin" <hpa@...or.com>,
Ananth N Mavinakayanahalli <ananth@...ibm.com>,
"Frank Ch. Eigler" <fche@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Frederic Weisbecker <fweisbec@...il.com>,
yrl.pp-manager.tt@...achi.com
Subject: Re: [PATCH -tip v2 3/9] ftrace/x86: Support SAVE_REGS feature on i386
Masami Hiramatsu <masami.hiramatsu.pt@...achi.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@...ux.intel.com -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists