[RFC][PATCH][take2]kretprobe: kretprobe-booster against 2.6.15-rc5-mm3 for i386
Masami Hiramatsu
hiramatu@sdl.hitachi.co.jp
Tue Jan 24 13:23:00 GMT 2006
Hi, Ananth
Ananth N Mavinakayanahalli wrote:
>>+ " movl %esp, %eax\n"
>>+ " pushl %eax\n"
>>+ " addl $60, %eax\n"
>>+ " movl %eax, 56(%esp)\n"
>>+ " movl arch_trampoline_callee, %eax\n"
> ^^^^
> Why do we need this aliasing of trampoline_handler to
> arch_trampoline_callee? Can't we just invoke trampoline_handler()
> instead?
OK,
I had thought that inline assembler could not access to C function,
and that patch was based on that thought. However, now I know it is
possible as below.
--
" movl $trampoline_handler, %eax\n"
" call *%eax\n"
---
After all, I will resend clean-up patch to this ML.
--
Masami HIRAMATSU
2nd Research Dept.
Hitachi, Ltd., Systems Development Laboratory
E-mail: hiramatu@sdl.hitachi.co.jp
More information about the Systemtap
mailing list