Searched refs:targ_spec (Results 1 – 2 of 2) sorted by relevance
/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 …]
|
/tools/bpf/bpftool/ |
D | gen.c | 1802 static int btfgen_record_field_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_field_relo() argument 1808 unsigned int type_id = targ_spec->root_type_id; in btfgen_record_field_relo() 1818 for (int i = 1; i < targ_spec->raw_len; i++) { in btfgen_record_field_relo() 1828 idx = targ_spec->raw_spec[i]; in btfgen_record_field_relo() 1957 static int btfgen_record_type_match_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_type_match_relo() argument 1959 return btfgen_mark_type_match(info, targ_spec->root_type_id, false); in btfgen_record_type_match_relo() 1962 static int btfgen_record_type_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_type_relo() argument 1964 return btfgen_mark_type(info, targ_spec->root_type_id, true); in btfgen_record_type_relo() 1967 static int btfgen_record_enumval_relo(struct btfgen_info *info, struct bpf_core_spec *targ_spec) in btfgen_record_enumval_relo() argument 1969 return btfgen_mark_type(info, targ_spec->root_type_id, false); in btfgen_record_enumval_relo()
|