Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/dev/profile/profile.c
Show All 12 Lines | |||||
}; | }; | ||||
static struct cdev *profile_cdev; | static struct cdev *profile_cdev; | ||||
static dtrace_provider_id_t profile_id; | static dtrace_provider_id_t profile_id; | ||||
static hrtime_t profile_interval_min = NANOSEC / 5000; /* 5000 hz */ | static hrtime_t profile_interval_min = NANOSEC / 5000; /* 5000 hz */ | ||||
static int profile_aframes = PROF_ARTIFICIAL_FRAMES; | static int profile_aframes = PROF_ARTIFICIAL_FRAMES; | ||||
SYSCTL_DECL(_kern_dtrace); | SYSCTL_DECL(_kern_dtrace); | ||||
SYSCTL_NODE(_kern_dtrace, OID_AUTO, profile, CTLFLAG_RD, 0, "DTrace profile parameters"); | SYSCTL_NODE(_kern_dtrace, OID_AUTO, profile, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"DTrace profile parameters"); | |||||
SYSCTL_INT(_kern_dtrace_profile, OID_AUTO, aframes, CTLFLAG_RW, &profile_aframes, | SYSCTL_INT(_kern_dtrace_profile, OID_AUTO, aframes, CTLFLAG_RW, &profile_aframes, | ||||
0, "Skipped frames for profile provider"); | 0, "Skipped frames for profile provider"); | ||||
static sbintime_t | static sbintime_t | ||||
nsec_to_sbt(hrtime_t nsec) | nsec_to_sbt(hrtime_t nsec) | ||||
{ | { | ||||
time_t sec; | time_t sec; | ||||
Show All 12 Lines |