Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_stats.c
Show First 20 Lines • Show All 3,890 Lines • ▼ Show 20 Lines | done: | ||||
free(buf, M_TEMP); | free(buf, M_TEMP); | ||||
free(subsys_ctx, M_TEMP); | free(subsys_ctx, M_TEMP); | ||||
return (err); | return (err); | ||||
} | } | ||||
SYSCTL_NODE(_kern, OID_AUTO, stats, CTLFLAG_RW, NULL, | SYSCTL_NODE(_kern, OID_AUTO, stats, CTLFLAG_RW, NULL, | ||||
"stats(9) MIB"); | "stats(9) MIB"); | ||||
SYSCTL_PROC(_kern_stats, OID_AUTO, templates, CTLTYPE_STRING|CTLFLAG_RD, | SYSCTL_PROC(_kern_stats, OID_AUTO, templates, | ||||
CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_NEEDGIANT, | |||||
NULL, 0, stats_tpl_list_available, "A", | NULL, 0, stats_tpl_list_available, "A", | ||||
"list the name/hash of all available stats(9) templates"); | "list the name/hash of all available stats(9) templates"); | ||||
#else /* ! _KERNEL */ | #else /* ! _KERNEL */ | ||||
static void __attribute__ ((constructor)) | static void __attribute__ ((constructor)) | ||||
stats_constructor(void) | stats_constructor(void) | ||||
{ | { | ||||
Show All 12 Lines |