[BACK]Return to lockstat.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/lockstat.c between version 1.8 and 1.9

version 1.8, 2007/03/04 06:01:42 version 1.9, 2007/06/15 20:17:07
Line 1 
Line 1 
 /*      $NetBSD$        */  /*      $NetBSD$        */
   
 /*-  /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.   * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc.
  * All rights reserved.   * All rights reserved.
  *   *
  * This code is derived from software contributed to The NetBSD Foundation   * This code is derived from software contributed to The NetBSD Foundation
Line 381  lockstat_event(uintptr_t lock, uintptr_t
Line 381  lockstat_event(uintptr_t lock, uintptr_t
         lc = curcpu()->ci_lockstat;          lc = curcpu()->ci_lockstat;
         ll = &lc->lc_hash[LOCKSTAT_HASH(lock ^ callsite)];          ll = &lc->lc_hash[LOCKSTAT_HASH(lock ^ callsite)];
         event = (flags & LB_EVENT_MASK) - 1;          event = (flags & LB_EVENT_MASK) - 1;
         s = spllock();          s = splhigh();
   
         LIST_FOREACH(lb, ll, lb_chain.list) {          LIST_FOREACH(lb, ll, lb_chain.list) {
                 if (lb->lb_lock == lock && lb->lb_callsite == callsite)                  if (lb->lb_lock == lock && lb->lb_callsite == callsite)

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

CVSweb <webmaster@jp.NetBSD.org>