Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hwpmc/hwpmc_mod.c
Show All 12 Lines | |||||
SYSCTL_STRING(_kern_hwpmc, OID_AUTO, cpuid, CTLFLAG_RD, | SYSCTL_STRING(_kern_hwpmc, OID_AUTO, cpuid, CTLFLAG_RD, | ||||
pmc_cpuid, 0, "cpu version string"); | pmc_cpuid, 0, "cpu version string"); | ||||
#ifdef HWPMC_DEBUG | #ifdef HWPMC_DEBUG | ||||
struct pmc_debugflags pmc_debugflags = PMC_DEBUG_DEFAULT_FLAGS; | struct pmc_debugflags pmc_debugflags = PMC_DEBUG_DEFAULT_FLAGS; | ||||
char pmc_debugstr[PMC_DEBUG_STRSIZE]; | char pmc_debugstr[PMC_DEBUG_STRSIZE]; | ||||
TUNABLE_STR(PMC_SYSCTL_NAME_PREFIX "debugflags", pmc_debugstr, | TUNABLE_STR(PMC_SYSCTL_NAME_PREFIX "debugflags", pmc_debugstr, | ||||
sizeof(pmc_debugstr)); | sizeof(pmc_debugstr)); | ||||
SYSCTL_PROC(_kern_hwpmc, OID_AUTO, debugflags, | SYSCTL_PROC(_kern_hwpmc, OID_AUTO, debugflags, | ||||
CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_NOFETCH, | CTLTYPE_STRING | CTLFLAG_RWTUN | CTLFLAG_NOFETCH | CTLFLAG_NEEDGIANT, | ||||
0, 0, pmc_debugflags_sysctl_handler, "A", "debug flags"); | 0, 0, pmc_debugflags_sysctl_handler, "A", "debug flags"); | ||||
#endif | #endif | ||||
/* | /* | ||||
* kern.hwpmc.hashrows -- determines the number of rows in the | * kern.hwpmc.hashrows -- determines the number of rows in the | ||||
* of the hash table used to look up threads | * of the hash table used to look up threads | ||||
*/ | */ | ||||
Show All 12 Lines |