Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | |||||
struct rmlock fasttrap_tp_lock; | struct rmlock fasttrap_tp_lock; | ||||
static eventhandler_tag fasttrap_thread_dtor_tag; | static eventhandler_tag fasttrap_thread_dtor_tag; | ||||
#endif | #endif | ||||
static unsigned long tpoints_hash_size = FASTTRAP_TPOINTS_DEFAULT_SIZE; | static unsigned long tpoints_hash_size = FASTTRAP_TPOINTS_DEFAULT_SIZE; | ||||
#ifdef __FreeBSD__ | #ifdef __FreeBSD__ | ||||
SYSCTL_DECL(_kern_dtrace); | SYSCTL_DECL(_kern_dtrace); | ||||
SYSCTL_NODE(_kern_dtrace, OID_AUTO, fasttrap, CTLFLAG_RD, 0, "DTrace fasttrap parameters"); | SYSCTL_NODE(_kern_dtrace, OID_AUTO, fasttrap, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"DTrace fasttrap parameters"); | |||||
SYSCTL_UINT(_kern_dtrace_fasttrap, OID_AUTO, max_probes, CTLFLAG_RWTUN, &fasttrap_max, | SYSCTL_UINT(_kern_dtrace_fasttrap, OID_AUTO, max_probes, CTLFLAG_RWTUN, &fasttrap_max, | ||||
FASTTRAP_MAX_DEFAULT, "Maximum number of fasttrap probes"); | FASTTRAP_MAX_DEFAULT, "Maximum number of fasttrap probes"); | ||||
SYSCTL_ULONG(_kern_dtrace_fasttrap, OID_AUTO, tpoints_hash_size, CTLFLAG_RDTUN, &tpoints_hash_size, | SYSCTL_ULONG(_kern_dtrace_fasttrap, OID_AUTO, tpoints_hash_size, CTLFLAG_RDTUN, &tpoints_hash_size, | ||||
FASTTRAP_TPOINTS_DEFAULT_SIZE, "Size of the tracepoint hash table"); | FASTTRAP_TPOINTS_DEFAULT_SIZE, "Size of the tracepoint hash table"); | ||||
#endif | #endif | ||||
static int | static int | ||||
fasttrap_highbit(ulong_t i) | fasttrap_highbit(ulong_t i) | ||||
▲ Show 20 Lines • Show All 2,415 Lines • Show Last 20 Lines |