Lines Matching refs:cdf
2329 ctf_dwfunc_t *cdf; in ctf_dwarf_convert_function() local
2369 if ((cdf = ctf_alloc(sizeof (ctf_dwfunc_t))) == NULL) { in ctf_dwarf_convert_function()
2373 bzero(cdf, sizeof (ctf_dwfunc_t)); in ctf_dwarf_convert_function()
2374 cdf->cdf_name = name; in ctf_dwarf_convert_function()
2378 &(cdf->cdf_fip.ctc_return), CTF_ADD_ROOT)) != 0) { in ctf_dwarf_convert_function()
2380 ctf_free(cdf, sizeof (ctf_dwfunc_t)); in ctf_dwarf_convert_function()
2385 ctf_free(cdf, sizeof (ctf_dwfunc_t)); in ctf_dwarf_convert_function()
2388 if ((cdf->cdf_fip.ctc_return = ctf_dwarf_void(cup)) == in ctf_dwarf_convert_function()
2391 ctf_free(cdf, sizeof (ctf_dwfunc_t)); in ctf_dwarf_convert_function()
2406 if ((ret = ctf_dwarf_function_count(cup, die, &cdf->cdf_fip, in ctf_dwarf_convert_function()
2409 ctf_free(cdf, sizeof (ctf_dwfunc_t)); in ctf_dwarf_convert_function()
2414 if (cdf->cdf_fip.ctc_argc != 0) { in ctf_dwarf_convert_function()
2415 uint_t argc = cdf->cdf_fip.ctc_argc; in ctf_dwarf_convert_function()
2416 cdf->cdf_argv = ctf_alloc(sizeof (ctf_id_t) * argc); in ctf_dwarf_convert_function()
2417 if (cdf->cdf_argv == NULL) { in ctf_dwarf_convert_function()
2419 ctf_free(cdf, sizeof (ctf_dwfunc_t)); in ctf_dwarf_convert_function()
2423 &cdf->cdf_fip, cdf->cdf_argv)) != 0) { in ctf_dwarf_convert_function()
2424 ctf_free(cdf->cdf_argv, sizeof (ctf_id_t) * argc); in ctf_dwarf_convert_function()
2426 ctf_free(cdf, sizeof (ctf_dwfunc_t)); in ctf_dwarf_convert_function()
2430 cdf->cdf_argv = NULL; in ctf_dwarf_convert_function()
2433 if ((ret = ctf_dwarf_isglobal(cup, die, &cdf->cdf_global)) != 0) { in ctf_dwarf_convert_function()
2434 ctf_free(cdf->cdf_argv, sizeof (ctf_id_t) * in ctf_dwarf_convert_function()
2435 cdf->cdf_fip.ctc_argc); in ctf_dwarf_convert_function()
2437 ctf_free(cdf, sizeof (ctf_dwfunc_t)); in ctf_dwarf_convert_function()
2441 ctf_list_append(&cup->cu_funcs, cdf); in ctf_dwarf_convert_function()
2669 ctf_dwfunc_t *cdf, *fuzzy = NULL; in ctf_dwarf_match_func() local
2677 for (cdf = ctf_list_next(&cup->cu_funcs); cdf != NULL; in ctf_dwarf_match_func()
2678 cdf = ctf_list_next(cdf)) { in ctf_dwarf_match_func()
2682 cdf->cdf_name, cdf->cdf_global, &is_fuzzy)) { in ctf_dwarf_match_func()
2685 fuzzy = cdf; in ctf_dwarf_match_func()
2689 return (cdf); in ctf_dwarf_match_func()
2753 ctf_dwfunc_t *cdf = ctf_dwarf_match_func(cup, file, name, in ctf_dwarf_conv_funcvars_cb() local
2755 if (cdf == NULL) in ctf_dwarf_conv_funcvars_cb()
2757 ret = ctf_add_function(cup->cu_ctfp, idx, &cdf->cdf_fip, in ctf_dwarf_conv_funcvars_cb()
2758 cdf->cdf_argv); in ctf_dwarf_conv_funcvars_cb()
3083 ctf_dwfunc_t *cdf, *ndf; in ctf_dwarf_free_die() local
3107 for (cdf = ctf_list_next(&cup->cu_funcs); cdf != NULL; cdf = ndf) { in ctf_dwarf_free_die()
3108 ndf = ctf_list_next(cdf); in ctf_dwarf_free_die()
3109 ctf_strfree(cdf->cdf_name); in ctf_dwarf_free_die()
3110 if (cdf->cdf_fip.ctc_argc != 0) { in ctf_dwarf_free_die()
3111 ctf_free(cdf->cdf_argv, in ctf_dwarf_free_die()
3112 sizeof (ctf_id_t) * cdf->cdf_fip.ctc_argc); in ctf_dwarf_free_die()
3114 ctf_free(cdf, sizeof (ctf_dwfunc_t)); in ctf_dwarf_free_die()