Searched refs:insn_buf (Results 1 – 5 of 5) sorted by relevance
/kernel/bpf/ |
D | arraymap.c | 201 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup() argument 204 struct bpf_insn *insn = insn_buf; in array_map_gen_lookup() 230 return insn - insn_buf; in array_map_gen_lookup() 1276 struct bpf_insn *insn_buf) in array_of_map_gen_lookup() argument 1280 struct bpf_insn *insn = insn_buf; in array_of_map_gen_lookup() 1303 return insn - insn_buf; in array_of_map_gen_lookup()
|
D | hashtab.c | 673 static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup() argument 675 struct bpf_insn *insn = insn_buf; in htab_map_gen_lookup() 685 return insn - insn_buf; in htab_map_gen_lookup() 713 struct bpf_insn *insn_buf) in htab_lru_map_gen_lookup() argument 715 struct bpf_insn *insn = insn_buf; in htab_lru_map_gen_lookup() 734 return insn - insn_buf; in htab_lru_map_gen_lookup() 2409 struct bpf_insn *insn_buf) in htab_of_map_gen_lookup() argument 2411 struct bpf_insn *insn = insn_buf; in htab_of_map_gen_lookup() 2423 return insn - insn_buf; in htab_of_map_gen_lookup()
|
D | cgroup.c | 1882 struct bpf_insn *insn_buf, in sysctl_convert_ctx_access() argument 1885 struct bpf_insn *insn = insn_buf; in sysctl_convert_ctx_access() 1939 return insn - insn_buf; in sysctl_convert_ctx_access() 2065 struct bpf_insn *insn_buf, in cg_sockopt_convert_ctx_access() argument 2069 struct bpf_insn *insn = insn_buf; in cg_sockopt_convert_ctx_access() 2107 return insn - insn_buf; in cg_sockopt_convert_ctx_access() 2110 static int cg_sockopt_get_prologue(struct bpf_insn *insn_buf, in cg_sockopt_get_prologue() argument
|
D | verifier.c | 12407 struct bpf_insn insn_buf[16], *insn; in convert_ctx_accesses() local 12418 cnt = ops->gen_prologue(insn_buf, env->seen_direct_write, in convert_ctx_accesses() 12420 if (cnt >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses() 12424 new_prog = bpf_patch_insn_data(env, 0, insn_buf, cnt); in convert_ctx_accesses() 12543 cnt = convert_ctx_access(type, insn, insn_buf, env->prog, in convert_ctx_accesses() 12545 if (cnt == 0 || cnt >= ARRAY_SIZE(insn_buf) || in convert_ctx_accesses() 12554 if (shift && cnt + 1 >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses() 12560 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_RSH, in convert_ctx_accesses() 12563 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_AND, insn->dst_reg, in convert_ctx_accesses() 12567 insn_buf[cnt++] = BPF_ALU64_IMM(BPF_RSH, in convert_ctx_accesses() [all …]
|
/kernel/trace/ |
D | bpf_trace.c | 1692 struct bpf_insn *insn_buf, in pe_prog_convert_ctx_access() argument 1695 struct bpf_insn *insn = insn_buf; in pe_prog_convert_ctx_access() 1723 return insn - insn_buf; in pe_prog_convert_ctx_access()
|