Changeset View
Changeset View
Standalone View
Standalone View
head/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c
Show First 20 Lines • Show All 1,083 Lines • ▼ Show 20 Lines | if (p != NULL) { | ||||
/* | /* | ||||
* Decrement the count of the number of tracepoints active | * Decrement the count of the number of tracepoints active | ||||
* in the victim process. | * in the victim process. | ||||
*/ | */ | ||||
#ifdef illumos | #ifdef illumos | ||||
ASSERT(p->p_proc_flag & P_PR_LOCK); | ASSERT(p->p_proc_flag & P_PR_LOCK); | ||||
#endif | #endif | ||||
p->p_dtrace_count--; | p->p_dtrace_count--; | ||||
atomic_add_rel_64(&p->p_fasttrap_tp_gen, 1); | |||||
} | } | ||||
/* | /* | ||||
* Remove the probe from the hash table of active tracepoints. | * Remove the probe from the hash table of active tracepoints. | ||||
*/ | */ | ||||
mutex_enter(&bucket->ftb_mtx); | mutex_enter(&bucket->ftb_mtx); | ||||
pp = (fasttrap_tracepoint_t **)&bucket->ftb_data; | pp = (fasttrap_tracepoint_t **)&bucket->ftb_data; | ||||
ASSERT(*pp != NULL); | ASSERT(*pp != NULL); | ||||
▲ Show 20 Lines • Show All 1,592 Lines • Show Last 20 Lines |