Lines Matching defs:pfv

46 pfcheck_addr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
53 pfcheck_kaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
61 pfcheck_uaddr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
63 dtrace_hdl_t *dtp = pfv->pfv_dtp;
77 pfcheck_stack(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
84 pfcheck_time(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
92 pfcheck_str(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
114 pfcheck_wstr(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
131 pfcheck_csi(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
139 pfcheck_fp(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
146 pfcheck_xint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
153 pfcheck_dint(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
165 pfcheck_xshort(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
178 pfcheck_xlong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
191 pfcheck_xlonglong(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
222 pfcheck_type(dt_pfargv_t *pfv, dt_pfargd_t *pfd, dt_node_t *dnp)
808 dt_pfargv_t *pfv;
812 if ((pfv = malloc(sizeof (dt_pfargv_t))) == NULL ||
814 free(pfv);
818 pfv->pfv_format = format;
819 pfv->pfv_argv = NULL;
820 pfv->pfv_argc = 0;
821 pfv->pfv_flags = 0;
822 pfv->pfv_dtp = dtp;
834 dt_printf_destroy(pfv);
838 if (pfv->pfv_argv != NULL)
841 pfv->pfv_argv = pfd;
844 pfv->pfv_argc++;
884 pfv->pfv_argc, n ? "precision" : "width");
886 dt_printf_destroy(pfv);
905 "one '.' specified\n", pfv->pfv_argc);
907 dt_printf_destroy(pfv);
934 "positional format (%%n$)\n", pfv->pfv_argc);
936 dt_printf_destroy(pfv);
944 "with other format flags: %%%%\n", pfv->pfv_argc);
946 dt_printf_destroy(pfv);
951 "end of format string\n", pfv->pfv_argc);
953 dt_printf_destroy(pfv);
974 pfv->pfv_argc, name);
975 dt_printf_destroy(pfv);
982 dt_printf_destroy(pfv);
986 if (pfv->pfv_argv != NULL)
989 pfv->pfv_argv = pfd;
992 pfv->pfv_argc++;
998 return (pfv);
1002 dt_printf_destroy(dt_pfargv_t *pfv)
1006 for (pfd = pfv->pfv_argv; pfd != NULL; pfd = nfd) {
1011 free(pfv->pfv_format);
1012 free(pfv);
1016 dt_printf_validate(dt_pfargv_t *pfv, uint_t flags,
1019 dt_pfargd_t *pfd = pfv->pfv_argv;
1028 if (pfv->pfv_format[0] == '\0') {
1033 pfv->pfv_flags = flags;
1051 for (i = 0, j = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1148 if (pfc->pfc_check(pfv, pfd, vnp) == 0) {
1304 dt_printf_format(dtrace_hdl_t *dtp, FILE *fp, const dt_pfargv_t *pfv,
1308 dt_pfargd_t *pfd = pfv->pfv_argv;
1326 if (pfv->pfv_flags & DT_PRINTF_AGGREGATION) {
1339 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1361 if (pfv->pfv_flags & DT_PRINTF_AGGREGATION) {
1369 if (pfc == NULL && i == pfv->pfv_argc - 1)
1379 if (pfv->pfv_argc == 1)
1440 if (pfv->pfv_flags & DT_PRINTF_AGGREGATION) {
1533 if (pfv->pfv_flags & DT_PRINTF_AGGREGATION) {
1539 if (i == pfv->pfv_argc - 1)
1612 dt_pfargv_t *pfv = fmtdata;
1613 dt_pfargd_t *pfd = pfv->pfv_argv;
1717 dt_pfargv_t *pfv = dt_printf_create(dtp, s);
1721 if (pfv == NULL)
1724 pfd = pfv->pfv_argv;
1726 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {
1746 return (pfv);
1752 dt_pfargv_t *pfv = dtrace_printf_create(dtp, s);
1754 if (pfv == NULL)
1757 pfv->pfv_flags |= DT_PRINTF_AGGREGATION;
1759 return (pfv);
1766 dt_pfargv_t *pfv = fmtdata;
1767 dt_pfargd_t *pfd = pfv->pfv_argv;
1775 size_t formatlen = strlen(pfv->pfv_format) + 3 * pfv->pfv_argc + 1;
1780 for (i = 0; i < pfv->pfv_argc; i++, pfd = pfd->pfd_next) {