Lines Matching defs:bs

516 rules_action_scan(struct bt_stmt *bs)
522 while (bs != NULL) {
523 SLIST_FOREACH(ba, &bs->bs_args, ba_next)
527 switch (bs->bs_act) {
530 ba = (struct bt_arg *)bs->bs_var;
534 bc = (struct bt_cond *)bs->bs_var;
542 bs = SLIST_NEXT(bs, bs_next);
555 struct bt_stmt *bs;
566 bs = r->br_filter->bf_condition;
567 ba = SLIST_FIRST(&bs->bs_args);
725 struct bt_stmt *bs;
740 SLIST_FOREACH(bs, &r->br_action, bs_next) {
741 if (stmt_eval(bs, dtev))
751 struct bt_stmt *bs;
753 SLIST_FOREACH(bs, &r->br_action, bs_next) {
756 SLIST_FOREACH(ba, &bs->bs_args, ba_next) {
888 stmt_eval(struct bt_stmt *bs, struct dt_evt *dtev)
894 switch (bs->bs_act) {
896 stmt_bucketize(bs, dtev);
899 stmt_clear(bs);
902 stmt_delete(bs, dtev);
908 stmt_insert(bs, dtev);
911 stmt_print(bs, dtev);
914 stmt_printf(bs, dtev);
917 stmt_store(bs, dtev);
920 bc = (struct bt_cond *)bs->bs_var;
921 if (stmt_test(bs, dtev) == true)
933 stmt_time(bs, dtev);
936 stmt_zero(bs);
939 xabort("no handler for action type %d", bs->bs_act);
950 stmt_bucketize(struct bt_stmt *bs, struct dt_evt *dtev)
952 struct bt_arg *brange, *bhist = SLIST_FIRST(&bs->bs_args);
953 struct bt_arg *bval = (struct bt_arg *)bs->bs_var;
991 stmt_clear(struct bt_stmt *bs)
993 struct bt_arg *ba = SLIST_FIRST(&bs->bs_args);
997 assert(bs->bs_var == NULL);
1019 stmt_delete(struct bt_stmt *bs, struct dt_evt *dtev)
1021 struct bt_arg *bkey, *bmap = SLIST_FIRST(&bs->bs_args);
1027 assert(bs->bs_var == NULL);
1047 stmt_insert(struct bt_stmt *bs, struct dt_evt *dtev)
1049 struct bt_arg *bkey, *bmap = SLIST_FIRST(&bs->bs_args);
1050 struct bt_arg *bval = (struct bt_arg *)bs->bs_var;
1110 stmt_print(struct bt_stmt *bs, struct dt_evt *dtev)
1112 struct bt_arg *btop, *ba = SLIST_FIRST(&bs->bs_args);
1117 assert(bs->bs_var == NULL);
1157 stmt_store(struct bt_stmt *bs, struct dt_evt *dtev)
1159 struct bt_arg *ba = SLIST_FIRST(&bs->bs_args);
1160 struct bt_var *bvar, *bv = bs->bs_var;
1255 stmt_test(struct bt_stmt *bs, struct dt_evt *dtev)
1259 if (bs == NULL)
1262 ba = SLIST_FIRST(&bs->bs_args);
1271 stmt_time(struct bt_stmt *bs, struct dt_evt *dtev)
1273 struct bt_arg *ba = SLIST_FIRST(&bs->bs_args);
1278 assert(bs->bs_var == NULL);
1292 stmt_zero(struct bt_stmt *bs)
1294 struct bt_arg *ba = SLIST_FIRST(&bs->bs_args);
1298 assert(bs->bs_var == NULL);
2091 struct bt_stmt *bs;
2101 bs = r->br_filter->bf_condition;
2104 debug_dump_expr(SLIST_FIRST(&bs->bs_args));