[PATCH]kprobe booster for IA64
Keshavamurthy Anil S
anil.s.keshavamurthy@intel.com
Thu Jun 29 03:16:00 GMT 2006
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
More information about the Systemtap
mailing list