diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2008-11-12 16:49:23 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-12 17:15:43 -0500 |
commit | 1dc1c6adf38bc5799d1594681645ced40ced4b6b (patch) | |
tree | 5b08e2143631239ef1663bf2e1c1c18bcaabb5f3 /arch/x86/kernel/entry_32.S | |
parent | 62d59d17a5f98edb48b171742dfa531488802f07 (diff) |
tracing/function-return-tracer: call prepare_ftrace_return by registers
Impact: Optimize a bit the function return tracer
This patch changes the calling convention of prepare_ftrace_return to
pass its arguments by register. This will optimize it a bit and
prepare it to support dynamic tracing.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/entry_32.S')
-rw-r--r-- | arch/x86/kernel/entry_32.S | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S index 9a0ac85946db..f97621149839 100644 --- a/arch/x86/kernel/entry_32.S +++ b/arch/x86/kernel/entry_32.S | |||
@@ -1217,12 +1217,9 @@ trace_return: | |||
1217 | pushl %eax | 1217 | pushl %eax |
1218 | pushl %ecx | 1218 | pushl %ecx |
1219 | pushl %edx | 1219 | pushl %edx |
1220 | movl 0xc(%esp), %eax | 1220 | movl 0xc(%esp), %edx |
1221 | pushl %eax | ||
1222 | lea 0x4(%ebp), %eax | 1221 | lea 0x4(%ebp), %eax |
1223 | pushl %eax | ||
1224 | call prepare_ftrace_return | 1222 | call prepare_ftrace_return |
1225 | addl $8, %esp | ||
1226 | popl %edx | 1223 | popl %edx |
1227 | popl %ecx | 1224 | popl %ecx |
1228 | popl %eax | 1225 | popl %eax |