Lines Matching full:pfd

62 pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)  in pfcheck_addr()  argument
69 pfcheck_kaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_kaddr() argument
77 pfcheck_uaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_uaddr() argument
93 pfcheck_stack(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_stack() argument
100 pfcheck_time(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_time() argument
108 pfcheck_str(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_str() argument
130 pfcheck_wstr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_wstr() argument
147 pfcheck_csi(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_csi() argument
155 pfcheck_fp(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_fp() argument
162 pfcheck_xint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_xint() argument
169 pfcheck_dint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_dint() argument
172 pfd->pfd_fmt[strlen(pfd->pfd_fmt) - 1] = 'i'; in pfcheck_dint()
174 pfd->pfd_fmt[strlen(pfd->pfd_fmt) - 1] = 'u'; in pfcheck_dint()
181 pfcheck_xshort(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_xshort() argument
194 pfcheck_xlong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_xlong() argument
207 pfcheck_xlonglong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_xlonglong() argument
238 pfcheck_type(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp) in pfcheck_type() argument
241 dnp->dn_type), pfd->pfd_conv->pfc_dctfp, pfd->pfd_conv->pfc_dtype)); in pfcheck_type()
247 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t unormal) in pfprint_sint() argument
273 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_uint() argument
297 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_dint() argument
299 if (pfd->pfd_flags & DT_PFCONV_SIGNED) in pfprint_dint()
300 return (pfprint_sint(dtp, fp, format, pfd, addr, size, normal)); in pfprint_dint()
302 return (pfprint_uint(dtp, fp, format, pfd, addr, size, normal)); in pfprint_dint()
308 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_fp() argument
333 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_addr() argument
361 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_mod() argument
369 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_umod() argument
377 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_uaddr() argument
414 const dt_pfargd_t *pfd, const void *vaddr, size_t size, uint64_t normal) in pfprint_stack() argument
418 const dtrace_recdesc_t *rec = pfd->pfd_rec; in pfprint_stack()
431 if (pfd->pfd_dynwidth < 0) { in pfprint_stack()
432 assert(pfd->pfd_flags & DT_PFCONV_DYNWIDTH); in pfprint_stack()
433 width = -pfd->pfd_dynwidth; in pfprint_stack()
434 } else if (pfd->pfd_flags & DT_PFCONV_LEFT) { in pfprint_stack()
435 width = pfd->pfd_dynwidth ? pfd->pfd_dynwidth : pfd->pfd_width; in pfprint_stack()
465 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_time() argument
507 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_time822() argument
522 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_port() argument
542 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_inetaddr() argument
574 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_cstr() argument
586 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_wstr() argument
598 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_estr() argument
613 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_echr() argument
631 return (pfprint_estr(dtp, fp, format, pfd, &c, 1, normal)); in pfprint_echr()
637 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_pct() argument
722 const dt_pfconv_t *pfd; in dt_pfdict_create() local
735 for (pfd = _dtrace_conversions; pfd->pfc_name != NULL; pfd++) { in dt_pfdict_create()
745 bcopy(pfd, pfc, sizeof (dt_pfconv_t)); in dt_pfdict_create()
843 dt_pfargd_t *pfd, *nfd = NULL; in dt_printf_create() local
869 if ((pfd = malloc(sizeof (dt_pfargd_t))) == NULL) { in dt_printf_create()
875 nfd->pfd_next = pfd; in dt_printf_create()
877 pfv->pfv_argv = pfd; in dt_printf_create()
879 bzero(pfd, sizeof (dt_pfargd_t)); in dt_printf_create()
881 nfd = pfd; in dt_printf_create()
884 pfd->pfd_preflen = (size_t)(p - q); in dt_printf_create()
885 pfd->pfd_prefix = q; in dt_printf_create()
893 pfd->pfd_flags |= DT_PFCONV_ZPAD; in dt_printf_create()
894 pfd->pfd_flags &= ~DT_PFCONV_LEFT; in dt_printf_create()
902 pfd->pfd_prec = n; in dt_printf_create()
904 pfd->pfd_width = n; in dt_printf_create()
911 pfd->pfd_flags |= DT_PFCONV_ALT; in dt_printf_create()
917 if (pfd->pfd_flags & n) { in dt_printf_create()
926 pfd->pfd_flags |= n; in dt_printf_create()
930 pfd->pfd_flags |= DT_PFCONV_SPOS; in dt_printf_create()
934 pfd->pfd_flags |= DT_PFCONV_LEFT; in dt_printf_create()
935 pfd->pfd_flags &= ~DT_PFCONV_ZPAD; in dt_printf_create()
951 pfd->pfd_width = 16; in dt_printf_create()
953 pfd->pfd_width = 8; in dt_printf_create()
957 pfd->pfd_flags |= DT_PFCONV_AGG; in dt_printf_create()
961 pfd->pfd_flags |= DT_PFCONV_GROUP; in dt_printf_create()
965 pfd->pfd_flags |= DT_PFCONV_SPACE; in dt_printf_create()
1006 pfd->pfd_conv = dt_pfdict_lookup(dtp, name); in dt_printf_create()
1008 if (pfd->pfd_conv == NULL) { in dt_printf_create()
1017 if ((pfd = malloc(sizeof (dt_pfargd_t))) == NULL) { in dt_printf_create()
1023 nfd->pfd_next = pfd; in dt_printf_create()
1025 pfv->pfv_argv = pfd; in dt_printf_create()
1027 bzero(pfd, sizeof (dt_pfargd_t)); in dt_printf_create()
1030 pfd->pfd_prefix = q; in dt_printf_create()
1031 pfd->pfd_preflen = strlen(q); in dt_printf_create()
1040 dt_pfargd_t *pfd, *nfd; in dt_printf_destroy() local
1042 for (pfd = pfv->pfv_argv; pfd != NULL; pfd = nfd) { in dt_printf_destroy()
1043 nfd = pfd->pfd_next; in dt_printf_destroy()
1044 free(pfd); in dt_printf_destroy()
1055 dt_pfargd_t *pfd = pfv->pfv_argv; in dt_printf_validate() local
1087 for (i = 0, j = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) { in dt_printf_validate()
1088 const dt_pfconv_t *pfc = pfd->pfd_conv; in dt_printf_validate()
1099 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt); in dt_printf_validate()
1103 if (pfd->pfd_flags & DT_PFCONV_DYNPREC) in dt_printf_validate()
1105 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH) in dt_printf_validate()
1138 if (pfd->pfd_flags & DT_PFCONV_AGG) { in dt_printf_validate()
1170 (void) strcpy(pfd->pfd_fmt, "ll"); in dt_printf_validate()
1173 (void) strcpy(pfd->pfd_fmt, "L"); 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()
1298 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_average() argument
1312 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_stddev() argument
1326 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_quantize() argument
1334 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_lquantize() argument
1342 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal) in pfprint_llquantize() argument
1352 dt_pfargd_t *pfd = pfv->pfv_argv; in dt_printf_format() local
1384 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) { in dt_printf_format()
1385 const dt_pfconv_t *pfc = pfd->pfd_conv; in dt_printf_format()
1386 int width = pfd->pfd_width; in dt_printf_format()
1387 int prec = pfd->pfd_prec; in dt_printf_format()
1399 if (pfd->pfd_preflen != 0) { in dt_printf_format()
1400 char *tmp = alloca(pfd->pfd_preflen + 1); in dt_printf_format()
1402 bcopy(pfd->pfd_prefix, tmp, pfd->pfd_preflen); in dt_printf_format()
1403 tmp[pfd->pfd_preflen] = '\0'; in dt_printf_format()
1436 if (pfc->pfc_print(dtp, fp, NULL, pfd, NULL, 0, 1) >= 0) in dt_printf_format()
1441 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH) { in dt_printf_format()
1445 pfd->pfd_dynwidth = width; in dt_printf_format()
1447 pfd->pfd_dynwidth = 0; in dt_printf_format()
1450 if ((pfd->pfd_flags & DT_PFCONV_DYNPREC) && dt_printf_getint( in dt_printf_format()
1454 if (pfd->pfd_flags & DT_PFCONV_AGG) { in dt_printf_format()
1550 if (pfd->pfd_flags & DT_PFCONV_ALT) in dt_printf_format()
1552 if (pfd->pfd_flags & DT_PFCONV_ZPAD) in dt_printf_format()
1554 if (width < 0 || (pfd->pfd_flags & DT_PFCONV_LEFT)) in dt_printf_format()
1556 if (pfd->pfd_flags & DT_PFCONV_SPOS) in dt_printf_format()
1558 if (pfd->pfd_flags & DT_PFCONV_GROUP) in dt_printf_format()
1560 if (pfd->pfd_flags & DT_PFCONV_SPACE) in dt_printf_format()
1570 if (func == pfprint_stack && (pfd->pfd_flags & DT_PFCONV_LEFT)) in dt_printf_format()
1585 if (strlcpy(f, pfd->pfd_fmt, fmtsz) >= fmtsz) in dt_printf_format()
1587 pfd->pfd_rec = rec; in dt_printf_format()
1589 if (func(dtp, fp, format, pfd, addr, size, normal) < 0) in dt_printf_format()
1672 dt_pfargd_t *pfd = pfv->pfv_argv; in dtrace_freopen() local
1680 if (pfd->pfd_preflen != 0 && in dtrace_freopen()
1681 strcmp(pfd->pfd_prefix, DT_FREOPEN_RESTORE) == 0) { in dtrace_freopen()
1783 if (pfd->pfd_preflen != 0 && in dtrace_freopen()
1784 strcmp(pfd->pfd_prefix, DT_FREOPEN_RESTORE) == 0) { in dtrace_freopen()
1855 dt_pfargd_t *pfd; in dtrace_printf_create() local
1861 pfd = pfv->pfv_argv; in dtrace_printf_create()
1863 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) { in dtrace_printf_create()
1864 const dt_pfconv_t *pfc = pfd->pfd_conv; 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()
1904 dt_pfargd_t *pfd = pfv->pfv_argv; in dtrace_printf_format() local
1917 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) { in dtrace_printf_format()
1918 const dt_pfconv_t *pfc = pfd->pfd_conv; in dtrace_printf_format()
1920 int width = pfd->pfd_width; in dtrace_printf_format()
1921 int prec = pfd->pfd_prec; in dtrace_printf_format()
1923 if (pfd->pfd_preflen != 0) { in dtrace_printf_format()
1924 for (j = 0; j < pfd->pfd_preflen; j++) in dtrace_printf_format()
1925 *f++ = pfd->pfd_prefix[j]; in dtrace_printf_format()
1933 if (pfd->pfd_flags & DT_PFCONV_ALT) in dtrace_printf_format()
1935 if (pfd->pfd_flags & DT_PFCONV_ZPAD) in dtrace_printf_format()
1937 if (pfd->pfd_flags & DT_PFCONV_LEFT) in dtrace_printf_format()
1939 if (pfd->pfd_flags & DT_PFCONV_SPOS) in dtrace_printf_format()
1941 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH) in dtrace_printf_format()
1943 if (pfd->pfd_flags & DT_PFCONV_DYNPREC) { in dtrace_printf_format()
1947 if (pfd->pfd_flags & DT_PFCONV_GROUP) in dtrace_printf_format()
1949 if (pfd->pfd_flags & DT_PFCONV_SPACE) in dtrace_printf_format()
1951 if (pfd->pfd_flags & DT_PFCONV_AGG) in dtrace_printf_format()
1970 str = pfd->pfd_fmt; in dtrace_printf_format()