Lines Matching refs:u

79 	if (lhs->u.name.s != rhs->u.name.s)  in begins_with()
82 if (lhs->u.name.child && lhs->u.name.child->t == T_NUM) { in begins_with()
83 lnum = (int)lhs->u.name.child->u.ull; in begins_with()
84 } else if (lhs->u.name.child && lhs->u.name.child->t == T_NAME) { in begins_with()
85 iterinfop = lut_lookup(ex, (void *)lhs->u.name.child->u.name.s, in begins_with()
95 if (rhs->u.name.child && rhs->u.name.child->t == T_NUM) { in begins_with()
96 rnum = (int)rhs->u.name.child->u.ull; in begins_with()
97 } else if (rhs->u.name.child && rhs->u.name.child->t == T_NAME) { in begins_with()
98 iterinfop = lut_lookup(ex, (void *)rhs->u.name.child->u.name.s, in begins_with()
111 return (begins_with(lhs->u.name.next, rhs->u.name.next, ex)); in begins_with()
124 const char *funcname = funcnp->u.func.s; in eval_getname()
129 else if (np->t == T_FUNC && np->u.func.s == L_fru) in eval_getname()
130 nodep = eval_fru(np->u.func.arglist); in eval_getname()
131 else if (np->t == T_FUNC && np->u.func.s == L_asru) in eval_getname()
132 nodep = eval_asru(np->u.func.arglist); in eval_getname()
176 if (!eval_cat(np->u.expr.left, ex, events, globals, croot, in eval_cat()
179 if (!eval_cat(np->u.expr.right, ex, events, globals, croot, in eval_cat()
215 const char *funcname = funcnp->u.func.s; in eval_func()
230 lhs = eval_getname(funcnp, ex, events, np->u.expr.left, globals, in eval_func()
232 rhs = eval_getname(funcnp, ex, events, np->u.expr.right, in eval_func()
258 ASSERT(np->u.expr.right->t == T_QUOTE); in eval_func()
260 nodep = eval_getname(funcnp, ex, events, np->u.expr.left, in eval_func()
269 if (nodep->u.name.last->u.name.cp != NULL) { in eval_func()
270 cp = nodep->u.name.last->u.name.cp; in eval_func()
294 s = config_getprop(cp, np->u.expr.right->u.quote.s); in eval_func()
295 if (s == NULL && strcmp(np->u.expr.right->u.quote.s, in eval_func()
302 funcname, np->u.expr.right->u.quote.s); in eval_func()
325 np->u.expr.right->u.quote.s, in eval_func()
341 lhs = eval_getname(funcnp, ex, events, np->u.expr.left, globals, in eval_func()
343 rhs = eval_getname(funcnp, ex, events, np->u.expr.right, in eval_func()
354 if (lhs->u.name.last->u.name.cp != NULL) in eval_func()
355 cp[0] = lhs->u.name.last->u.name.cp; in eval_func()
361 if (rhs->u.name.last->u.name.cp != NULL) in eval_func()
362 cp[1] = rhs->u.name.last->u.name.cp; in eval_func()
420 if (nodep->u.name.last->u.name.cp != NULL) { in eval_func()
421 cp = nodep->u.name.last->u.name.cp; in eval_func()
458 if (nodep->u.name.last->u.name.cp != NULL) { in eval_func()
459 cp = nodep->u.name.last->u.name.cp; in eval_func()
495 if (nodep->u.name.last->u.name.cp != NULL) { in eval_func()
496 cp = nodep->u.name.last->u.name.cp; in eval_func()
513 nodep = eval_getname(funcnp, ex, events, np->u.expr.left, in eval_func()
528 np->u.expr.right->u.quote.s); in eval_func()
539 strcmp(np->u.expr.right->u.quote.s, "") == 0 ? in eval_func()
540 NULL : (char *)np->u.expr.right->u.quote.s); in eval_func()
552 nodep = np->u.event.epname; in eval_func()
562 ent.ename = np->u.event.ename->u.name.s; in eval_func()
593 (void *)np->u.globid.s, NULL) != NULL); in eval_func()
599 "payloadprop(\"%s\") ", np->u.quote.s); in eval_func()
645 ASSERTinfo(np->u.expr.left->t == T_QUOTE, in eval_func()
646 ptree_nodetype2str(np->u.expr.left->t)); in eval_func()
653 arrowp->tail->myevent->enode->u.event.ename->u.name.s, in eval_func()
654 np->u.expr.left->u.quote.s); in eval_func()
655 ptree_name_iter(O_ALTFP|O_VERB2|O_NONL, np->u.expr.right); in eval_func()
665 (void *)np->u.expr.left->u.quote.s, NULL)) == NULL) { in eval_func()
670 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_func()
695 (void *)np->u.expr.left->u.quote.s, in eval_func()
744 flt->enode->u.event.ename->u.name.s); in eval_func()
753 flt->enode->u.event.ename->u.name.s); in eval_func()
759 flt->enode->u.event.ename->u.name.s); in eval_func()
804 "payloadprop_defined(\"%s\") ", np->u.quote.s); in eval_func()
828 ASSERTinfo(np->u.expr.left->t == T_QUOTE, in eval_func()
829 ptree_nodetype2str(np->u.expr.left->t)); in eval_func()
833 np->u.expr.left->u.quote.s); in eval_func()
834 ptree_name_iter(O_ALTFP|O_VERB2|O_NONL, np->u.expr.right); in eval_func()
838 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_func()
869 vals = platform_payloadprop_values(np->u.expr.left->u.quote.s, in eval_func()
959 return (tree_globid(np->u.globid.s, np->file, np->line)); in eval_dup()
983 eval_dup(np->u.expr.left, ex, events), in eval_dup()
984 eval_dup(np->u.expr.right, ex, events))); in eval_dup()
987 switch (np->u.expr.temp) { in eval_dup()
989 return (eval_dup(np->u.expr.left, ex, events)); in eval_dup()
991 return (eval_dup(np->u.expr.right, ex, events)); in eval_dup()
994 eval_dup(np->u.expr.left, ex, events), in eval_dup()
995 eval_dup(np->u.expr.right, ex, events))); in eval_dup()
999 switch (np->u.expr.temp) { in eval_dup()
1001 return (eval_dup(np->u.expr.left, ex, events)); in eval_dup()
1003 return (eval_dup(np->u.expr.right, ex, events)); in eval_dup()
1006 eval_dup(np->u.expr.left, ex, events), in eval_dup()
1007 eval_dup(np->u.expr.right, ex, events))); in eval_dup()
1022 for (np1f = np, np2f = events[0]->u.event.oldepname; in eval_dup()
1024 np1f = np1f->u.name.next, np2f = np2f->u.name.next) { in eval_dup()
1025 if (strcmp(np1f->u.name.s, np2f->u.name.s) != 0) in eval_dup()
1027 if (np1f->u.name.child->t != np2f->u.name.child->t) in eval_dup()
1029 if (np1f->u.name.child->t == T_NUM && in eval_dup()
1030 np1f->u.name.child->u.ull != in eval_dup()
1031 np2f->u.name.child->u.ull) in eval_dup()
1033 if (np1f->u.name.child->t == T_NAME && in eval_dup()
1034 strcmp(np1f->u.name.child->u.name.s, in eval_dup()
1035 np2f->u.name.child->u.name.s) != 0) in eval_dup()
1039 for (np1t = np, np2t = events[1]->u.event.oldepname; in eval_dup()
1041 np1t = np1t->u.name.next, np2t = np2t->u.name.next) { in eval_dup()
1042 if (strcmp(np1t->u.name.s, np2t->u.name.s) != 0) in eval_dup()
1044 if (np1t->u.name.child->t != np2t->u.name.child->t) in eval_dup()
1046 if (np1t->u.name.child->t == T_NUM && in eval_dup()
1047 np1t->u.name.child->u.ull != in eval_dup()
1048 np2t->u.name.child->u.ull) in eval_dup()
1050 if (np1t->u.name.child->t == T_NAME && in eval_dup()
1051 strcmp(np1t->u.name.child->u.name.s, in eval_dup()
1052 np2t->u.name.child->u.name.s) != 0) in eval_dup()
1064 npstart = events[0]->u.event.ewname; in eval_dup()
1065 npcont = events[0]->u.event.oldepname; in eval_dup()
1069 npstart = events[1]->u.event.ewname; in eval_dup()
1070 npcont = events[1]->u.event.oldepname; in eval_dup()
1075 npref = npref->u.name.next) { in eval_dup()
1077 newnp->u.name.t = npref->u.name.t; in eval_dup()
1078 newnp->u.name.s = npref->u.name.s; in eval_dup()
1079 newnp->u.name.last = newnp; in eval_dup()
1080 newnp->u.name.it = npref->u.name.it; in eval_dup()
1081 newnp->u.name.cp = npref->u.name.cp; in eval_dup()
1082 newnp->u.name.child = in eval_dup()
1084 if (eval_expr(npref->u.name.child, ex, events, in eval_dup()
1089 "iterator of %s", np->u.name.s); in eval_dup()
1091 newnp->u.name.child->u.ull = value.v; in eval_dup()
1095 retp->u.name.last->u.name.next = newnp; in eval_dup()
1096 retp->u.name.last = newnp; in eval_dup()
1100 npref = npref->u.name.next) { in eval_dup()
1102 newnp->u.name.t = npref->u.name.t; in eval_dup()
1103 newnp->u.name.s = npref->u.name.s; in eval_dup()
1104 newnp->u.name.last = newnp; in eval_dup()
1105 newnp->u.name.it = npref->u.name.it; in eval_dup()
1106 newnp->u.name.cp = npref->u.name.cp; in eval_dup()
1107 newnp->u.name.child = in eval_dup()
1109 if (eval_expr(npref->u.name.child, ex, events, in eval_dup()
1114 "iterator of %s", np->u.name.s); in eval_dup()
1116 newnp->u.name.child->u.ull = value.v; in eval_dup()
1120 retp->u.name.last->u.name.next = newnp; in eval_dup()
1121 retp->u.name.last = newnp; in eval_dup()
1128 iterinfop = lut_lookup(ex, (void *)np->u.name.s, NULL); in eval_dup()
1132 newnp->u.ull = iterinfop->num; in eval_dup()
1143 npref = npref->u.name.next) { in eval_dup()
1145 newnp->u.name.t = npref->u.name.t; in eval_dup()
1146 newnp->u.name.s = npref->u.name.s; in eval_dup()
1147 newnp->u.name.last = newnp; in eval_dup()
1148 newnp->u.name.it = npref->u.name.it; in eval_dup()
1149 newnp->u.name.cp = npref->u.name.cp; in eval_dup()
1150 newnp->u.name.child = in eval_dup()
1152 if (eval_expr(npref->u.name.child, ex, events, in eval_dup()
1157 "iterator of %s", np->u.name.s); in eval_dup()
1159 newnp->u.name.child->u.ull = value.v; in eval_dup()
1163 retp->u.name.last->u.name.next = newnp; in eval_dup()
1164 retp->u.name.last = newnp; in eval_dup()
1173 newnp->u.name.t = np->u.event.ename->u.name.t; in eval_dup()
1174 newnp->u.name.s = np->u.event.ename->u.name.s; in eval_dup()
1175 newnp->u.name.it = np->u.event.ename->u.name.it; in eval_dup()
1176 newnp->u.name.last = newnp; in eval_dup()
1179 eval_dup(np->u.event.epname, ex, events), in eval_dup()
1180 eval_dup(np->u.event.eexprlist, ex, events))); in eval_dup()
1183 return (tree_func(np->u.func.s, in eval_dup()
1184 eval_dup(np->u.func.arglist, ex, events), in eval_dup()
1189 newnp->u.quote.s = np->u.quote.s; in eval_dup()
1194 newnp->u.ull = np->u.ull; in eval_dup()
1199 newnp->u.ull = np->u.ull; in eval_dup()
1412 gval = lut_lookup(*globals, (void *)np->u.globid.s, NULL); in eval_expr()
1429 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1433 ASSERT(np->u.expr.left->t == T_GLOBID); in eval_expr()
1435 (void *)np->u.expr.left->u.globid.s, NULL); in eval_expr()
1440 (void *) np->u.expr.left->u.globid.s, gval, NULL); in eval_expr()
1449 np->u.expr.left->u.globid.s, gval->v); in eval_expr()
1453 np->u.expr.left->u.globid.s, in eval_expr()
1477 np->u.expr.left->t == T_GLOBID && in eval_expr()
1479 (void *)np->u.expr.left->u.globid.s, NULL)) == NULL) { in eval_expr()
1480 if (!eval_expr(np->u.expr.right, ex, events, globals, in eval_expr()
1486 (void *) np->u.expr.left->u.globid.s, in eval_expr()
1497 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1500 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1516 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1519 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1530 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1533 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1544 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1547 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1558 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1561 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1572 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1575 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1586 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1589 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1600 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1603 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1614 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1617 ASSERT(np->u.expr.right == NULL); in eval_expr()
1626 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1629 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1640 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1643 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1666 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1673 ASSERT(np->u.expr.right != NULL); in eval_expr()
1674 if (np->u.expr.right->t == T_CONDELSE) { in eval_expr()
1676 retnp = np->u.expr.right->u.expr.left; in eval_expr()
1678 retnp = np->u.expr.right->u.expr.right; in eval_expr()
1682 retnp = np->u.expr.right; in eval_expr()
1706 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1709 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1726 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1733 np->u.expr.temp = EXPR_TEMP_BOTH_UNK; in eval_expr()
1736 if (!eval_expr(np->u.expr.right, ex, events, globals, in eval_expr()
1738 np->u.expr.temp = EXPR_TEMP_BOTH_UNK; in eval_expr()
1742 np->u.expr.temp = EXPR_TEMP_LHS_UNK; in eval_expr()
1750 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1752 np->u.expr.temp = EXPR_TEMP_RHS_UNK; in eval_expr()
1760 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1767 np->u.expr.temp = EXPR_TEMP_BOTH_UNK; in eval_expr()
1770 if (!eval_expr(np->u.expr.right, ex, events, globals, in eval_expr()
1772 np->u.expr.temp = EXPR_TEMP_BOTH_UNK; in eval_expr()
1776 np->u.expr.temp = EXPR_TEMP_LHS_UNK; in eval_expr()
1785 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1787 np->u.expr.temp = EXPR_TEMP_RHS_UNK; in eval_expr()
1795 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1803 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1806 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1817 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1820 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1837 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1840 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1851 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1854 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1871 if (!eval_expr(np->u.expr.left, ex, events, globals, croot, in eval_expr()
1874 if (!eval_expr(np->u.expr.right, ex, events, globals, croot, in eval_expr()
1903 np2 = events[i]->u.event.oldepname; in eval_expr()
1905 np1 = np1->u.name.next, in eval_expr()
1906 np2 = np2->u.name.next) { in eval_expr()
1907 if (strcmp(np1->u.name.s, in eval_expr()
1908 np2->u.name.s) != 0) in eval_expr()
1910 if (np1->u.name.child->t != in eval_expr()
1911 np2->u.name.child->t) in eval_expr()
1913 if (np1->u.name.child->t == T_NUM && in eval_expr()
1914 np1->u.name.child->u.ull != in eval_expr()
1915 np2->u.name.child->u.ull) in eval_expr()
1917 if (np1->u.name.child->t == T_NAME && in eval_expr()
1918 strcmp(np1->u.name.child->u.name.s, in eval_expr()
1919 np2->u.name.child->u.name.s) != 0) in eval_expr()
1926 events[i]->u.event.epname; in eval_expr()
1936 iterinfop = lut_lookup(ex, (void *)np->u.name.s, in eval_expr()
1958 valuep->v = (uintptr_t)np->u.quote.s; in eval_expr()
1962 return (eval_func(np, ex, events, np->u.func.arglist, in eval_expr()
1968 valuep->v = np->u.ull; in eval_expr()