geom_kern.c (221792) | geom_kern.c (255860) |
---|---|
1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 */ 35 36#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 */ 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/geom/geom_kern.c 221792 2011-05-11 21:47:30Z thompsa $"); | 37__FBSDID("$FreeBSD: head/sys/geom/geom_kern.c 255860 2013-09-24 20:05:16Z des $"); |
38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> 42#include <sys/eventhandler.h> 43#include <sys/malloc.h> 44#include <sys/bio.h> 45#include <sys/sysctl.h> --- 15 unchanged lines hidden (view full) --- 61static struct proc *g_proc; 62static struct thread *g_up_td; 63static struct thread *g_down_td; 64static struct thread *g_event_td; 65 66int g_debugflags; 67int g_collectstats = 1; 68int g_shutdown; | 38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> 42#include <sys/eventhandler.h> 43#include <sys/malloc.h> 44#include <sys/bio.h> 45#include <sys/sysctl.h> --- 15 unchanged lines hidden (view full) --- 61static struct proc *g_proc; 62static struct thread *g_up_td; 63static struct thread *g_down_td; 64static struct thread *g_event_td; 65 66int g_debugflags; 67int g_collectstats = 1; 68int g_shutdown; |
69int g_notaste; |
|
69 70/* 71 * G_UP and G_DOWN are the two threads which push I/O through the 72 * stack. 73 * 74 * Things are procesed in a FIFO order, but these threads could be 75 * part of I/O prioritization by deciding which bios/bioqs to service 76 * in what order. --- 126 unchanged lines hidden (view full) --- 203SYSCTL_PROC(_kern_geom, OID_AUTO, conftxt, CTLTYPE_STRING|CTLFLAG_RD, 204 0, 0, sysctl_kern_geom_conftxt, "", 205 "Dump the GEOM config in txt"); 206 207TUNABLE_INT("kern.geom.debugflags", &g_debugflags); 208SYSCTL_INT(_kern_geom, OID_AUTO, debugflags, CTLFLAG_RW, 209 &g_debugflags, 0, "Set various trace levels for GEOM debugging"); 210 | 70 71/* 72 * G_UP and G_DOWN are the two threads which push I/O through the 73 * stack. 74 * 75 * Things are procesed in a FIFO order, but these threads could be 76 * part of I/O prioritization by deciding which bios/bioqs to service 77 * in what order. --- 126 unchanged lines hidden (view full) --- 204SYSCTL_PROC(_kern_geom, OID_AUTO, conftxt, CTLTYPE_STRING|CTLFLAG_RD, 205 0, 0, sysctl_kern_geom_conftxt, "", 206 "Dump the GEOM config in txt"); 207 208TUNABLE_INT("kern.geom.debugflags", &g_debugflags); 209SYSCTL_INT(_kern_geom, OID_AUTO, debugflags, CTLFLAG_RW, 210 &g_debugflags, 0, "Set various trace levels for GEOM debugging"); 211 |
212SYSCTL_INT(_kern_geom, OID_AUTO, notaste, CTLFLAG_RW, 213 &g_notaste, 0, "Prevent GEOM tasting"); 214 |
|
211SYSCTL_INT(_kern_geom, OID_AUTO, collectstats, CTLFLAG_RW, 212 &g_collectstats, 0, 213 "Control statistics collection on GEOM providers and consumers"); 214 215SYSCTL_INT(_debug_sizeof, OID_AUTO, g_class, CTLFLAG_RD, 216 0, sizeof(struct g_class), "sizeof(struct g_class)"); 217SYSCTL_INT(_debug_sizeof, OID_AUTO, g_geom, CTLFLAG_RD, 218 0, sizeof(struct g_geom), "sizeof(struct g_geom)"); 219SYSCTL_INT(_debug_sizeof, OID_AUTO, g_provider, CTLFLAG_RD, 220 0, sizeof(struct g_provider), "sizeof(struct g_provider)"); 221SYSCTL_INT(_debug_sizeof, OID_AUTO, g_consumer, CTLFLAG_RD, 222 0, sizeof(struct g_consumer), "sizeof(struct g_consumer)"); 223SYSCTL_INT(_debug_sizeof, OID_AUTO, g_bioq, CTLFLAG_RD, 224 0, sizeof(struct g_bioq), "sizeof(struct g_bioq)"); | 215SYSCTL_INT(_kern_geom, OID_AUTO, collectstats, CTLFLAG_RW, 216 &g_collectstats, 0, 217 "Control statistics collection on GEOM providers and consumers"); 218 219SYSCTL_INT(_debug_sizeof, OID_AUTO, g_class, CTLFLAG_RD, 220 0, sizeof(struct g_class), "sizeof(struct g_class)"); 221SYSCTL_INT(_debug_sizeof, OID_AUTO, g_geom, CTLFLAG_RD, 222 0, sizeof(struct g_geom), "sizeof(struct g_geom)"); 223SYSCTL_INT(_debug_sizeof, OID_AUTO, g_provider, CTLFLAG_RD, 224 0, sizeof(struct g_provider), "sizeof(struct g_provider)"); 225SYSCTL_INT(_debug_sizeof, OID_AUTO, g_consumer, CTLFLAG_RD, 226 0, sizeof(struct g_consumer), "sizeof(struct g_consumer)"); 227SYSCTL_INT(_debug_sizeof, OID_AUTO, g_bioq, CTLFLAG_RD, 228 0, sizeof(struct g_bioq), "sizeof(struct g_bioq)"); |