Lines Matching defs:th_trace
5038 th_trace_rrecord(th_trace_t *th_trace)
5043 lastref = th_trace->th_trace_lastref;
5047 th_trace->th_trace_lastref = lastref;
5048 tr_buf = &th_trace->th_trbuf[lastref];
5056 th_trace_t *th_trace = value;
5058 ASSERT(th_trace->th_refcnt == 0);
5059 kmem_free(th_trace, sizeof (*th_trace));
5118 th_trace_t *th_trace;
5131 th_trace = kmem_zalloc(sizeof (th_trace_t), KM_NOSLEEP);
5132 if (th_trace == NULL)
5135 th_trace->th_id = curthread;
5137 (mod_hash_val_t)th_trace) != 0) {
5138 kmem_free(th_trace, sizeof (th_trace_t));
5142 th_trace = (th_trace_t *)val;
5145 ASSERT(th_trace->th_refcnt >= 0 &&
5146 th_trace->th_refcnt < TR_BUF_MAX - 1);
5148 th_trace->th_refcnt++;
5149 th_trace_rrecord(th_trace);
5163 th_trace_t *th_trace;
5169 th_trace = (th_trace_t *)val;
5171 ASSERT(th_trace->th_refcnt > 0);
5172 th_trace->th_refcnt--;
5173 th_trace_rrecord(th_trace);
5186 th_trace_t *th_trace;
5194 th_trace = (th_trace_t *)val;
5196 th_trace->th_refcnt = 0;