Home
last modified time | relevance | path

Searched refs:sec_name (Results 1 – 5 of 5) sorted by relevance

/tools/testing/selftests/bpf/
Dtest_section_names.c10 const char sec_name[32]; member
155 rc = libbpf_prog_type_by_name(test->sec_name, &prog_type, in test_prog_type_by_name()
159 warnx("prog: unexpected rc=%d for %s", rc, test->sec_name); in test_prog_type_by_name()
168 test->sec_name); in test_prog_type_by_name()
174 expected_attach_type, test->sec_name); in test_prog_type_by_name()
186 rc = libbpf_attach_type_by_name(test->sec_name, &attach_type); in test_attach_type_by_name()
189 warnx("attach: unexpected rc=%d for %s", rc, test->sec_name); in test_attach_type_by_name()
198 test->sec_name); in test_attach_type_by_name()
/tools/lib/bpf/
Dbtf.h95 const char *sec_name, __u32 insns_cnt,
99 const char *sec_name, __u32 insns_cnt,
Dbtf.c996 const char *sec_name, __u32 insns_cnt, in btf_ext_reloc_info() argument
1012 if (strcmp(info_sec_name, sec_name)) { in btf_ext_reloc_info()
1044 const char *sec_name, __u32 insns_cnt, in btf_ext__reloc_func_info() argument
1047 return btf_ext_reloc_info(btf, &btf_ext->func_info, sec_name, in btf_ext__reloc_func_info()
1053 const char *sec_name, __u32 insns_cnt, in btf_ext__reloc_line_info() argument
1056 return btf_ext_reloc_info(btf, &btf_ext->line_info, sec_name, in btf_ext__reloc_line_info()
Dlibbpf.c681 const char *sec_name; in bpf_object_search_section_size() local
692 sec_name = elf_strptr(elf, ep->e_shstrndx, sh.sh_name); in bpf_object_search_section_size()
693 if (!sec_name) { in bpf_object_search_section_size()
699 if (strcmp(name, sec_name)) in bpf_object_search_section_size()
3130 const char *sec_name; in bpf_core_reloc_offsets() local
3151 sec_name = btf__name_by_offset(obj->btf, sec->sec_name_off); in bpf_core_reloc_offsets()
3152 if (str_is_empty(sec_name)) { in bpf_core_reloc_offsets()
3156 prog = bpf_object__find_program_by_title(obj, sec_name); in bpf_core_reloc_offsets()
3159 sec_name); in bpf_core_reloc_offsets()
3165 sec_name, sec->num_info); in bpf_core_reloc_offsets()
[all …]
/tools/bpf/bpftool/
Dprog.c1237 const char *sec_name = bpf_program__title(pos, false); in load_with_options() local
1239 err = libbpf_prog_type_by_name(sec_name, &prog_type, in load_with_options()