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


On Tue, Jun 06, 2006 at 03:35:40PM +0900, Masami Hiramatsu wrote:

> +#ifdef CONFIG_PREEMPT
> +	unsigned pre_preempt_count = preempt_count();
> +#else
> +	unsigned pre_preempt_count = 1;
> +#endif
> 
>  	/*
>  	 * We don't want to be preempted for the entire
> @@ -681,6 +745,14 @@ static int __kprobes pre_kprobes_handler
>  		 */
>  		return 1;
> 
> +	if (pre_preempt_count && p->ainsn.inst_flag == INST_FLAG_BOOSTABLE &&
> +	    !p->post_handler) {

pre_preempt_count will always be one here, since 
notify_die()->atomic_notifier_call_chain()->read_rcu_lock()->preeempt_disable(). 
So currently you might be preparing for boosting even for 
preemptable code path. Can you verify this.

-Anil


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