Lines Matching refs:ta
191 trace_args_t *ta = arg;
208 if (ta->ofd != -1) {
209 pthread_mutex_lock(&ta->mtx);
210 if (ta->ptr + sizeof(ar) > sizeof(ta->buf)) {
211 ret = write(ta->ofd, ta->buf, ta->ptr);
218 ta->ptr = 0;
220 memcpy(ta->buf + ta->ptr, &ar, sizeof(ar));
221 ta->ptr += sizeof(ar);
222 pthread_mutex_unlock(&ta->mtx);
225 if (ta->awr) {
231 pthread_mutex_lock(&ta->mtx);
232 if (avl_find(ta->awr, arn, NULL) == NULL)
233 avl_add(ta->awr, arn);
234 pthread_mutex_unlock(&ta->mtx);
267 trace_args_t ta = { 0 };
269 ta.ofd = -1;
270 ta.awr = awr;
271 pthread_mutex_init(&ta.mtx, NULL);
289 ta.ofd = ofd;
346 err = dtrace_work(dtp, stdout, process_trace, NULL, &ta);
351 if (ta.ptr > 0) {
352 err = write(ta.ofd, ta.buf, ta.ptr);