Lines Matching refs:cch

116 ctf_elfconvert(ctf_convert_t *cch, int fd, Elf *elf, int *errp, char *errbuf,  in ctf_elfconvert()  argument
142 if ((cch->cch_flags & CTF_FORCE_CONVERSION) == 0) { in ctf_elfconvert()
155 err = ctf_converters[i](cch, fd, elf, &fp, errbuf, errlen); in ctf_elfconvert()
175 if (cch->cch_label != NULL) { in ctf_elfconvert()
176 if (ctf_add_label(fp, cch->cch_label, fp->ctf_typemax, 0) == in ctf_elfconvert()
195 struct ctf_convert_handle *cch; in ctf_convert_init() local
202 cch = ctf_alloc(sizeof (struct ctf_convert_handle)); in ctf_convert_init()
203 if (cch == NULL) { in ctf_convert_init()
208 cch->cch_label = NULL; in ctf_convert_init()
209 cch->cch_flags = 0; in ctf_convert_init()
210 cch->cch_nthreads = CTF_CONVERT_DEFAULT_NTHREADS; in ctf_convert_init()
211 cch->cch_batchsize = CTF_CONVERT_DEFAULT_BATCHSIZE; in ctf_convert_init()
212 cch->cch_warncb = NULL; in ctf_convert_init()
213 cch->cch_warncb_arg = NULL; in ctf_convert_init()
214 list_create(&cch->cch_nodebug, sizeof (ctf_convert_filelist_t), in ctf_convert_init()
217 return (cch); in ctf_convert_init()
228 ctf_convert_fini(ctf_convert_t *cch) in ctf_convert_fini() argument
232 ctf_strfree(cch->cch_label); in ctf_convert_fini()
233 while ((ccf = list_remove_head(&cch->cch_nodebug)) != NULL) in ctf_convert_fini()
235 list_destroy(&cch->cch_nodebug); in ctf_convert_fini()
237 ctf_free(cch, sizeof (struct ctf_convert_handle)); in ctf_convert_fini()
241 ctf_convert_set_nthreads(ctf_convert_t *cch, uint_t nthrs) in ctf_convert_set_nthreads() argument
245 cch->cch_nthreads = nthrs; in ctf_convert_set_nthreads()
250 ctf_convert_set_batchsize(ctf_convert_t *cch, uint_t bsize) in ctf_convert_set_batchsize() argument
254 cch->cch_batchsize = bsize; in ctf_convert_set_batchsize()
259 ctf_convert_set_flags(ctf_convert_t *cch, ctf_convert_flag_t flags) in ctf_convert_set_flags() argument
263 cch->cch_flags = flags; in ctf_convert_set_flags()
268 ctf_convert_set_label(ctf_convert_t *cch, const char *label) in ctf_convert_set_label() argument
279 ctf_strfree(cch->cch_label); in ctf_convert_set_label()
280 cch->cch_label = dup; in ctf_convert_set_label()
285 ctf_convert_set_warncb(ctf_convert_t *cch, ctf_convert_warn_f cb, void *arg) in ctf_convert_set_warncb() argument
287 cch->cch_warncb = cb; in ctf_convert_set_warncb()
288 cch->cch_warncb_arg = arg; in ctf_convert_set_warncb()
293 ctf_convert_add_ignore(ctf_convert_t *cch, const char *basename) in ctf_convert_add_ignore() argument
309 list_insert_tail(&cch->cch_nodebug, ccf); in ctf_convert_add_ignore()
315 ctf_fdconvert(ctf_convert_t *cch, int fd, int *errp, in ctf_fdconvert() argument
331 fp = ctf_elfconvert(cch, fd, elf, errp, errbuf, errlen); in ctf_fdconvert()