Lines Matching refs:cstate

702 fold_op(compiler_state_t *cstate, opt_state_t *opt_state,  in fold_op()  argument
725 bpf_error(cstate, "division by zero"); in fold_op()
731 bpf_error(cstate, "modulus by zero"); in fold_op()
1044 opt_stmt(compiler_state_t *cstate, opt_state_t *opt_state, in opt_stmt() argument
1133 fold_op(cstate, opt_state, s, val[A_ATOM], K(s->k)); in opt_stmt()
1154 fold_op(cstate, opt_state, s, val[A_ATOM], val[X_ATOM]); in opt_stmt()
1278 opt_blk(compiler_state_t *cstate, opt_state_t *opt_state, in opt_blk() argument
1329 opt_stmt(cstate, opt_state, &s->s, b->val, do_stmts); in opt_blk()
1690 opt_blks(compiler_state_t *cstate, opt_state_t *opt_state, struct icode *ic, in opt_blks() argument
1702 opt_blk(cstate, opt_state, p, do_stmts); in opt_blks()
1780 opt_loop(compiler_state_t *cstate, opt_state_t *opt_state, struct icode *ic, in opt_loop() argument
1787 opt_dump(cstate, ic); in opt_loop()
1797 opt_blks(cstate, opt_state, ic, do_stmts); in opt_loop()
1801 opt_dump(cstate, ic); in opt_loop()
1811 bpf_optimize(compiler_state_t *cstate, struct icode *ic) in bpf_optimize() argument
1815 opt_init(cstate, &opt_state, ic); in bpf_optimize()
1816 opt_loop(cstate, &opt_state, ic, 0); in bpf_optimize()
1817 opt_loop(cstate, &opt_state, ic, 1); in bpf_optimize()
1822 opt_dump(cstate, ic); in bpf_optimize()
1829 opt_dump(cstate, ic); in bpf_optimize()
2030 opt_init(compiler_state_t *cstate, opt_state_t *opt_state, struct icode *ic) in opt_init() argument
2043 bpf_error(cstate, "malloc"); in opt_init()
2051 bpf_error(cstate, "malloc"); in opt_init()
2058 bpf_error(cstate, "malloc"); in opt_init()
2067 bpf_error(cstate, "malloc"); in opt_init()
2106 bpf_error(cstate, "malloc"); in opt_init()
2125 convert_code_r(compiler_state_t *cstate, conv_state_t *conv_state, in convert_code_r() argument
2139 if (convert_code_r(cstate, conv_state, ic, JF(p)) == 0) in convert_code_r()
2141 if (convert_code_r(cstate, conv_state, ic, JT(p)) == 0) in convert_code_r()
2154 bpf_error(cstate, "not enough core"); in convert_code_r()
2178 bpf_error(cstate, "illegal jmp destination"); in convert_code_r()
2198 bpf_error(cstate, ljerr, "no jmp destination", off); in convert_code_r()
2206 bpf_error(cstate, ljerr, "multiple matches", off); in convert_code_r()
2211 bpf_error(cstate, ljerr, "out-of-range jump", off); in convert_code_r()
2219 bpf_error(cstate, ljerr, "multiple matches", off); in convert_code_r()
2223 bpf_error(cstate, ljerr, "out-of-range jump", off); in convert_code_r()
2231 bpf_error(cstate, ljerr, "no destination found", off); in convert_code_r()
2260 bpf_error(cstate, "too many extra jumps"); in convert_code_r()
2281 bpf_error(cstate, "too many extra jumps"); in convert_code_r()
2315 icode_to_fcode(compiler_state_t *cstate, struct icode *ic, in icode_to_fcode() argument
2332 bpf_error(cstate, "malloc"); in icode_to_fcode()
2338 if (convert_code_r(cstate, &conv_state, ic, root)) in icode_to_fcode()
2456 dot_dump(compiler_state_t *cstate, struct icode *ic) in dot_dump() argument
2462 f.bf_insns = icode_to_fcode(cstate, ic, ic->root, &f.bf_len); in dot_dump()
2475 plain_dump(compiler_state_t *cstate, struct icode *ic) in plain_dump() argument
2480 f.bf_insns = icode_to_fcode(cstate, ic, ic->root, &f.bf_len); in plain_dump()
2487 opt_dump(compiler_state_t *cstate, struct icode *ic) in opt_dump() argument
2494 dot_dump(cstate, ic); in opt_dump()
2496 plain_dump(cstate, ic); in opt_dump()