Searched refs:insn_buf (Results 1 – 5 of 5) sorted by relevance
/kernel/bpf/ |
D | verifier.c | 13724 struct bpf_insn insn_buf[16], *insn; in convert_ctx_accesses() local 13735 cnt = ops->gen_prologue(insn_buf, env->seen_direct_write, in convert_ctx_accesses() 13737 if (cnt >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses() 13741 new_prog = bpf_patch_insn_data(env, 0, insn_buf, cnt); in convert_ctx_accesses() 13858 cnt = convert_ctx_access(type, insn, insn_buf, env->prog, in convert_ctx_accesses() 13860 if (cnt == 0 || cnt >= ARRAY_SIZE(insn_buf) || in convert_ctx_accesses() 13869 if (shift && cnt + 1 >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses() 13875 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_RSH, in convert_ctx_accesses() 13878 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_AND, insn->dst_reg, in convert_ctx_accesses() 13882 insn_buf[cnt++] = BPF_ALU64_IMM(BPF_RSH, in convert_ctx_accesses() [all …]
|
D | arraymap.c | 205 static int array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup() argument 208 struct bpf_insn *insn = insn_buf; in array_map_gen_lookup() 234 return insn - insn_buf; in array_map_gen_lookup() 1309 struct bpf_insn *insn_buf) in array_of_map_gen_lookup() argument 1313 struct bpf_insn *insn = insn_buf; in array_of_map_gen_lookup() 1336 return insn - insn_buf; in array_of_map_gen_lookup()
|
D | hashtab.c | 701 static int htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup() argument 703 struct bpf_insn *insn = insn_buf; in htab_map_gen_lookup() 713 return insn - insn_buf; in htab_map_gen_lookup() 741 struct bpf_insn *insn_buf) in htab_lru_map_gen_lookup() argument 743 struct bpf_insn *insn = insn_buf; in htab_lru_map_gen_lookup() 762 return insn - insn_buf; in htab_lru_map_gen_lookup() 2503 struct bpf_insn *insn_buf) in htab_of_map_gen_lookup() argument 2505 struct bpf_insn *insn = insn_buf; in htab_of_map_gen_lookup() 2517 return insn - insn_buf; in htab_of_map_gen_lookup()
|
D | cgroup.c | 2209 struct bpf_insn *insn_buf, in sysctl_convert_ctx_access() argument 2212 struct bpf_insn *insn = insn_buf; in sysctl_convert_ctx_access() 2266 return insn - insn_buf; in sysctl_convert_ctx_access() 2404 struct bpf_insn *insn_buf, in cg_sockopt_convert_ctx_access() argument 2408 struct bpf_insn *insn = insn_buf; in cg_sockopt_convert_ctx_access() 2475 return insn - insn_buf; in cg_sockopt_convert_ctx_access() 2478 static int cg_sockopt_get_prologue(struct bpf_insn *insn_buf, in cg_sockopt_get_prologue() argument
|
/kernel/trace/ |
D | bpf_trace.c | 2078 struct bpf_insn *insn_buf, in pe_prog_convert_ctx_access() argument 2081 struct bpf_insn *insn = insn_buf; in pe_prog_convert_ctx_access() 2109 return insn - insn_buf; in pe_prog_convert_ctx_access()
|