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: [PATCH]kprobe booster for IA64


Hi,

Masami Hiramatsu wrote:
>  /*
> + * In this function, we check whether the target bundle is possible
> + * to modify IP and whether it may occur an exception.
> + */
> +static __always_inline int can_boost(uint template, unsigned long addr,
> +				     uint slot)
> +{
> +	addr &= ~0xFULL;
> +	do {
> +		if (search_exception_tables(addr + (++slot)))	/* we must check the next slot. */

I mixed up the trap with other faults. We must check the fault
probability from the target slot. So I must change it to ;

> +		if (search_exception_tables(addr + (slot++)))

Thanks,

-- 
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]