Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_prof.c
Show All 12 Lines | |||||
case GPROF_GMONPARAM: | case GPROF_GMONPARAM: | ||||
return (sysctl_handle_opaque(oidp, gp, sizeof *gp, req)); | return (sysctl_handle_opaque(oidp, gp, sizeof *gp, req)); | ||||
default: | default: | ||||
return (EOPNOTSUPP); | return (EOPNOTSUPP); | ||||
} | } | ||||
/* NOTREACHED */ | /* NOTREACHED */ | ||||
} | } | ||||
static SYSCTL_NODE(_kern, KERN_PROF, prof, CTLFLAG_RW, sysctl_kern_prof, ""); | static SYSCTL_NODE(_kern, KERN_PROF, prof, | ||||
CTLFLAG_RW CTLFLAG_NEEDGIANT, sysctl_kern_prof, | |||||
""); | |||||
#endif /* GPROF */ | #endif /* GPROF */ | ||||
/* | /* | ||||
* Profiling system call. | * Profiling system call. | ||||
* | * | ||||
* The scale factor is a fixed point number with 16 bits of fraction, so that | * The scale factor is a fixed point number with 16 bits of fraction, so that | ||||
* 1.0 is represented as 0x10000. A scale factor of 0 turns off profiling. | * 1.0 is represented as 0x10000. A scale factor of 0 turns off profiling. | ||||
*/ | */ | ||||
Show All 12 Lines |