kern_sx.c (58ccf5b41c6baf98367501218fda6c511941d367) | kern_sx.c (fbbb13f962e52bf547c5a901fe6fbc4390f6be54) |
---|---|
1/*- 2 * Copyright (c) 2007 Attilio Rao <attilio@freebsd.org> 3 * Copyright (c) 2001 Jason Evans <jasone@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 123 unchanged lines hidden (view full) --- 132#ifndef INVARIANTS 133#define _sx_assert(sx, what, file, line) 134#endif 135 136#ifdef ADAPTIVE_SX 137static u_int asx_retries = 10; 138static u_int asx_loops = 10000; 139SYSCTL_NODE(_debug, OID_AUTO, sx, CTLFLAG_RD, NULL, "sxlock debugging"); | 1/*- 2 * Copyright (c) 2007 Attilio Rao <attilio@freebsd.org> 3 * Copyright (c) 2001 Jason Evans <jasone@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 123 unchanged lines hidden (view full) --- 132#ifndef INVARIANTS 133#define _sx_assert(sx, what, file, line) 134#endif 135 136#ifdef ADAPTIVE_SX 137static u_int asx_retries = 10; 138static u_int asx_loops = 10000; 139SYSCTL_NODE(_debug, OID_AUTO, sx, CTLFLAG_RD, NULL, "sxlock debugging"); |
140SYSCTL_INT(_debug_sx, OID_AUTO, retries, CTLFLAG_RW, &asx_retries, 0, ""); 141SYSCTL_INT(_debug_sx, OID_AUTO, loops, CTLFLAG_RW, &asx_loops, 0, ""); | 140SYSCTL_UINT(_debug_sx, OID_AUTO, retries, CTLFLAG_RW, &asx_retries, 0, ""); 141SYSCTL_UINT(_debug_sx, OID_AUTO, loops, CTLFLAG_RW, &asx_loops, 0, ""); |
142#endif 143 144void 145assert_sx(struct lock_object *lock, int what) 146{ 147 148 sx_assert((struct sx *)lock, what); 149} --- 1012 unchanged lines hidden --- | 142#endif 143 144void 145assert_sx(struct lock_object *lock, int what) 146{ 147 148 sx_assert((struct sx *)lock, what); 149} --- 1012 unchanged lines hidden --- |