Searched refs:targ_spec (Results 1 – 2 of 2) sorted by relevance
| /Linux-v6.1/tools/lib/bpf/ |
| D | relo_core.c | 559 struct bpf_core_spec *targ_spec) in bpf_core_spec_match() argument 567 memset(targ_spec, 0, sizeof(*targ_spec)); in bpf_core_spec_match() 568 targ_spec->btf = targ_btf; in bpf_core_spec_match() 569 targ_spec->root_type_id = targ_id; in bpf_core_spec_match() 570 targ_spec->relo_kind = local_spec->relo_kind; in bpf_core_spec_match() 584 targ_acc = &targ_spec->spec[0]; in bpf_core_spec_match() 591 targ_type = skip_mods_and_typedefs(targ_spec->btf, targ_id, &targ_id); in bpf_core_spec_match() 603 targ_name = btf__name_by_offset(targ_spec->btf, name_off); in bpf_core_spec_match() 611 targ_spec->len++; in bpf_core_spec_match() 612 targ_spec->raw_spec[targ_spec->raw_len] = targ_acc->idx; in bpf_core_spec_match() [all …]
|
| /Linux-v6.1/tools/bpf/bpftool/ |
| D | gen.c | 1806 static int btfgen_record_field_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_field_relo() argument 1812 unsigned int type_id = targ_spec->root_type_id; in btfgen_record_field_relo() 1822 for (int i = 1; i < targ_spec->raw_len; i++) { in btfgen_record_field_relo() 1832 idx = targ_spec->raw_spec[i]; in btfgen_record_field_relo() 1961 static int btfgen_record_type_match_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_type_match_relo() argument 1963 return btfgen_mark_type_match(info, targ_spec->root_type_id, false); in btfgen_record_type_match_relo() 1966 static int btfgen_record_type_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_type_relo() argument 1968 return btfgen_mark_type(info, targ_spec->root_type_id, true); in btfgen_record_type_relo() 1971 static int btfgen_record_enumval_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_enumval_relo() argument 1973 return btfgen_mark_type(info, targ_spec->root_type_id, false); in btfgen_record_enumval_relo()
|