lkml.org 
[lkml]   [2017]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/6 v3] ftrace/x86_32: Clean up ftrace_regs_caller
On Sat, Mar 18, 2017 at 05:09:27PM -0400, Steven Rostedt wrote:
> @@ -111,12 +114,11 @@ GLOBAL(ftrace_regs_call)
> popl %es
> popl %fs
> popl %gs
> - addl $8, %esp /* Skip orig_ax and ip */
> - popf /* Pop flags at end (no addl to corrupt flags) */
> - jmp .Lftrace_ret
>
> - popf
> - jmp ftrace_stub
> + /* use lea to not affect flags */
> + lea 3*4(%esp), %esp /* Skip orig_ax, ip and flags */
> +
> + jmp .Lftrace_ret
> #else /* ! CONFIG_DYNAMIC_FTRACE */
>
> ENTRY(mcount)

That last comment should be

/* Skip orig_ax, ip and cs */

Otherwise:

Reviewed-by: Josh Poimboeuf <jpoimboe@redhat.com>

--
Josh

\
 
 \ /
  Last update: 2017-03-20 15:27    [W:0.077 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site