Lines Matching refs:pfd

55 pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
62 pfcheck_kaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
70 pfcheck_uaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
86 pfcheck_stack(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
93 pfcheck_time(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
101 pfcheck_str(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
123 pfcheck_wstr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
140 pfcheck_csi(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
148 pfcheck_fp(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
155 pfcheck_xint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
162 pfcheck_dint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
165 pfd->pfd_fmt[strlen(pfd->pfd_fmt) - 1] = 'i';
167 pfd->pfd_fmt[strlen(pfd->pfd_fmt) - 1] = 'u';
174 pfcheck_xshort(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
187 pfcheck_xlong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
200 pfcheck_xlonglong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
231 pfcheck_type(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
234 dnp->dn_type), pfd->pfd_conv->pfc_dctfp, pfd->pfd_conv->pfc_dtype));
240 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t unormal)
266 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
290 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
292 if (pfd->pfd_flags & DT_PFCONV_SIGNED)
293 return (pfprint_sint(dtp, fp, format, pfd, addr, size, normal));
295 return (pfprint_uint(dtp, fp, format, pfd, addr, size, normal));
301 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
327 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
355 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
363 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
371 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
408 const dt_pfargd_t *pfd, const void *vaddr, size_t size, uint64_t normal)
412 const dtrace_recdesc_t *rec = pfd->pfd_rec;
425 if (pfd->pfd_dynwidth < 0) {
426 assert(pfd->pfd_flags & DT_PFCONV_DYNWIDTH);
427 width = -pfd->pfd_dynwidth;
428 } else if (pfd->pfd_flags & DT_PFCONV_LEFT) {
429 width = pfd->pfd_dynwidth ? pfd->pfd_dynwidth : pfd->pfd_width;
459 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
501 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
516 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
536 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
568 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
580 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
592 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
607 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
625 return (pfprint_estr(dtp, fp, format, pfd, &c, 1, normal));
631 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
716 const dt_pfconv_t *pfd;
729 for (pfd = _dtrace_conversions; pfd->pfc_name != NULL; pfd++) {
739 bcopy(pfd, pfc, sizeof (dt_pfconv_t));
837 dt_pfargd_t *pfd, *nfd = NULL;
863 if ((pfd = malloc(sizeof (dt_pfargd_t))) == NULL) {
869 nfd->pfd_next = pfd;
871 pfv->pfv_argv = pfd;
873 bzero(pfd, sizeof (dt_pfargd_t));
875 nfd = pfd;
878 pfd->pfd_preflen = (size_t)(p - q);
879 pfd->pfd_prefix = q;
887 pfd->pfd_flags |= DT_PFCONV_ZPAD;
888 pfd->pfd_flags &= ~DT_PFCONV_LEFT;
896 pfd->pfd_prec = n;
898 pfd->pfd_width = n;
905 pfd->pfd_flags |= DT_PFCONV_ALT;
911 if (pfd->pfd_flags & n) {
920 pfd->pfd_flags |= n;
924 pfd->pfd_flags |= DT_PFCONV_SPOS;
928 pfd->pfd_flags |= DT_PFCONV_LEFT;
929 pfd->pfd_flags &= ~DT_PFCONV_ZPAD;
945 pfd->pfd_width = 16;
947 pfd->pfd_width = 8;
951 pfd->pfd_flags |= DT_PFCONV_AGG;
955 pfd->pfd_flags |= DT_PFCONV_GROUP;
959 pfd->pfd_flags |= DT_PFCONV_SPACE;
1000 pfd->pfd_conv = dt_pfdict_lookup(dtp, name);
1002 if (pfd->pfd_conv == NULL) {
1011 if ((pfd = malloc(sizeof (dt_pfargd_t))) == NULL) {
1017 nfd->pfd_next = pfd;
1019 pfv->pfv_argv = pfd;
1021 bzero(pfd, sizeof (dt_pfargd_t));
1024 pfd->pfd_prefix = q;
1025 pfd->pfd_preflen = strlen(q);
1034 dt_pfargd_t *pfd, *nfd;
1036 for (pfd = pfv->pfv_argv; pfd != NULL; pfd = nfd) {
1037 nfd = pfd->pfd_next;
1038 free(pfd);
1049 dt_pfargd_t *pfd = pfv->pfv_argv;
1081 for (i = 0, j = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1082 const dt_pfconv_t *pfc = pfd->pfd_conv;
1093 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1097 if (pfd->pfd_flags & DT_PFCONV_DYNPREC)
1099 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH)
1132 if (pfd->pfd_flags & DT_PFCONV_AGG) {
1164 (void) strcpy(pfd->pfd_fmt, "ll");
1167 (void) strcpy(pfd->pfd_fmt, "L");
1170 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1178 if (pfc->pfc_check(pfv, pfd, vnp) == 0) {
1292 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1306 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1320 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1328 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1336 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1346 dt_pfargd_t *pfd = pfv->pfv_argv;
1378 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1379 const dt_pfconv_t *pfc = pfd->pfd_conv;
1380 int width = pfd->pfd_width;
1381 int prec = pfd->pfd_prec;
1393 if (pfd->pfd_preflen != 0) {
1394 char *tmp = alloca(pfd->pfd_preflen + 1);
1396 bcopy(pfd->pfd_prefix, tmp, pfd->pfd_preflen);
1397 tmp[pfd->pfd_preflen] = '\0';
1430 if (pfc->pfc_print(dtp, fp, NULL, pfd, NULL, 0, 1) >= 0)
1435 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH) {
1439 pfd->pfd_dynwidth = width;
1441 pfd->pfd_dynwidth = 0;
1444 if ((pfd->pfd_flags & DT_PFCONV_DYNPREC) && dt_printf_getint(
1448 if (pfd->pfd_flags & DT_PFCONV_AGG) {
1544 if (pfd->pfd_flags & DT_PFCONV_ALT)
1546 if (pfd->pfd_flags & DT_PFCONV_ZPAD)
1548 if (width < 0 || (pfd->pfd_flags & DT_PFCONV_LEFT))
1550 if (pfd->pfd_flags & DT_PFCONV_SPOS)
1552 if (pfd->pfd_flags & DT_PFCONV_GROUP)
1554 if (pfd->pfd_flags & DT_PFCONV_SPACE)
1564 if (func == pfprint_stack && (pfd->pfd_flags & DT_PFCONV_LEFT))
1579 if (strlcpy(f, pfd->pfd_fmt, fmtsz) >= fmtsz)
1581 pfd->pfd_rec = rec;
1583 if (func(dtp, fp, format, pfd, addr, size, normal) < 0)
1666 dt_pfargd_t *pfd = pfv->pfv_argv;
1674 if (pfd->pfd_preflen != 0 &&
1675 strcmp(pfd->pfd_prefix, DT_FREOPEN_RESTORE) == 0) {
1777 if (pfd->pfd_preflen != 0 &&
1778 strcmp(pfd->pfd_prefix, DT_FREOPEN_RESTORE) == 0) {
1849 dt_pfargd_t *pfd;
1855 pfd = pfv->pfv_argv;
1857 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1858 const dt_pfconv_t *pfc = pfd->pfd_conv;
1872 (void) strcat(pfd->pfd_fmt, pfc->pfc_name);
1874 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1898 dt_pfargd_t *pfd = pfv->pfv_argv;
1911 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1912 const dt_pfconv_t *pfc = pfd->pfd_conv;
1914 int width = pfd->pfd_width;
1915 int prec = pfd->pfd_prec;
1917 if (pfd->pfd_preflen != 0) {
1918 for (j = 0; j < pfd->pfd_preflen; j++)
1919 *f++ = pfd->pfd_prefix[j];
1927 if (pfd->pfd_flags & DT_PFCONV_ALT)
1929 if (pfd->pfd_flags & DT_PFCONV_ZPAD)
1931 if (pfd->pfd_flags & DT_PFCONV_LEFT)
1933 if (pfd->pfd_flags & DT_PFCONV_SPOS)
1935 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH)
1937 if (pfd->pfd_flags & DT_PFCONV_DYNPREC) {
1941 if (pfd->pfd_flags & DT_PFCONV_GROUP)
1943 if (pfd->pfd_flags & DT_PFCONV_SPACE)
1945 if (pfd->pfd_flags & DT_PFCONV_AGG)
1964 str = pfd->pfd_fmt;