Searched refs:local_spec (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-6.6/tools/lib/bpf/ |
H A D | relo_core.c | 557 static int bpf_core_spec_match(struct bpf_core_spec *local_spec, in bpf_core_spec_match() argument 570 targ_spec->relo_kind = local_spec->relo_kind; in bpf_core_spec_match() 572 if (core_relo_is_type_based(local_spec->relo_kind)) { in bpf_core_spec_match() 573 if (local_spec->relo_kind == BPF_CORE_TYPE_MATCHES) in bpf_core_spec_match() 574 return bpf_core_types_match(local_spec->btf, in bpf_core_spec_match() 575 local_spec->root_type_id, in bpf_core_spec_match() 578 return bpf_core_types_are_compat(local_spec->btf, in bpf_core_spec_match() 579 local_spec->root_type_id, in bpf_core_spec_match() 583 local_acc = &local_spec->spec[0]; in bpf_core_spec_match() 586 if (core_relo_is_enumval_based(local_spec in bpf_core_spec_match() 879 bpf_core_calc_relo(const char *prog_name, const struct bpf_core_relo *relo, int relo_idx, const struct bpf_core_spec *local_spec, const struct bpf_core_spec *targ_spec, struct bpf_core_relo_res *res) bpf_core_calc_relo() argument 1288 struct bpf_core_spec *local_spec = &specs_scratch[0]; bpf_core_calc_relo_insn() local [all...] |
/kernel/linux/linux-5.10/tools/lib/bpf/ |
H A D | libbpf.c | 4994 static int bpf_core_spec_match(struct bpf_core_spec *local_spec, in bpf_core_spec_match() argument 5006 targ_spec->relo_kind = local_spec->relo_kind; in bpf_core_spec_match() 5008 if (core_relo_is_type_based(local_spec->relo_kind)) { in bpf_core_spec_match() 5009 return bpf_core_types_are_compat(local_spec->btf, in bpf_core_spec_match() 5010 local_spec->root_type_id, in bpf_core_spec_match() 5014 local_acc = &local_spec->spec[0]; in bpf_core_spec_match() 5017 if (core_relo_is_enumval_based(local_spec->relo_kind)) { in bpf_core_spec_match() 5047 if (!core_relo_is_field_based(local_spec->relo_kind)) in bpf_core_spec_match() 5050 for (i = 0; i < local_spec->len; i++, local_acc++, targ_acc++) { in bpf_core_spec_match() 5057 matched = bpf_core_match_member(local_spec in bpf_core_spec_match() 5321 bpf_core_calc_relo(const struct bpf_program *prog, const struct bpf_core_relo *relo, int relo_idx, const struct bpf_core_spec *local_spec, const struct bpf_core_spec *targ_spec, struct bpf_core_relo_res *res) bpf_core_calc_relo() argument 5732 struct bpf_core_spec local_spec, cand_spec, targ_spec = {}; bpf_core_apply_relo() local [all...] |
Completed in 12 milliseconds