Home
last modified time | relevance | path

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

/linux-6.1.9/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-6.1.9/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.c375 char *sec_name; member
696 zfree(&prog->sec_name); in bpf_program__exit()
727 const char *name, size_t sec_idx, const char *sec_name, in bpf_object__init_prog() argument
732 sec_name, name, sec_off, insn_data_sz); in bpf_object__init_prog()
752 if (sec_name[0] == '?') { in bpf_object__init_prog()
755 sec_name++; in bpf_object__init_prog()
765 prog->sec_name = strdup(sec_name); in bpf_object__init_prog()
766 if (!prog->sec_name) in bpf_object__init_prog()
780 pr_warn("sec '%s': failed to allocate memory for prog '%s'\n", sec_name, name); in bpf_object__init_prog()
787 const char *sec_name, int sec_idx) in bpf_object__add_programs() argument
[all …]
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()
/linux-6.1.9/samples/bpf/
Dxdp_fwd_user.c124 const char *sec_name; in main() local
186 sec_name = bpf_program__section_name(pos); in main()
187 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-6.1.9/scripts/
Dfaddr2line130 local sec_name
144 sec_name=$(${READELF} --section-headers --wide $objfile |
148 if [[ -z $sec_name ]]; then
235 [[ $is_vmlinux = 0 ]] && args="$args --section=$sec_name"
/linux-6.1.9/drivers/crypto/qat/qat_common/
Dadf_cfg.c189 const char *sec_name) in adf_cfg_sec_find() argument
197 if (!strcmp(ptr->name, sec_name)) in adf_cfg_sec_find()
204 const char *sec_name, in adf_cfg_key_val_get() argument
208 struct adf_cfg_section *sec = adf_cfg_sec_find(accel_dev, sec_name); in adf_cfg_key_val_get()
/linux-6.1.9/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.c1609 const char *sec_name = bpf_program__section_name(pos); in load_with_options() local
1611 err = get_prog_type_by_name(sec_name, &prog_type, in load_with_options()
/linux-6.1.9/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-6.1.9/arch/x86/tools/
Drelocs.c253 static const char *sec_name(unsigned shndx) in sec_name() function
279 name = sec_name(sym_index(sym)); in sym_name()
784 if (strcmp(sec_name(i), ".data..percpu")) in percpu_init()
1151 sec_name(sec->shdr.sh_info), in do_reloc_info()
1154 sec_name(sym_index(sym))); in do_reloc_info()
/linux-6.1.9/scripts/mod/
Dmodpost.c339 static const char *sec_name(const struct elf_info *info, unsigned int secindex) in sec_name() function
661 secname = sec_name(info, get_secindex(info, sym)); in handle_symbol()
1204 symsec = sec_name(elf, get_secindex(elf, sym)); in find_elf_symbol2()
1282 tosec = sec_name(elf, get_secindex(elf, sym)); in default_mismatch_handler()
1382 const char* tosec = sec_name(elf, get_secindex(elf, sym)); in extable_mismatch_handler()
1416 const char *tosec = sec_name(elf, get_secindex(elf, sym)); in check_section_mismatch()
1538 fromsec = sec_name(elf, sechdr->sh_info); in section_rela()
1590 fromsec = sec_name(elf, sechdr->sh_info); in section_rel()
/linux-6.1.9/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-6.1.9/drivers/crypto/hisilicon/sec2/
Dsec_main.c141 static const char sec_name[] = "hisi_sec2"; variable
1117 qm->dev_name = sec_name; in sec_qm_init()
/linux-6.1.9/tools/perf/
Dbuiltin-trace.c3269 const char *sec_name; local
3275 sec_name = bpf_program__section_name(pos);
3276 if (sec_name && !strcmp(sec_name, name)) {