Lines Matching refs:pfc
703 dt_pfconv_t *pfc; in dt_pfdict_create() local
706 if ((pfc = malloc(sizeof (dt_pfconv_t))) == NULL) { in dt_pfdict_create()
711 bcopy(pfd, pfc, sizeof (dt_pfconv_t)); in dt_pfdict_create()
712 h = dt_strtab_hash(pfc->pfc_name, NULL) % n; in dt_pfdict_create()
713 pfc->pfc_next = pdi->pdi_buckets[h]; in dt_pfdict_create()
714 pdi->pdi_buckets[h] = pfc; in dt_pfdict_create()
724 if (pfc->pfc_check == &pfcheck_type && dtrace_lookup_by_type( in dt_pfdict_create()
725 dtp, DTRACE_OBJ_DDEFS, pfc->pfc_tstr, &dtt) != 0) { in dt_pfdict_create()
730 pfc->pfc_dctfp = dtt.dtt_ctfp; in dt_pfdict_create()
731 pfc->pfc_dtype = dtt.dtt_type; in dt_pfdict_create()
738 if (pfc->pfc_check == &pfcheck_type && dtrace_lookup_by_type( in dt_pfdict_create()
739 dtp, DTRACE_OBJ_CDEFS, pfc->pfc_tstr, &dtt) == 0) { in dt_pfdict_create()
740 pfc->pfc_cctfp = dtt.dtt_ctfp; in dt_pfdict_create()
741 pfc->pfc_ctype = dtt.dtt_type; in dt_pfdict_create()
743 pfc->pfc_cctfp = pfc->pfc_dctfp; in dt_pfdict_create()
744 pfc->pfc_ctype = pfc->pfc_dtype; in dt_pfdict_create()
747 if (pfc->pfc_check == NULL || pfc->pfc_print == NULL || in dt_pfdict_create()
748 pfc->pfc_ofmt == NULL || pfc->pfc_tstr == NULL) { in dt_pfdict_create()
753 dt_dprintf("loaded printf conversion %%%s\n", pfc->pfc_name); in dt_pfdict_create()
763 dt_pfconv_t *pfc, *nfc; in dt_pfdict_destroy() local
770 for (pfc = pdi->pdi_buckets[i]; pfc != NULL; pfc = nfc) { in dt_pfdict_destroy()
771 nfc = pfc->pfc_next; in dt_pfdict_destroy()
772 free(pfc); in dt_pfdict_destroy()
786 const dt_pfconv_t *pfc; in dt_pfdict_lookup() local
788 for (pfc = pdi->pdi_buckets[h]; pfc != NULL; pfc = pfc->pfc_next) { in dt_pfdict_lookup()
789 if (strcmp(pfc->pfc_name, name) == 0) in dt_pfdict_lookup()
793 return (pfc); in dt_pfdict_lookup()
1054 const dt_pfconv_t *pfc = pfd->pfd_conv; in dt_printf_validate() local
1061 if (pfc == NULL) in dt_printf_validate()
1064 if (pfc->pfc_print == &pfprint_pct) { in dt_printf_validate()
1065 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt); in dt_printf_validate()
1080 pfc->pfc_name, dyns[dync - 1]); in dt_printf_validate()
1090 dyns[dync - 1], pfc->pfc_name, in dt_printf_validate()
1117 func, i + 1, pfc->pfc_name); in dt_printf_validate()
1132 if (pfc->pfc_print == &pfprint_sint || in dt_printf_validate()
1133 pfc->pfc_print == &pfprint_uint || in dt_printf_validate()
1134 pfc->pfc_print == &pfprint_dint) { in dt_printf_validate()
1137 } else if (pfc->pfc_print == &pfprint_fp) { in dt_printf_validate()
1142 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt); in dt_printf_validate()
1150 if (pfc->pfc_check(pfv, pfd, vnp) == 0) { in dt_printf_validate()
1155 vname, i + 1, pfc->pfc_name, pfc->pfc_tstr, in dt_printf_validate()
1350 const dt_pfconv_t *pfc = pfd->pfd_conv; in dt_printf_format() local
1379 if (pfc == NULL && i == pfv->pfv_argc - 1) in dt_printf_format()
1388 if (pfc == NULL) { in dt_printf_format()
1398 if (pfc->pfc_print == &pfprint_pct) { in dt_printf_format()
1399 if (pfc->pfc_print(dtp, fp, NULL, pfd, NULL, 0, 1) >= 0) in dt_printf_format()
1508 func = pfc->pfc_print; in dt_printf_format()
1740 const dt_pfconv_t *pfc = pfd->pfd_conv; in dtrace_printf_create() local
1742 if (pfc == NULL) in dtrace_printf_create()
1753 if (strcmp(pfc->pfc_ofmt, "s") != 0) in dtrace_printf_create()
1754 (void) strcat(pfd->pfd_fmt, pfc->pfc_name); in dtrace_printf_create()
1756 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt); in dtrace_printf_create()
1794 const dt_pfconv_t *pfc = pfd->pfd_conv; in dtrace_printf_format() local
1804 if (pfc == NULL) in dtrace_printf_format()
1843 if (strcmp(pfc->pfc_ofmt, "s") == 0) in dtrace_printf_format()
1844 str = pfc->pfc_name; in dtrace_printf_format()