This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH][take2]kretprobe: kretprobe-booster against 2.6.15-rc5-mm3 for i386


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]