Searched refs:insn_buf (Results 1 – 5 of 5) sorted by relevance
/kernel/bpf/ |
D | arraymap.c | 185 static u32 array_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in array_map_gen_lookup() argument 188 struct bpf_insn *insn = insn_buf; in array_map_gen_lookup() 211 return insn - insn_buf; in array_map_gen_lookup() 804 struct bpf_insn *insn_buf) in array_of_map_gen_lookup() argument 808 struct bpf_insn *insn = insn_buf; in array_of_map_gen_lookup() 831 return insn - insn_buf; in array_of_map_gen_lookup()
|
D | hashtab.c | 507 static u32 htab_map_gen_lookup(struct bpf_map *map, struct bpf_insn *insn_buf) in htab_map_gen_lookup() argument 509 struct bpf_insn *insn = insn_buf; in htab_map_gen_lookup() 519 return insn - insn_buf; in htab_map_gen_lookup() 547 struct bpf_insn *insn_buf) in htab_lru_map_gen_lookup() argument 549 struct bpf_insn *insn = insn_buf; in htab_lru_map_gen_lookup() 568 return insn - insn_buf; in htab_lru_map_gen_lookup() 1509 struct bpf_insn *insn_buf) in htab_of_map_gen_lookup() argument 1511 struct bpf_insn *insn = insn_buf; in htab_of_map_gen_lookup() 1523 return insn - insn_buf; in htab_of_map_gen_lookup()
|
D | cgroup.c | 1365 struct bpf_insn *insn_buf, in sysctl_convert_ctx_access() argument 1368 struct bpf_insn *insn = insn_buf; in sysctl_convert_ctx_access() 1422 return insn - insn_buf; in sysctl_convert_ctx_access() 1522 struct bpf_insn *insn_buf, in cg_sockopt_convert_ctx_access() argument 1526 struct bpf_insn *insn = insn_buf; in cg_sockopt_convert_ctx_access() 1564 return insn - insn_buf; in cg_sockopt_convert_ctx_access() 1567 static int cg_sockopt_get_prologue(struct bpf_insn *insn_buf, in cg_sockopt_get_prologue() argument
|
D | verifier.c | 8821 struct bpf_insn insn_buf[16], *insn; in convert_ctx_accesses() local 8832 cnt = ops->gen_prologue(insn_buf, env->seen_direct_write, in convert_ctx_accesses() 8834 if (cnt >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses() 8838 new_prog = bpf_patch_insn_data(env, 0, insn_buf, cnt); in convert_ctx_accesses() 8947 cnt = convert_ctx_access(type, insn, insn_buf, env->prog, in convert_ctx_accesses() 8949 if (cnt == 0 || cnt >= ARRAY_SIZE(insn_buf) || in convert_ctx_accesses() 8958 if (shift && cnt + 1 >= ARRAY_SIZE(insn_buf)) { in convert_ctx_accesses() 8964 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_RSH, in convert_ctx_accesses() 8967 insn_buf[cnt++] = BPF_ALU32_IMM(BPF_AND, insn->dst_reg, in convert_ctx_accesses() 8971 insn_buf[cnt++] = BPF_ALU64_IMM(BPF_RSH, in convert_ctx_accesses() [all …]
|
/kernel/trace/ |
D | bpf_trace.c | 1152 struct bpf_insn *insn_buf, in pe_prog_convert_ctx_access() argument 1155 struct bpf_insn *insn = insn_buf; in pe_prog_convert_ctx_access() 1183 return insn - insn_buf; in pe_prog_convert_ctx_access()
|