geom_kern.c (ef607a6aa3e2ac6fef93a68a5804b6799c516428) | geom_kern.c (1b2cb2b3f048a68ee632bc586642e3bc86e6bbe4) |
---|---|
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 --- 52 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; | 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 --- 52 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)"); |