Lines Matching defs:pfc
731 dt_pfconv_t *pfc;
734 if ((pfc = malloc(sizeof (dt_pfconv_t))) == NULL) {
739 bcopy(pfd, pfc, sizeof (dt_pfconv_t));
740 h = dt_strtab_hash(pfc->pfc_name, NULL) % n;
741 pfc->pfc_next = pdi->pdi_buckets[h];
742 pdi->pdi_buckets[h] = pfc;
752 if (pfc->pfc_check == &pfcheck_type && dtrace_lookup_by_type(
753 dtp, DTRACE_OBJ_DDEFS, pfc->pfc_tstr, &dtt) != 0) {
758 pfc->pfc_dctfp = dtt.dtt_ctfp;
759 pfc->pfc_dtype = dtt.dtt_type;
766 if (pfc->pfc_check == &pfcheck_type && dtrace_lookup_by_type(
767 dtp, DTRACE_OBJ_CDEFS, pfc->pfc_tstr, &dtt) == 0) {
768 pfc->pfc_cctfp = dtt.dtt_ctfp;
769 pfc->pfc_ctype = dtt.dtt_type;
771 pfc->pfc_cctfp = pfc->pfc_dctfp;
772 pfc->pfc_ctype = pfc->pfc_dtype;
775 if (pfc->pfc_check == NULL || pfc->pfc_print == NULL ||
776 pfc->pfc_ofmt == NULL || pfc->pfc_tstr == NULL) {
781 dt_dprintf("loaded printf conversion %%%s\n", pfc->pfc_name);
791 dt_pfconv_t *pfc, *nfc;
798 for (pfc = pdi->pdi_buckets[i]; pfc != NULL; pfc = nfc) {
799 nfc = pfc->pfc_next;
800 free(pfc);
814 const dt_pfconv_t *pfc;
816 for (pfc = pdi->pdi_buckets[h]; pfc != NULL; pfc = pfc->pfc_next) {
817 if (strcmp(pfc->pfc_name, name) == 0)
821 return (pfc);
1082 const dt_pfconv_t *pfc = pfd->pfd_conv;
1089 if (pfc == NULL)
1092 if (pfc->pfc_print == &pfprint_pct) {
1093 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1108 pfc->pfc_name, dyns[dync - 1]);
1118 dyns[dync - 1], pfc->pfc_name,
1145 func, i + 1, pfc->pfc_name);
1160 if (pfc->pfc_print == &pfprint_sint ||
1161 pfc->pfc_print == &pfprint_uint ||
1162 pfc->pfc_print == &pfprint_dint) {
1165 } else if (pfc->pfc_print == &pfprint_fp) {
1170 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1178 if (pfc->pfc_check(pfv, pfd, vnp) == 0) {
1183 vname, i + 1, pfc->pfc_name, pfc->pfc_tstr,
1379 const dt_pfconv_t *pfc = pfd->pfd_conv;
1410 if (pfc == NULL && i == pfv->pfv_argc - 1)
1419 if (pfc == NULL) {
1429 if (pfc->pfc_print == &pfprint_pct) {
1430 if (pfc->pfc_print(dtp, fp, NULL, pfd, NULL, 0, 1) >= 0)
1539 func = pfc->pfc_print;
1858 const dt_pfconv_t *pfc = pfd->pfd_conv;
1860 if (pfc == NULL)
1871 if (strcmp(pfc->pfc_ofmt, "s") != 0)
1872 (void) strcat(pfd->pfd_fmt, pfc->pfc_name);
1874 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1912 const dt_pfconv_t *pfc = pfd->pfd_conv;
1922 if (pfc == NULL)
1961 if (strcmp(pfc->pfc_ofmt, "s") == 0)
1962 str = pfc->pfc_name;