Lines Matching refs:prog_name

56 #define libbpf_print(level, fmt, ...)	bpf_log((void *)prog_name, fmt, ##__VA_ARGS__)
263 int bpf_core_parse_spec(const char *prog_name, const struct btf *btf, in bpf_core_parse_spec() argument
387 prog_name, relo->type_id, spec_str, i, id, btf_kind_str(t)); in bpf_core_parse_spec()
678 static int bpf_core_calc_field_relo(const char *prog_name, in bpf_core_calc_field_relo() argument
722 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo()
744 prog_name, relo->kind, relo->insn_off / 8); in bpf_core_calc_field_relo()
879 static int bpf_core_calc_relo(const char *prog_name, in bpf_core_calc_relo() argument
897 err = bpf_core_calc_field_relo(prog_name, relo, local_spec, in bpf_core_calc_relo()
900 err = err ?: bpf_core_calc_field_relo(prog_name, relo, targ_spec, in bpf_core_calc_relo()
958 prog_name, relo_idx, core_relo_kind_str(relo->kind), in bpf_core_calc_relo()
969 static void bpf_core_poison_insn(const char *prog_name, int relo_idx, in bpf_core_poison_insn() argument
973 prog_name, relo_idx, insn_idx); in bpf_core_poison_insn()
1024 int bpf_core_patch_insn(const char *prog_name, struct bpf_insn *insn, in bpf_core_patch_insn() argument
1039 bpf_core_poison_insn(prog_name, relo_idx, insn_idx + 1, insn + 1); in bpf_core_patch_insn()
1040 bpf_core_poison_insn(prog_name, relo_idx, insn_idx, insn); in bpf_core_patch_insn()
1054 prog_name, relo_idx, in bpf_core_patch_insn()
1062 prog_name, relo_idx, insn_idx, in bpf_core_patch_insn()
1070 prog_name, relo_idx, insn_idx, insn->off, (unsigned long long)orig_val, in bpf_core_patch_insn()
1076 prog_name, relo_idx, insn_idx, (unsigned long long)new_val); in bpf_core_patch_insn()
1082 prog_name, relo_idx, insn_idx); in bpf_core_patch_insn()
1089 prog_name, relo_idx, insn_idx, (unsigned long long)orig_val, in bpf_core_patch_insn()
1098 prog_name, relo_idx, insn_idx, insn_bytes_sz, res->orig_sz); in bpf_core_patch_insn()
1105 prog_name, relo_idx, insn_idx, res->new_sz); in bpf_core_patch_insn()
1111 prog_name, relo_idx, insn_idx, res->orig_sz, res->new_sz); in bpf_core_patch_insn()
1122 prog_name, relo_idx, insn_idx); in bpf_core_patch_insn()
1129 prog_name, relo_idx, in bpf_core_patch_insn()
1138 prog_name, relo_idx, insn_idx, in bpf_core_patch_insn()
1144 prog_name, relo_idx, insn_idx, insn->code, in bpf_core_patch_insn()
1280 int bpf_core_calc_relo_insn(const char *prog_name, in bpf_core_calc_relo_insn() argument
1304 err = bpf_core_parse_spec(prog_name, local_btf, relo, local_spec); in bpf_core_calc_relo_insn()
1310 prog_name, relo_idx, local_id, btf_kind_str(local_type), in bpf_core_calc_relo_insn()
1317 pr_debug("prog '%s': relo #%d: %s\n", prog_name, relo_idx, spec_buf); in bpf_core_calc_relo_insn()
1333 prog_name, relo_idx, core_relo_kind_str(relo->kind), relo->kind); in bpf_core_calc_relo_insn()
1343 prog_name, relo_idx, i, spec_buf, err); in bpf_core_calc_relo_insn()
1348 pr_debug("prog '%s': relo #%d: %s candidate #%d %s\n", prog_name, in bpf_core_calc_relo_insn()
1354 err = bpf_core_calc_relo(prog_name, relo, relo_idx, local_spec, cand_spec, &cand_res); in bpf_core_calc_relo_insn()
1366 prog_name, relo_idx, cand_spec->bit_offset, in bpf_core_calc_relo_insn()
1376 prog_name, relo_idx, in bpf_core_calc_relo_insn()
1411 prog_name, relo_idx); in bpf_core_calc_relo_insn()
1414 err = bpf_core_calc_relo(prog_name, relo, relo_idx, local_spec, NULL, targ_res); in bpf_core_calc_relo_insn()