Home
last modified time | relevance | path

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

/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/
Dsection_names.c8 const char sec_name[32]; member
169 rc = libbpf_prog_type_by_name(test->sec_name, &prog_type, in test_prog_type_by_name()
173 "prog: unexpected rc=%d for %s\n", rc, test->sec_name); in test_prog_type_by_name()
180 prog_type, test->sec_name); in test_prog_type_by_name()
184 expected_attach_type, test->sec_name); in test_prog_type_by_name()
192 rc = libbpf_attach_type_by_name(test->sec_name, &attach_type); in test_attach_type_by_name()
195 "attach: unexpected rc=%d for %s\n", rc, test->sec_name); in test_attach_type_by_name()
202 attach_type, test->sec_name); in test_attach_type_by_name()
/linux-5.19.10/tools/lib/bpf/
Dlinker.c27 const char *sec_name; member
102 char *sec_name; member
203 free(sec->sec_name); in bpf_linker__free()
247 static struct dst_sec *add_dst_sec(struct bpf_linker *linker, const char *sec_name) in add_dst_sec() argument
264 sec->sec_name = strdup(sec_name); in add_dst_sec()
265 if (!sec->sec_name) in add_dst_sec()
361 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); in init_output_elf()
400 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); in init_output_elf()
482 const char *name = sec->sec_name; in is_ignored_sec()
494 strcmp(sec->sec_name, ".text") == 0) in is_ignored_sec()
[all …]
Dlibbpf.c248 char *sec_name; member
605 zfree(&prog->sec_name); in bpf_program__exit()
622 name = strdup(prog->sec_name); in __bpf_program__pin_name()
657 const char *name, size_t sec_idx, const char *sec_name, in bpf_object__init_prog() argument
662 sec_name, name, sec_off, insn_data_sz); in bpf_object__init_prog()
681 if (sec_name[0] == '?') { in bpf_object__init_prog()
684 sec_name++; in bpf_object__init_prog()
695 prog->sec_name = strdup(sec_name); in bpf_object__init_prog()
696 if (!prog->sec_name) in bpf_object__init_prog()
714 pr_warn("sec '%s': failed to allocate memory for prog '%s'\n", sec_name, name); in bpf_object__init_prog()
[all …]
Dbtf.h165 const char *sec_name, __u32 insns_cnt,
170 const char *sec_name, __u32 insns_cnt,
Dusdt.c351 static int find_elf_sec_by_name(Elf *elf, const char *sec_name, GElf_Shdr *shdr, Elf_Scn **scn) in find_elf_sec_by_name() argument
370 if (name && strcmp(sec_name, name) == 0) { in find_elf_sec_by_name()
Dbtf.c2858 const char *sec_name, __u32 insns_cnt, in btf_ext_reloc_info() argument
2874 if (strcmp(info_sec_name, sec_name)) { in btf_ext_reloc_info()
2905 const char *sec_name, __u32 insns_cnt, in btf_ext__reloc_func_info() argument
2908 return btf_ext_reloc_info(btf, &btf_ext->func_info, sec_name, in btf_ext__reloc_func_info()
2914 const char *sec_name, __u32 insns_cnt, in btf_ext__reloc_line_info() argument
2917 return btf_ext_reloc_info(btf, &btf_ext->line_info, sec_name, in btf_ext__reloc_line_info()
/linux-5.19.10/samples/bpf/
Dxdp_fwd_user.c81 const char *sec_name; in main() local
143 sec_name = bpf_program__section_name(pos); in main()
144 if (sec_name && !strcmp(sec_name, prog_name)) { in main()
Dhbm.c122 const char *sec_name; in prog_load() local
137 sec_name = bpf_program__section_name(pos); in prog_load()
138 if (sec_name && !strcmp(sec_name, "cgroup_skb/egress")) { in prog_load()
/linux-5.19.10/scripts/
Dfaddr2line128 local sec_name
142 sec_name=$(${READELF} --section-headers --wide $objfile |
146 if [[ -z $sec_name ]]; then
233 [[ $is_vmlinux = 0 ]] && args="$args --section=$sec_name"
/linux-5.19.10/drivers/crypto/qat/qat_common/
Dadf_cfg.c171 const char *sec_name) in adf_cfg_sec_find() argument
179 if (!strcmp(ptr->name, sec_name)) in adf_cfg_sec_find()
186 const char *sec_name, in adf_cfg_key_val_get() argument
190 struct adf_cfg_section *sec = adf_cfg_sec_find(accel_dev, sec_name); in adf_cfg_key_val_get()
/linux-5.19.10/tools/bpf/bpftool/
Dgen.c101 static bool get_datasec_ident(const char *sec_name, char *buf, size_t buf_sz) in get_datasec_ident() argument
109 if (str_has_prefix(sec_name, pfx)) { in get_datasec_ident()
110 snprintf(buf, buf_sz, "%s", sec_name + 1); in get_datasec_ident()
130 const char *sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_datasec_def() local
136 if (!get_datasec_ident(sec_name, sec_ident, sizeof(sec_ident))) in codegen_datasec_def()
139 if (strcmp(sec_name, ".kconfig") != 0) in codegen_datasec_def()
160 sec_name, i, need_off, off); in codegen_datasec_def()
305 const char *sec_name, *var_name; in codegen_subskel_datasecs() local
321 sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_subskel_datasecs()
322 if (!get_datasec_ident(sec_name, sec_ident, sizeof(sec_ident))) in codegen_subskel_datasecs()
[all …]
Dprog.c1621 const char *sec_name = bpf_program__section_name(pos); in load_with_options() local
1623 err = get_prog_type_by_name(sec_name, &prog_type, in load_with_options()
/linux-5.19.10/arch/mips/boot/tools/
Drelocs.c91 static const char *sec_name(unsigned shndx) in sec_name() function
113 if (strcmp(secname, sec_name(i)) == 0) in sec_lookup()
126 name = sec_name(sym->st_shndx); in sym_name()
640 sec_name(sec->shdr.sh_info), in do_reloc_info()
644 sec_name(sym->st_shndx)); in do_reloc_info()
/linux-5.19.10/arch/x86/tools/
Drelocs.c252 static const char *sec_name(unsigned shndx) in sec_name() function
278 name = sec_name(sym_index(sym)); in sym_name()
783 if (strcmp(sec_name(i), ".data..percpu")) in percpu_init()
1150 sec_name(sec->shdr.sh_info), in do_reloc_info()
1153 sec_name(sym_index(sym))); in do_reloc_info()
/linux-5.19.10/kernel/debug/kdb/
Dkdb_private.h78 const char *sec_name; /* Section containing symbol */ member
Dkdb_main.c1568 symtab.sec_name, symtab.sec_start, in kdb_md_line()
/linux-5.19.10/scripts/mod/
Dmodpost.c342 static const char *sec_name(const struct elf_info *info, int secindex) in sec_name() function
652 secname = sec_name(info, get_secindex(info, sym)); in handle_symbol()
1220 symsec = sec_name(elf, get_secindex(elf, sym)); in find_elf_symbol2()
1460 tosec = sec_name(elf, get_secindex(elf, sym)); in default_mismatch_handler()
1562 const char* tosec = sec_name(elf, get_secindex(elf, sym)); in extable_mismatch_handler()
1596 const char *tosec = sec_name(elf, get_secindex(elf, sym)); in check_section_mismatch()
/linux-5.19.10/drivers/crypto/hisilicon/sec2/
Dsec_main.c132 static const char sec_name[] = "hisi_sec2"; variable
1012 qm->dev_name = sec_name; in sec_qm_init()
/linux-5.19.10/tools/perf/
Dbuiltin-trace.c3270 const char *sec_name; local
3276 sec_name = bpf_program__section_name(pos);
3277 if (sec_name && !strcmp(sec_name, name)) {