Lines Matching full:pfc

737 		dt_pfconv_t *pfc;  in dt_pfdict_create()  local
740 if ((pfc = malloc(sizeof (dt_pfconv_t))) == NULL) { in dt_pfdict_create()
745 bcopy(pfd, pfc, sizeof (dt_pfconv_t)); in dt_pfdict_create()
746 h = dt_strtab_hash(pfc->pfc_name, NULL) % n; in dt_pfdict_create()
747 pfc->pfc_next = pdi->pdi_buckets[h]; in dt_pfdict_create()
748 pdi->pdi_buckets[h] = pfc; in dt_pfdict_create()
758 if (pfc->pfc_check == &pfcheck_type && dtrace_lookup_by_type( in dt_pfdict_create()
759 dtp, DTRACE_OBJ_DDEFS, pfc->pfc_tstr, &dtt) != 0) { in dt_pfdict_create()
764 pfc->pfc_dctfp = dtt.dtt_ctfp; in dt_pfdict_create()
765 pfc->pfc_dtype = dtt.dtt_type; in dt_pfdict_create()
772 if (pfc->pfc_check == &pfcheck_type && dtrace_lookup_by_type( in dt_pfdict_create()
773 dtp, DTRACE_OBJ_CDEFS, pfc->pfc_tstr, &dtt) == 0) { in dt_pfdict_create()
774 pfc->pfc_cctfp = dtt.dtt_ctfp; in dt_pfdict_create()
775 pfc->pfc_ctype = dtt.dtt_type; in dt_pfdict_create()
777 pfc->pfc_cctfp = pfc->pfc_dctfp; in dt_pfdict_create()
778 pfc->pfc_ctype = pfc->pfc_dtype; in dt_pfdict_create()
781 if (pfc->pfc_check == NULL || pfc->pfc_print == NULL || in dt_pfdict_create()
782 pfc->pfc_ofmt == NULL || pfc->pfc_tstr == NULL) { in dt_pfdict_create()
787 dt_dprintf("loaded printf conversion %%%s\n", pfc->pfc_name); in dt_pfdict_create()
797 dt_pfconv_t *pfc, *nfc; in dt_pfdict_destroy() local
804 for (pfc = pdi->pdi_buckets[i]; pfc != NULL; pfc = nfc) { in dt_pfdict_destroy()
805 nfc = pfc->pfc_next; in dt_pfdict_destroy()
806 free(pfc); in dt_pfdict_destroy()
820 const dt_pfconv_t *pfc; in dt_pfdict_lookup() local
822 for (pfc = pdi->pdi_buckets[h]; pfc != NULL; pfc = pfc->pfc_next) { in dt_pfdict_lookup()
823 if (strcmp(pfc->pfc_name, name) == 0) in dt_pfdict_lookup()
827 return (pfc); in dt_pfdict_lookup()
1088 const dt_pfconv_t *pfc = pfd->pfd_conv; in dt_printf_validate() local
1095 if (pfc == NULL) in dt_printf_validate()
1098 if (pfc->pfc_print == &pfprint_pct) { in dt_printf_validate()
1099 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt); in dt_printf_validate()
1114 pfc->pfc_name, dyns[dync - 1]); in dt_printf_validate()
1124 dyns[dync - 1], pfc->pfc_name, in dt_printf_validate()
1151 func, i + 1, pfc->pfc_name); in dt_printf_validate()
1166 if (pfc->pfc_print == &pfprint_sint || in dt_printf_validate()
1167 pfc->pfc_print == &pfprint_uint || in dt_printf_validate()
1168 pfc->pfc_print == &pfprint_dint) { in dt_printf_validate()
1171 } else if (pfc->pfc_print == &pfprint_fp) { in dt_printf_validate()
1176 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt); in dt_printf_validate()
1184 if (pfc->pfc_check(pfv, pfd, vnp) == 0) { in dt_printf_validate()
1189 vname, i + 1, pfc->pfc_name, pfc->pfc_tstr, in dt_printf_validate()
1385 const dt_pfconv_t *pfc = pfd->pfd_conv; in dt_printf_format() local
1416 if (pfc == NULL && i == pfv->pfv_argc - 1) in dt_printf_format()
1425 if (pfc == NULL) { in dt_printf_format()
1435 if (pfc->pfc_print == &pfprint_pct) { in dt_printf_format()
1436 if (pfc->pfc_print(dtp, fp, NULL, pfd, NULL, 0, 1) >= 0) in dt_printf_format()
1545 func = pfc->pfc_print; in dt_printf_format()
1864 const dt_pfconv_t *pfc = pfd->pfd_conv; in dtrace_printf_create() local
1866 if (pfc == NULL) in dtrace_printf_create()
1877 if (strcmp(pfc->pfc_ofmt, "s") != 0) in dtrace_printf_create()
1878 (void) strcat(pfd->pfd_fmt, pfc->pfc_name); in dtrace_printf_create()
1880 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt); in dtrace_printf_create()
1918 const dt_pfconv_t *pfc = pfd->pfd_conv; in dtrace_printf_format() local
1928 if (pfc == NULL) in dtrace_printf_format()
1967 if (strcmp(pfc->pfc_ofmt, "s") == 0) in dtrace_printf_format()
1968 str = pfc->pfc_name; in dtrace_printf_format()