Module Name:    src
Committed By:   christos
Date:           Mon Mar  9 00:40:35 UTC 2015

Modified Files:
        src/sys/dev: lockstat.h

Log Message:
fix compression shift


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/lockstat.h

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

Modified files:

Index: src/sys/dev/lockstat.h
diff -u src/sys/dev/lockstat.h:1.11 src/sys/dev/lockstat.h:1.12
--- src/sys/dev/lockstat.h:1.11	Sun Mar  8 18:45:16 2015
+++ src/sys/dev/lockstat.h	Sun Mar  8 20:40:35 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: lockstat.h,v 1.11 2015/03/08 22:45:16 christos Exp $	*/
+/*	$NetBSD: lockstat.h,v 1.12 2015/03/09 00:40:35 christos Exp $	*/
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -198,7 +198,7 @@ extern volatile u_int	lockstat_enabled;
 
 #ifdef KDTRACE_HOOKS
 #define LS_COMPRESS(f) \
-    ((((f) & 3) | (((f) & 7) >> 6)) & (LS_NPROBES - 1))
+    ((((f) & 0x3) | (((f) & 0x700) >> 6)) & (LS_NPROBES - 1))
 #define	LS_NPROBES	0x20	/* 5 bits */
 
 extern uint32_t	lockstat_probemap[];

Reply via email to