Searched refs:targ_spec (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/lib/bpf/ |
| H A D | relo_core.c | 558 struct bpf_core_spec *targ_spec) in bpf_core_spec_match() argument 566 memset(targ_spec, 0, sizeof(*targ_spec)); in bpf_core_spec_match() 567 targ_spec->btf = targ_btf; in bpf_core_spec_match() 568 targ_spec->root_type_id = targ_id; in bpf_core_spec_match() 569 targ_spec->relo_kind = local_spec->relo_kind; in bpf_core_spec_match() 583 targ_acc = &targ_spec->spec[0]; in bpf_core_spec_match() 590 targ_type = skip_mods_and_typedefs(targ_spec->btf, targ_id, &targ_id); in bpf_core_spec_match() 602 targ_name = btf__name_by_offset(targ_spec->btf, name_off); in bpf_core_spec_match() 610 targ_spec->len++; in bpf_core_spec_match() 611 targ_spec->raw_spec[targ_spec->raw_len] = targ_acc->idx; in bpf_core_spec_match() [all …]
|
| /linux/tools/bpf/bpftool/ |
| H A D | gen.c | 2165 static int btfgen_record_field_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_field_relo() argument 2171 unsigned int type_id = targ_spec->root_type_id; in btfgen_record_field_relo() 2181 for (int i = 1; i < targ_spec->raw_len; i++) { in btfgen_record_field_relo() 2191 idx = targ_spec->raw_spec[i]; in btfgen_record_field_relo() 2320 static int btfgen_record_type_match_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_type_match_relo() argument 2322 return btfgen_mark_type_match(info, targ_spec->root_type_id, false); in btfgen_record_type_match_relo() 2325 static int btfgen_record_type_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_type_relo() argument 2327 return btfgen_mark_type(info, targ_spec->root_type_id, true); in btfgen_record_type_relo() 2330 static int btfgen_record_enumval_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_enumval_relo() argument 2332 return btfgen_mark_type(info, targ_spec in btfgen_record_enumval_relo() [all...] |