Lines Matching refs:pfc
753 dt_pfconv_t *pfc;
756 if ((pfc = malloc(sizeof (dt_pfconv_t))) == NULL) {
761 bcopy(pfd, pfc, sizeof (dt_pfconv_t));
762 h = dt_strtab_hash(pfc->pfc_name, NULL) % n;
763 pfc->pfc_next = pdi->pdi_buckets[h];
764 pdi->pdi_buckets[h] = pfc;
774 if (pfc->pfc_check == &pfcheck_type && dtrace_lookup_by_type(
775 dtp, DTRACE_OBJ_DDEFS, pfc->pfc_tstr, &dtt) != 0) {
780 pfc->pfc_dctfp = dtt.dtt_ctfp;
781 pfc->pfc_dtype = dtt.dtt_type;
788 if (pfc->pfc_check == &pfcheck_type && dtrace_lookup_by_type(
789 dtp, DTRACE_OBJ_CDEFS, pfc->pfc_tstr, &dtt) == 0) {
790 pfc->pfc_cctfp = dtt.dtt_ctfp;
791 pfc->pfc_ctype = dtt.dtt_type;
793 pfc->pfc_cctfp = pfc->pfc_dctfp;
794 pfc->pfc_ctype = pfc->pfc_dtype;
797 if (pfc->pfc_check == NULL || pfc->pfc_print == NULL ||
798 pfc->pfc_ofmt == NULL || pfc->pfc_tstr == NULL) {
803 dt_dprintf("loaded printf conversion %%%s\n", pfc->pfc_name);
813 dt_pfconv_t *pfc, *nfc;
820 for (pfc = pdi->pdi_buckets[i]; pfc != NULL; pfc = nfc) {
821 nfc = pfc->pfc_next;
822 free(pfc);
836 const dt_pfconv_t *pfc;
838 for (pfc = pdi->pdi_buckets[h]; pfc != NULL; pfc = pfc->pfc_next) {
839 if (strcmp(pfc->pfc_name, name) == 0)
843 return (pfc);
1104 const dt_pfconv_t *pfc = pfd->pfd_conv;
1111 if (pfc == NULL)
1114 if (pfc->pfc_print == &pfprint_pct) {
1115 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1130 pfc->pfc_name, dyns[dync - 1]);
1140 dyns[dync - 1], pfc->pfc_name,
1168 func, i + 1, pfc->pfc_name);
1183 if (pfc->pfc_print == &pfprint_sint ||
1184 pfc->pfc_print == &pfprint_uint ||
1185 pfc->pfc_print == &pfprint_dint) {
1188 } else if (pfc->pfc_print == &pfprint_fp) {
1193 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1201 if (pfc->pfc_check(pfv, pfd, vnp) == 0) {
1206 vname, i + 1, pfc->pfc_name, pfc->pfc_tstr,
1402 const dt_pfconv_t *pfc = pfd->pfd_conv;
1433 if (pfc == NULL && i == pfv->pfv_argc - 1)
1442 if (pfc == NULL) {
1452 if (pfc->pfc_print == &pfprint_pct) {
1453 if (pfc->pfc_print(dtp, fp, NULL, pfd, NULL, 0, 1) >= 0)
1562 func = pfc->pfc_print;
1883 const dt_pfconv_t *pfc = pfd->pfd_conv;
1885 if (pfc == NULL)
1896 if (strcmp(pfc->pfc_ofmt, "s") != 0)
1897 (void) strcat(pfd->pfd_fmt, pfc->pfc_name);
1899 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1937 const dt_pfconv_t *pfc = pfd->pfd_conv;
1947 if (pfc == NULL)
1986 if (strcmp(pfc->pfc_ofmt, "s") == 0)
1987 str = pfc->pfc_name;