Skip to content

Commit 694d7c9

Browse files
committed
sync
1 parent 07b3587 commit 694d7c9

18 files changed

Lines changed: 1612 additions & 450 deletions

include/linux/bpf_ir.h

Lines changed: 189 additions & 114 deletions
Large diffs are not rendered by default.

kernel/bpf/ir/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
obj-y := kernpass/
2-
obj-y += add_counter_pass.o array.o bpf_ir.o cg_prepare.o disasm.o ir_bb.o ir_code_gen.o ir_helper.o ir_insn.o ir_utils.o ir_value.o kern_utils.o lii.o optimization.o phi_pass.o prog_check.o translate_throw.o
2+
obj-y += add_counter_pass.o array.o bpf_ir.o cg_prepare.o disasm.o div_by_zero.o ir_bb.o ir_code_gen.o ir_helper.o ir_insn.o ir_utils.o ir_value.o kern_utils.o lii.o msan.o optimization.o phi_pass.o prog_check.o translate_throw.o

kernel/bpf/ir/add_counter_pass.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void add_counter(struct bpf_ir_env *env, struct ir_function *fun, void *param)
8585
env, added, alloc_insn, bpf_ir_value_insn(added),
8686
INSERT_BACK);
8787
struct ir_basic_block *new_bb =
88-
bpf_ir_split_bb(env, fun, store_back, false);
88+
bpf_ir_split_bb(env, fun, store_back, INSERT_BACK);
8989
struct ir_basic_block *err_bb = bpf_ir_create_bb(env, fun);
9090
bpf_ir_create_throw_insn_bb(env, err_bb, INSERT_BACK);
9191
bpf_ir_create_jbin_insn(env, store_back,

0 commit comments

Comments
 (0)