Lines Matching refs:pfd

62 pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
69 pfcheck_kaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
77 pfcheck_uaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
93 pfcheck_stack(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
100 pfcheck_time(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
108 pfcheck_str(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
130 pfcheck_wstr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
147 pfcheck_csi(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
155 pfcheck_fp(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
162 pfcheck_xint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
169 pfcheck_dint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
172 pfd->pfd_fmt[strlen(pfd->pfd_fmt) - 1] = 'i';
174 pfd->pfd_fmt[strlen(pfd->pfd_fmt) - 1] = 'u';
181 pfcheck_xshort(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
194 pfcheck_xlong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
207 pfcheck_xlonglong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
238 pfcheck_type(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
241 dnp->dn_type), pfd->pfd_conv->pfc_dctfp, pfd->pfd_conv->pfc_dtype));
247 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t unormal)
273 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
297 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
299 if (pfd->pfd_flags & DT_PFCONV_SIGNED)
300 return (pfprint_sint(dtp, fp, format, pfd, addr, size, normal));
302 return (pfprint_uint(dtp, fp, format, pfd, addr, size, normal));
308 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
334 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
362 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
370 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
378 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
415 const dt_pfargd_t *pfd, const void *vaddr, size_t size, uint64_t normal)
419 const dtrace_recdesc_t *rec = pfd->pfd_rec;
432 if (pfd->pfd_dynwidth < 0) {
433 assert(pfd->pfd_flags & DT_PFCONV_DYNWIDTH);
434 width = -pfd->pfd_dynwidth;
435 } else if (pfd->pfd_flags & DT_PFCONV_LEFT) {
436 width = pfd->pfd_dynwidth ? pfd->pfd_dynwidth : pfd->pfd_width;
466 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
508 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
523 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
543 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
575 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
587 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
599 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
614 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
632 return (pfprint_estr(dtp, fp, format, pfd, &c, 1, normal));
638 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
723 const dt_pfconv_t *pfd;
736 for (pfd = _dtrace_conversions; pfd->pfc_name != NULL; pfd++) {
746 bcopy(pfd, pfc, sizeof (dt_pfconv_t));
844 dt_pfargd_t *pfd, *nfd = NULL;
870 if ((pfd = malloc(sizeof (dt_pfargd_t))) == NULL) {
876 nfd->pfd_next = pfd;
878 pfv->pfv_argv = pfd;
880 bzero(pfd, sizeof (dt_pfargd_t));
882 nfd = pfd;
885 pfd->pfd_preflen = (size_t)(p - q);
886 pfd->pfd_prefix = q;
894 pfd->pfd_flags |= DT_PFCONV_ZPAD;
895 pfd->pfd_flags &= ~DT_PFCONV_LEFT;
903 pfd->pfd_prec = n;
905 pfd->pfd_width = n;
912 pfd->pfd_flags |= DT_PFCONV_ALT;
918 if (pfd->pfd_flags & n) {
927 pfd->pfd_flags |= n;
931 pfd->pfd_flags |= DT_PFCONV_SPOS;
935 pfd->pfd_flags |= DT_PFCONV_LEFT;
936 pfd->pfd_flags &= ~DT_PFCONV_ZPAD;
952 pfd->pfd_width = 16;
954 pfd->pfd_width = 8;
958 pfd->pfd_flags |= DT_PFCONV_AGG;
962 pfd->pfd_flags |= DT_PFCONV_GROUP;
966 pfd->pfd_flags |= DT_PFCONV_SPACE;
1007 pfd->pfd_conv = dt_pfdict_lookup(dtp, name);
1009 if (pfd->pfd_conv == NULL) {
1018 if ((pfd = malloc(sizeof (dt_pfargd_t))) == NULL) {
1024 nfd->pfd_next = pfd;
1026 pfv->pfv_argv = pfd;
1028 bzero(pfd, sizeof (dt_pfargd_t));
1031 pfd->pfd_prefix = q;
1032 pfd->pfd_preflen = strlen(q);
1041 dt_pfargd_t *pfd, *nfd;
1043 for (pfd = pfv->pfv_argv; pfd != NULL; pfd = nfd) {
1044 nfd = pfd->pfd_next;
1045 free(pfd);
1056 dt_pfargd_t *pfd = pfv->pfv_argv;
1088 for (i = 0, j = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1089 const dt_pfconv_t *pfc = pfd->pfd_conv;
1100 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1104 if (pfd->pfd_flags & DT_PFCONV_DYNPREC)
1106 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH)
1139 if (pfd->pfd_flags & DT_PFCONV_AGG) {
1171 (void) strcpy(pfd->pfd_fmt, "ll");
1174 (void) strcpy(pfd->pfd_fmt, "L");
1177 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1185 if (pfc->pfc_check(pfv, pfd, vnp) == 0) {
1299 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1313 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1327 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1335 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1343 const dt_pfargd_t *pfd, const void *addr, size_t size, uint64_t normal)
1353 dt_pfargd_t *pfd = pfv->pfv_argv;
1385 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1386 const dt_pfconv_t *pfc = pfd->pfd_conv;
1387 int width = pfd->pfd_width;
1388 int prec = pfd->pfd_prec;
1400 if (pfd->pfd_preflen != 0) {
1401 char *tmp = alloca(pfd->pfd_preflen + 1);
1403 bcopy(pfd->pfd_prefix, tmp, pfd->pfd_preflen);
1404 tmp[pfd->pfd_preflen] = '\0';
1437 if (pfc->pfc_print(dtp, fp, NULL, pfd, NULL, 0, 1) >= 0)
1442 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH) {
1446 pfd->pfd_dynwidth = width;
1448 pfd->pfd_dynwidth = 0;
1451 if ((pfd->pfd_flags & DT_PFCONV_DYNPREC) && dt_printf_getint(
1455 if (pfd->pfd_flags & DT_PFCONV_AGG) {
1551 if (pfd->pfd_flags & DT_PFCONV_ALT)
1553 if (pfd->pfd_flags & DT_PFCONV_ZPAD)
1555 if (width < 0 || (pfd->pfd_flags & DT_PFCONV_LEFT))
1557 if (pfd->pfd_flags & DT_PFCONV_SPOS)
1559 if (pfd->pfd_flags & DT_PFCONV_GROUP)
1561 if (pfd->pfd_flags & DT_PFCONV_SPACE)
1571 if (func == pfprint_stack && (pfd->pfd_flags & DT_PFCONV_LEFT))
1586 if (strlcpy(f, pfd->pfd_fmt, fmtsz) >= fmtsz)
1588 pfd->pfd_rec = rec;
1590 if (func(dtp, fp, format, pfd, addr, size, normal) < 0)
1673 dt_pfargd_t *pfd = pfv->pfv_argv;
1681 if (pfd->pfd_preflen != 0 &&
1682 strcmp(pfd->pfd_prefix, DT_FREOPEN_RESTORE) == 0) {
1784 if (pfd->pfd_preflen != 0 &&
1785 strcmp(pfd->pfd_prefix, DT_FREOPEN_RESTORE) == 0) {
1856 dt_pfargd_t *pfd;
1862 pfd = pfv->pfv_argv;
1864 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1865 const dt_pfconv_t *pfc = pfd->pfd_conv;
1879 (void) strcat(pfd->pfd_fmt, pfc->pfc_name);
1881 (void) strcat(pfd->pfd_fmt, pfc->pfc_ofmt);
1905 dt_pfargd_t *pfd = pfv->pfv_argv;
1918 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1919 const dt_pfconv_t *pfc = pfd->pfd_conv;
1921 int width = pfd->pfd_width;
1922 int prec = pfd->pfd_prec;
1924 if (pfd->pfd_preflen != 0) {
1925 for (j = 0; j < pfd->pfd_preflen; j++)
1926 *f++ = pfd->pfd_prefix[j];
1934 if (pfd->pfd_flags & DT_PFCONV_ALT)
1936 if (pfd->pfd_flags & DT_PFCONV_ZPAD)
1938 if (pfd->pfd_flags & DT_PFCONV_LEFT)
1940 if (pfd->pfd_flags & DT_PFCONV_SPOS)
1942 if (pfd->pfd_flags & DT_PFCONV_DYNWIDTH)
1944 if (pfd->pfd_flags & DT_PFCONV_DYNPREC) {
1948 if (pfd->pfd_flags & DT_PFCONV_GROUP)
1950 if (pfd->pfd_flags & DT_PFCONV_SPACE)
1952 if (pfd->pfd_flags & DT_PFCONV_AGG)
1971 str = pfd->pfd_fmt;