Lines Matching refs:pfd

48 pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
55 pfcheck_kaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
63 pfcheck_uaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
79 pfcheck_stack(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
86 pfcheck_time(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
94 pfcheck_str(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
116 pfcheck_wstr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
133 pfcheck_csi(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
141 pfcheck_fp(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
148 pfcheck_xint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
155 pfcheck_dint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
158 pfd->pfd_fmt[strlen(pfd->pfd_fmt) - 1] = 'i';
160 pfd->pfd_fmt[strlen(pfd->pfd_fmt) - 1] = 'u';
167 pfcheck_xshort(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
180 pfcheck_xlong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
193 pfcheck_xlonglong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
224 pfcheck_type(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
227 dnp->dn_type), pfd->pfd_conv->pfc_dctfp, pfd->pfd_conv->pfc_dtype));
233 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t unormal)
259 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
283 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
285 if (pfd->pfd_flags & DT_PFCONV_SIGNED)
286 return (pfprint_sint(dtp, fp, format, pfd, addr, size, normal));
288 return (pfprint_uint(dtp, fp, format, pfd, addr, size, normal));
294 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
317 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
345 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
353 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
361 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
398 const dt_pfargd_t *pfd, const void *vaddr, size_t size, uint64_t normal)
402 const dtrace_recdesc_t *rec = pfd->pfd_rec;
415 if (pfd->pfd_dynwidth < 0) {
416 assert(pfd->pfd_flags & DT_PFCONV_DYNWIDTH);
417 width = -pfd->pfd_dynwidth;
418 } else if (pfd->pfd_flags & DT_PFCONV_LEFT) {
419 width = pfd->pfd_dynwidth ? pfd->pfd_dynwidth : pfd->pfd_width;
449 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
487 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
502 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
518 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
545 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
557 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
569 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
584 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
602 return (pfprint_estr(dtp, fp, format, pfd, &c, 1, normal));
608 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
688 const dt_pfconv_t *pfd;
701 for (pfd = _dtrace_conversions; pfd->pfc_name != NULL; pfd++) {
711 bcopy(pfd, pfc, sizeof (dt_pfconv_t));
809 dt_pfargd_t *pfd, *nfd = NULL;
835 if ((pfd = malloc(sizeof (dt_pfargd_t))) == NULL) {
841 nfd->pfd_next = pfd;
843 pfv->pfv_argv = pfd;
845 bzero(pfd, sizeof (dt_pfargd_t));
847 nfd = pfd;
850 pfd->pfd_preflen = (size_t)(p - q);
851 pfd->pfd_prefix = q;
859 pfd->pfd_flags |= DT_PFCONV_ZPAD;
860 pfd->pfd_flags &= ~DT_PFCONV_LEFT;
868 pfd->pfd_prec = n;
870 pfd->pfd_width = n;
877 pfd->pfd_flags |= DT_PFCONV_ALT;
883 if (pfd->pfd_flags & n) {
892 pfd->pfd_flags |= n;
896 pfd->pfd_flags |= DT_PFCONV_SPOS;
900 pfd->pfd_flags |= DT_PFCONV_LEFT;
901 pfd->pfd_flags &= ~DT_PFCONV_ZPAD;
917 pfd->pfd_width = 16;
919 pfd->pfd_width = 8;
923 pfd->pfd_flags |= DT_PFCONV_AGG;
927 pfd->pfd_flags |= DT_PFCONV_GROUP;
931 pfd->pfd_flags |= DT_PFCONV_SPACE;
972 pfd->pfd_conv = dt_pfdict_lookup(dtp, name);
974 if (pfd->pfd_conv == NULL) {
983 if ((pfd = malloc(sizeof (dt_pfargd_t))) == NULL) {
989 nfd->pfd_next = pfd;
991 pfv->pfv_argv = pfd;
993 bzero(pfd, sizeof (dt_pfargd_t));
996 pfd->pfd_prefix = q;
997 pfd->pfd_preflen = strlen(q);
1006 dt_pfargd_t *pfd, *nfd;
1008 for (pfd = pfv->pfv_argv; pfd != NULL; pfd = nfd) {
1009 nfd = pfd->pfd_next;
1010 free(pfd);
1021 dt_pfargd_t *pfd = pfv->pfv_argv;
1053 for (i = 0, j = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1054 const dt_pfconv_t *pfc = pfd->pfd_conv;
1065 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1069 if (pfd->pfd_flags & DT_PFCONV_DYNPREC)
1071 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH)
1104 if (pfd->pfd_flags & DT_PFCONV_AGG) {
1136 (void) strcpy(pfd->pfd_fmt, "ll");
1139 (void) strcpy(pfd->pfd_fmt, "L");
1142 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1150 if (pfc->pfc_check(pfv, pfd, vnp) == 0) {
1264 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1278 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1292 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1300 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1308 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1318 dt_pfargd_t *pfd = pfv->pfv_argv;
1349 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1350 const dt_pfconv_t *pfc = pfd->pfd_conv;
1351 int width = pfd->pfd_width;
1352 int prec = pfd->pfd_prec;
1362 if (pfd->pfd_preflen != 0) {
1363 char *tmp = alloca(pfd->pfd_preflen + 1);
1365 bcopy(pfd->pfd_prefix, tmp, pfd->pfd_preflen);
1366 tmp[pfd->pfd_preflen] = '\0';
1399 if (pfc->pfc_print(dtp, fp, NULL, pfd, NULL, 0, 1) >= 0)
1404 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH) {
1408 pfd->pfd_dynwidth = width;
1410 pfd->pfd_dynwidth = 0;
1413 if ((pfd->pfd_flags & DT_PFCONV_DYNPREC) && dt_printf_getint(
1417 if (pfd->pfd_flags & DT_PFCONV_AGG) {
1512 if (pfd->pfd_flags & DT_PFCONV_ALT)
1514 if (pfd->pfd_flags & DT_PFCONV_ZPAD)
1516 if (width < 0 || (pfd->pfd_flags & DT_PFCONV_LEFT))
1518 if (pfd->pfd_flags & DT_PFCONV_SPOS)
1520 if (pfd->pfd_flags & DT_PFCONV_GROUP)
1522 if (pfd->pfd_flags & DT_PFCONV_SPACE)
1531 if (func == pfprint_stack && (pfd->pfd_flags & DT_PFCONV_LEFT))
1540 (void) strcpy(f, pfd->pfd_fmt);
1541 pfd->pfd_rec = rec;
1543 if (func(dtp, fp, format, pfd, addr, size, normal) < 0)
1626 dt_pfargd_t *pfd = pfv->pfv_argv;
1633 if (pfd->pfd_preflen != 0 &&
1634 strcmp(pfd->pfd_prefix, DT_FREOPEN_RESTORE) == 0) {
1731 dt_pfargd_t *pfd;
1737 pfd = pfv->pfv_argv;
1739 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1740 const dt_pfconv_t *pfc = pfd->pfd_conv;
1754 (void) strcat(pfd->pfd_fmt, pfc->pfc_name);
1756 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1780 dt_pfargd_t *pfd = pfv->pfv_argv;
1793 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1794 const dt_pfconv_t *pfc = pfd->pfd_conv;
1796 int width = pfd->pfd_width;
1797 int prec = pfd->pfd_prec;
1799 if (pfd->pfd_preflen != 0) {
1800 for (j = 0; j < pfd->pfd_preflen; j++)
1801 *f++ = pfd->pfd_prefix[j];
1809 if (pfd->pfd_flags & DT_PFCONV_ALT)
1811 if (pfd->pfd_flags & DT_PFCONV_ZPAD)
1813 if (pfd->pfd_flags & DT_PFCONV_LEFT)
1815 if (pfd->pfd_flags & DT_PFCONV_SPOS)
1817 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH)
1819 if (pfd->pfd_flags & DT_PFCONV_DYNPREC) {
1823 if (pfd->pfd_flags & DT_PFCONV_GROUP)
1825 if (pfd->pfd_flags & DT_PFCONV_SPACE)
1827 if (pfd->pfd_flags & DT_PFCONV_AGG)
1846 str = pfd->pfd_fmt;