unlock_kprobes(); 
static int __kprobes kprobe_handler(struct pt_regs *regs){	struct kprobe *p;	void *addr = (void *) regs->tpc;	int ret = 0;	struct kprobe_ctlblk *kcb = get_kprobe_ctlblk();	if (kprobe_running()) {		/* We *are* holding lock here, so this is safe.		 * Disarm the probe we just hit, and ignore it.		 */		p = get_kprobe(addr);		if (p) {			if (kcb->kprobe_status == KPROBE_HIT_SS) {				regs->tstate = ((regs->tstate & ~TSTATE_PIL) |					kcb->kprobe_orig_tstate_pil);				unlock_kprobes();				goto no_kprobe;			}			/* We have reentered the kprobe_handler(), since			 * another probe was hit while within the handler.			 * We here save the original kprobes variables and			 * just single step on the instruction of the new probe			 * without calling any user handlers.			 */			save_previous_kprobe(kcb);			set_current_kprobe(p, regs, kcb);			p->nmissed++;			kcb->kprobe_status = KPROBE_REENTER;			prepare_singlestep(p, regs, kcb);			return 1;		} else {			p = __get_cpu_var(current_kprobe);			if (p->break_handler && p->break_handler(p, regs))				goto ss_probe;		}		/* If it's not ours, can't be delete race, (we hold lock). */		goto no_kprobe;	}	lock_kprobes();	p = get_kprobe(addr);	if (!p) {		unlock_kprobes();		if (*(u32 *)addr != BREAKPOINT_INSTRUCTION) {			/*			 * The breakpoint instruction was removed right			 * after we hit it.  Another cpu has removed			 * either a probepoint or a debugger breakpoint			 * at this address.  In either case, no further			 * handling of this interrupt is appropriate.			 */			ret = 1;		}		/* Not one of ours: let kernel handle it */		goto no_kprobe;	}	/*	 * This preempt_disable() matches the preempt_enable_no_resched()	 * in post_kprobes_handler()	 */	preempt_disable();	set_current_kprobe(p, regs, kcb);	kcb->kprobe_status = KPROBE_HIT_ACTIVE;	if (p->pre_handler && p->pre_handler(p, regs))		return 1;ss_probe:	prepare_singlestep(p, regs, kcb);	kcb->kprobe_status = KPROBE_HIT_SS;	return 1;no_kprobe:	return ret;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/991a51d83a3d9bebfafdd1e692cf310899d60791/kprobes.c/clean/arch/sparc64/kernel/kprobes.c