Lines Matching defs:dnp
181 dt_stmt_append(dtrace_stmtdesc_t *sdp, const dt_node_t *dnp)
195 dnerror(dnp, D_COMM_COMM, "commit( ) may "
200 dnerror(dnp, D_COMM_DREC, "commit( ) may "
208 dnerror(dnp, D_AGG_COMM, "aggregating actions "
218 dnerror(dnp, D_SPEC_SPEC, "speculate( ) may "
223 dnerror(dnp, D_SPEC_COMM, "speculate( ) may "
228 dnerror(dnp, D_SPEC_DREC, "speculate( ) may "
238 dnerror(dnp, D_AGG_SPEC, "aggregating actions "
248 dnerror(dnp, D_ACT_SPEC, "destructive actions "
253 dnerror(dnp, D_EXIT_SPEC, "exit( ) may not "
271 dnerror(dnp, D_DREC_COMM, "data-recording actions "
321 dt_action_clear(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
330 for (anp = dnp->dn_args; anp != NULL; anp = anp->dn_list)
334 dnerror(dnp, D_CLEAR_PROTO,
336 dnp->dn_ident->di_name, argc);
339 anp = dnp->dn_args;
343 dnerror(dnp, D_CLEAR_AGGARG,
346 dnp->dn_ident->di_name,
353 dnerror(dnp, D_CLEAR_AGGBAD,
363 dt_action_normalize(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
368 int denormal = (strcmp(dnp->dn_ident->di_name, "denormalize") == 0);
373 for (anp = dnp->dn_args; anp != NULL; anp = anp->dn_list)
377 dnerror(dnp, D_NORMALIZE_PROTO,
379 dnp->dn_ident->di_name, argc, denormal ? 1 : 2);
382 anp = dnp->dn_args;
386 dnerror(dnp, D_NORMALIZE_AGGARG,
389 dnp->dn_ident->di_name,
394 dnerror(dnp, D_NORMALIZE_SCALAR,
396 dnp->dn_ident->di_name);
402 dnerror(dnp, D_NORMALIZE_AGGBAD,
426 dt_action_trunc(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
435 for (anp = dnp->dn_args; anp != NULL; anp = anp->dn_list)
439 dnerror(dnp, D_TRUNC_PROTO,
441 dnp->dn_ident->di_name, argc,
445 anp = dnp->dn_args;
450 dnerror(dnp, D_TRUNC_AGGARG,
453 dnp->dn_ident->di_name,
460 dnerror(dnp, D_TRUNC_SCALAR,
462 dnp->dn_ident->di_name);
469 dnerror(dnp, D_TRUNC_AGGBAD,
492 dt_action_printa(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
502 for (anp = dnp->dn_args; anp != NULL; anp = anp->dn_list)
505 switch (dnp->dn_args->dn_kind) {
507 format = dnp->dn_args->dn_string;
508 anp = dnp->dn_args->dn_list;
513 anp = dnp->dn_args;
518 anp = dnp->dn_args;
523 dnerror(dnp, D_PRINTA_PROTO,
525 dnp->dn_ident->di_name, argc, argr);
532 dnerror(dnp, D_PRINTA_AGGARG,
535 "\t argument: %s\n", dnp->dn_ident->di_name, argr,
544 dnerror(dnp, D_PRINTA_AGGBAD,
559 yylineno = dnp->dn_line;
564 DT_PRINTF_AGGREGATION, dnp->dn_ident, 1,
578 dt_action_printflike(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp,
587 if (dnp->dn_args->dn_kind != DT_NODE_STRING) {
588 dnerror(dnp, D_PRINTF_ARG_FMT,
591 dnp->dn_ident->di_name,
592 dt_node_type_name(dnp->dn_args, n, sizeof (n)));
595 arg1 = dnp->dn_args->dn_list;
596 yylineno = dnp->dn_line;
597 str = dnp->dn_args->dn_string;
618 dnerror(dnp, D_FREOPEN_INVALID,
620 dnp->dn_ident->di_name, DT_FREOPEN_RESTORE);
630 dnp->dn_ident, 1, DTRACEACT_AGGREGATION, arg1);
663 dt_action_trace(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
668 boolean_t istrace = (dnp->dn_ident->di_id == DT_ACT_TRACE);
671 if (dt_node_is_void(dnp->dn_args)) {
672 dnerror(dnp->dn_args, istrace ? D_TRACE_VOID : D_PRINT_VOID,
676 if (dt_node_resolve(dnp->dn_args, DT_IDENT_XLPTR) != NULL) {
677 dnerror(dnp->dn_args, istrace ? D_TRACE_DYN : D_PRINT_DYN,
681 if (dnp->dn_args->dn_kind == DT_NODE_AGG) {
682 dnerror(dnp->dn_args, istrace ? D_TRACE_AGG : D_PRINT_AGG,
687 dt_cg(yypcb, dnp->dn_args);
703 if (dnp->dn_ident->di_id == DT_ACT_PRINT) {
737 dt_action_tracemem(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
741 dt_node_t *addr = dnp->dn_args;
742 dt_node_t *max = dnp->dn_args->dn_list;
815 dt_action_stack(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
818 dt_action_stack_args(dtp, ap, dnp->dn_args);
822 dt_action_ustack_args(dtrace_hdl_t *dtp, dtrace_actdesc_t *ap, dt_node_t *dnp)
826 dt_node_t *arg0 = dnp->dn_args;
829 assert(dnp->dn_ident->di_id == DT_ACT_JSTACK ||
830 dnp->dn_ident->di_id == DT_ACT_USTACK);
832 if (dnp->dn_ident->di_id == DT_ACT_JSTACK) {
841 assert(dnp->dn_ident->di_id == DT_ACT_USTACK);
877 dt_action_ustack(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
880 dt_action_ustack_args(dtp, ap, dnp);
884 dt_action_setopt(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
893 arg0 = dnp->dn_args;
918 dt_node_t *dnp, dtrace_actkind_t kind)
924 dt_cg(yypcb, dnp);
931 dt_action_symmod(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp,
935 dt_action_symmod_args(dtp, ap, dnp->dn_args, kind);
940 dt_action_ftruncate(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
956 dt_action_stop(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
966 dt_action_breakpoint(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
976 dt_action_panic(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
985 dt_action_chill(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
989 dt_cg(yypcb, dnp->dn_args);
995 dt_action_raise(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
999 dt_cg(yypcb, dnp->dn_args);
1005 dt_action_exit(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
1009 dt_cg(yypcb, dnp->dn_args);
1016 dt_action_speculate(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
1020 dt_cg(yypcb, dnp->dn_args);
1026 dt_action_commit(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
1030 dt_cg(yypcb, dnp->dn_args);
1036 dt_action_discard(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
1040 dt_cg(yypcb, dnp->dn_args);
1046 dt_compile_fun(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
1048 switch (dnp->dn_expr->dn_ident->di_id) {
1050 dt_action_breakpoint(dtp, dnp->dn_expr, sdp);
1053 dt_action_chill(dtp, dnp->dn_expr, sdp);
1056 dt_action_clear(dtp, dnp->dn_expr, sdp);
1059 dt_action_commit(dtp, dnp->dn_expr, sdp);
1062 dt_action_normalize(dtp, dnp->dn_expr, sdp);
1065 dt_action_discard(dtp, dnp->dn_expr, sdp);
1068 dt_action_exit(dtp, dnp->dn_expr, sdp);
1071 dt_action_printflike(dtp, dnp->dn_expr, sdp, DTRACEACT_FREOPEN);
1074 dt_action_ftruncate(dtp, dnp->dn_expr, sdp);
1077 dt_action_symmod(dtp, dnp->dn_expr, sdp, DTRACEACT_MOD);
1080 dt_action_normalize(dtp, dnp->dn_expr, sdp);
1083 dt_action_panic(dtp, dnp->dn_expr, sdp);
1086 dt_action_trace(dtp, dnp->dn_expr, sdp);
1089 dt_action_printa(dtp, dnp->dn_expr, sdp);
1092 dt_action_printflike(dtp, dnp->dn_expr, sdp, DTRACEACT_PRINTF);
1095 dt_action_raise(dtp, dnp->dn_expr, sdp);
1098 dt_action_setopt(dtp, dnp->dn_expr, sdp);
1101 dt_action_speculate(dtp, dnp->dn_expr, sdp);
1104 dt_action_stack(dtp, dnp->dn_expr, sdp);
1107 dt_action_stop(dtp, dnp->dn_expr, sdp);
1110 dt_action_symmod(dtp, dnp->dn_expr, sdp, DTRACEACT_SYM);
1113 dt_action_printflike(dtp, dnp->dn_expr, sdp, DTRACEACT_SYSTEM);
1116 dt_action_trace(dtp, dnp->dn_expr, sdp);
1119 dt_action_tracemem(dtp, dnp->dn_expr, sdp);
1122 dt_action_trunc(dtp, dnp->dn_expr, sdp);
1125 dt_action_symmod(dtp, dnp->dn_expr, sdp, DTRACEACT_UADDR);
1128 dt_action_symmod(dtp, dnp->dn_expr, sdp, DTRACEACT_UMOD);
1131 dt_action_symmod(dtp, dnp->dn_expr, sdp, DTRACEACT_USYM);
1135 dt_action_ustack(dtp, dnp->dn_expr, sdp);
1138 dnerror(dnp->dn_expr, D_UNKNOWN, "tracing function %s( ) is "
1139 "not yet supported\n", dnp->dn_expr->dn_ident->di_name);
1144 dt_compile_exp(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
1148 dt_cg(yypcb, dnp->dn_expr);
1155 dt_compile_agg(dtrace_hdl_t *dtp, dt_node_t *dnp, dtrace_stmtdesc_t *sdp)
1167 if (dnp->dn_aggfun == NULL) {
1168 dnerror(dnp, D_AGG_NULL, "expression has null effect: @%s\n",
1169 dnp->dn_ident->di_name);
1172 aid = dnp->dn_ident;
1173 fid = dnp->dn_aggfun->dn_ident;
1175 if (dnp->dn_aggfun->dn_args != NULL &&
1176 dt_node_is_scalar(dnp->dn_aggfun->dn_args) == 0) {
1177 dnerror(dnp->dn_aggfun, D_AGG_SCALAR, "%s( ) argument #1 must "
1188 for (anp = dnp->dn_aggtup; anp != NULL; anp = anp->dn_list) {
1250 dt_node_t *arg1 = dnp->dn_aggfun->dn_args->dn_list;
1282 dnerror(dnp, D_LQUANT_MISMATCH,
1303 dnerror(dnp, D_LQUANT_STEPLARGE,
1309 dnerror(dnp, D_LQUANT_STEPSMALL, "lquantize( ) step "
1342 dnerror(dnp, D_LQUANT_MATCHBASE, "lquantize( ) "
1349 dnerror(dnp, D_LQUANT_MATCHLIM, "lquantize( ) "
1357 dnerror(dnp, D_LQUANT_MATCHSTEP, "lquantize( ) "
1386 dt_node_t *llarg = dnp->dn_aggfun->dn_args->dn_list;
1439 dnerror(dnp, D_LLQUANT_FACTORSMALL, "llquantize( ) "
1444 dnerror(dnp, D_LLQUANT_MAGRANGE, "llquantize( ) "
1450 dnerror(dnp, D_LLQUANT_FACTORNSTEPS, "llquantize( ) "
1460 dnerror(dnp, D_LLQUANT_FACTOREVEN, "llquantize( ) "
1473 dnerror(dnp, D_LLQUANT_MAGTOOBIG, "llquantize( ) "
1504 dnerror(dnp, args[i - 1].mismatch, "llquantize( ) "
1515 incr = dnp->dn_aggfun->dn_args->dn_list;
1521 dnerror(dnp, D_PROTO_ARG, "%s( ) increment value "
1556 if (dnp->dn_aggfun->dn_args != NULL) {
1557 dt_cg(yypcb, dnp->dn_aggfun->dn_args);
1567 dt_node_t *dnp;
1592 for (dnp = cnp->dn_acts; dnp != NULL; dnp = dnp->dn_list) {
1596 switch (dnp->dn_kind) {
1598 if (dnp->dn_expr->dn_kind == DT_NODE_AGG)
1599 dt_compile_agg(dtp, dnp->dn_expr, sdp);
1601 dt_compile_exp(dtp, dnp, sdp);
1604 dt_compile_fun(dtp, dnp, sdp);
1607 dt_compile_agg(dtp, dnp, sdp);
1610 dnerror(dnp, D_UNKNOWN, "internal error -- node kind "
1611 "%u is not a valid statement\n", dnp->dn_kind);
1615 dt_stmt_append(sdp, dnp);
1634 dt_compile_xlator(dt_node_t *dnp)
1636 dt_xlator_t *dxp = dnp->dn_xlator;
1639 for (mnp = dnp->dn_members; mnp != NULL; mnp = mnp->dn_list) {
2335 dt_node_t *dnp;
2425 dt_node_t *dnp, *next_dnp;
2428 for (dnp = yypcb->pcb_root->dn_list;
2429 dnp != NULL; dnp = next_dnp) {
2431 next_dnp = dnp->dn_list;
2432 dnp->dn_list = NULL;
2434 if (dnp->dn_kind == DT_NODE_CLAUSE)
2435 dnp = dt_compile_sugar(dtp, dnp);
2437 new_list = dt_node_link(new_list, dnp);
2452 if ((dnp = yypcb->pcb_root->dn_list) == NULL &&
2459 for (; dnp != NULL; dnp = dnp->dn_list) {
2460 switch (dnp->dn_kind) {
2463 dt_printd(dnp, stderr, 0);
2464 dt_compile_clause(dtp, dnp);
2468 dt_compile_xlator(dnp);
2471 (void) dt_node_cook(dnp, DT_IDFLG_REF);