| /linux/tools/lib/bpf/ |
| H A D | relo_core.c | 898 int relo_idx, in bpf_core_calc_relo() argument 975 prog_name, relo_idx, core_relo_kind_str(relo->kind), in bpf_core_calc_relo() 986 static int bpf_core_poison_insn(const char *prog_name, int relo_idx, in bpf_core_poison_insn() argument 994 prog_name, relo_idx, insn_idx + i); in bpf_core_poison_insn() 1050 int relo_idx, const struct bpf_core_relo_res *res) in bpf_core_patch_insn() argument 1066 return bpf_core_poison_insn(prog_name, relo_idx, insn, insn_idx); in bpf_core_patch_insn() 1069 prog_name, relo_idx, in bpf_core_patch_insn() 1077 prog_name, relo_idx, insn_idx, in bpf_core_patch_insn() 1084 return bpf_core_poison_insn(prog_name, relo_idx, insn, insn_idx); in bpf_core_patch_insn() 1087 prog_name, relo_idx, insn_idx, insn->off, (unsigned long long)orig_val, in bpf_core_patch_insn() [all …]
|
| H A D | relo_core.h | 83 const struct bpf_core_relo *relo, int relo_idx, 91 int relo_idx, const struct bpf_core_relo_res *res);
|
| H A D | libbpf.c | 6089 int relo_idx, in bpf_core_resolve_relo() argument 6115 prog_name, relo_idx, local_id, btf_kind_str(local_type), in bpf_core_resolve_relo() 6126 return bpf_core_calc_relo_insn(prog_name, relo, relo_idx, local_btf, cands, specs_scratch, in bpf_core_resolve_relo() 6260 static void poison_map_ldimm64(struct bpf_program *prog, int relo_idx, in poison_map_ldimm64() argument 6267 prog->name, relo_idx, insn_idx, map_idx, map->name); in poison_map_ldimm64() 6290 static void poison_kfunc_call(struct bpf_program *prog, int relo_idx, in poison_kfunc_call() argument 6295 prog->name, relo_idx, insn_idx, ext->name); in poison_kfunc_call()
|
| /linux/tools/bpf/bpftool/ |
| H A D | gen.c | 2445 unsigned int relo_idx; in btfgen_record_obj() local 2477 for_each_btf_ext_rec(seg, sec, relo_idx, relo) { in btfgen_record_obj() 2497 err = bpf_core_calc_relo_insn(sec_name, relo, relo_idx, btf, cands, in btfgen_record_obj()
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 9770 int relo_idx, void *insn) in bpf_core_apply() argument 9789 relo_idx, relo->type_id); in bpf_core_apply() 9829 err = bpf_core_calc_relo_insn((void *)ctx->log, relo, relo_idx, ctx->btf, &cands, specs, in bpf_core_apply() 9834 err = bpf_core_patch_insn((void *)ctx->log, insn, relo->insn_off / 8, relo, relo_idx, in bpf_core_apply()
|
| /linux/include/linux/ |
| H A D | bpf.h | 3237 int relo_idx, void *insn);
|