static lock_t   wrap_lock = SPIN_LOCK_UNLOCKED; 
static DEFINE_SPINLOCK(wrap_lock); 
ktrace_enter(	ktrace_t        *ktp,	void            *val0,	void            *val1,	void            *val2,	void            *val3,	void            *val4,	void            *val5,	void            *val6,	void            *val7,	void            *val8,	void            *val9,	void            *val10,	void            *val11,	void            *val12,	void            *val13,	void            *val14,	void            *val15){	static lock_t   wrap_lock = SPIN_LOCK_UNLOCKED;	unsigned long	flags;	int             index;	ktrace_entry_t  *ktep;	ASSERT(ktp != NULL);	/*	 * Grab an entry by pushing the index up to the next one.	 */	spin_lock_irqsave(&wrap_lock, flags);	index = ktp->kt_index;	if (++ktp->kt_index == ktp->kt_nentries)		ktp->kt_index = 0;	spin_unlock_irqrestore(&wrap_lock, flags);	if (!ktp->kt_rollover && index == ktp->kt_nentries - 1)		ktp->kt_rollover = 1;	ASSERT((index >= 0) && (index < ktp->kt_nentries));	ktep = &(ktp->kt_entries[index]);	ktep->val[0]  = val0;	ktep->val[1]  = val1;	ktep->val[2]  = val2;	ktep->val[3]  = val3;	ktep->val[4]  = val4;	ktep->val[5]  = val5;	ktep->val[6]  = val6;	ktep->val[7]  = val7;	ktep->val[8]  = val8;	ktep->val[9]  = val9;	ktep->val[10] = val10;	ktep->val[11] = val11;	ktep->val[12] = val12;	ktep->val[13] = val13;	ktep->val[14] = val14;	ktep->val[15] = val15;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/a9f6a0dd54efea2a5d57a27e6c232f9197c25154/ktrace.c/clean/fs/xfs/support/ktrace.c