| /Linux-v5.15/tools/testing/selftests/bpf/prog_tests/ |
| D | section_names.c | 8 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()
|
| D | core_reloc.c | 13 #define MODULES_CASE(name, sec_name, tp_name) { \ argument 31 .prog_sec_name = sec_name, \
|
| /Linux-v5.15/tools/lib/bpf/ |
| D | linker.c | 28 const char *sec_name; member 103 char *sec_name; member 204 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 …]
|
| D | libbpf.c | 242 char *sec_name; member 569 zfree(&prog->sec_name); in bpf_program__exit() 583 name = p = strdup(prog->sec_name); in __bpf_program__pin_name() 612 const char *name, size_t sec_idx, const char *sec_name, in bpf_object__init_prog() argument 617 sec_name, name, sec_off, insn_data_sz); in bpf_object__init_prog() 636 prog->sec_name = strdup(sec_name); in bpf_object__init_prog() 637 if (!prog->sec_name) in bpf_object__init_prog() 655 pr_warn("sec '%s': failed to allocate memory for prog '%s'\n", sec_name, name); in bpf_object__init_prog() 662 const char *sec_name, int sec_idx) in bpf_object__add_programs() argument 691 sec_name, sec_off); in bpf_object__add_programs() [all …]
|
| D | btf.h | 90 const char *sec_name, __u32 insns_cnt, 95 const char *sec_name, __u32 insns_cnt,
|
| D | btf.c | 2683 const char *sec_name, __u32 insns_cnt, in btf_ext_reloc_info() argument 2699 if (strcmp(info_sec_name, sec_name)) { in btf_ext_reloc_info() 2730 const char *sec_name, __u32 insns_cnt, in btf_ext__reloc_func_info() argument 2733 return btf_ext_reloc_info(btf, &btf_ext->func_info, sec_name, in btf_ext__reloc_func_info() 2739 const char *sec_name, __u32 insns_cnt, in btf_ext__reloc_line_info() argument 2742 return btf_ext_reloc_info(btf, &btf_ext->line_info, sec_name, in btf_ext__reloc_line_info()
|
| /Linux-v5.15/drivers/crypto/qat/qat_common/ |
| D | adf_cfg.c | 171 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-v5.15/tools/bpf/bpftool/ |
| D | gen.c | 101 const char *sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_datasec_def() local 108 if (strcmp(sec_name, ".data") == 0) { in codegen_datasec_def() 111 } else if (strcmp(sec_name, ".bss") == 0) { in codegen_datasec_def() 114 } else if (strcmp(sec_name, ".rodata") == 0) { in codegen_datasec_def() 117 } else if (strcmp(sec_name, ".kconfig") == 0) { in codegen_datasec_def() 141 sec_name, i, need_off, off); in codegen_datasec_def()
|
| D | prog.c | 1519 const char *sec_name = bpf_program__section_name(pos); in load_with_options() local 1521 err = get_prog_type_by_name(sec_name, &prog_type, in load_with_options()
|
| /Linux-v5.15/arch/mips/boot/tools/ |
| D | relocs.c | 91 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-v5.15/arch/x86/tools/ |
| D | relocs.c | 245 static const char *sec_name(unsigned shndx) in sec_name() function 271 name = sec_name(sym->st_shndx); in sym_name() 730 if (strcmp(sec_name(i), ".data..percpu")) in percpu_init() 1095 sec_name(sec->shdr.sh_info), in do_reloc_info() 1098 sec_name(sym->st_shndx)); in do_reloc_info()
|
| /Linux-v5.15/kernel/debug/kdb/ |
| D | kdb_private.h | 78 const char *sec_name; /* Section containing symbol */ member
|
| D | kdb_main.c | 1513 symtab.sec_name, symtab.sec_start, in kdb_md_line()
|
| /Linux-v5.15/scripts/mod/ |
| D | modpost.c | 353 static const char *sec_name(const struct elf_info *info, int secindex) in sec_name() function 362 const char *secname = sec_name(elf, sec); in export_from_secname() 1348 symsec = sec_name(elf, get_secindex(elf, sym)); in find_elf_symbol2() 1592 tosec = sec_name(elf, get_secindex(elf, sym)); in default_mismatch_handler() 1694 const char* tosec = sec_name(elf, get_secindex(elf, sym)); in extable_mismatch_handler() 1728 const char *tosec = sec_name(elf, get_secindex(elf, sym)); in check_section_mismatch()
|
| /Linux-v5.15/drivers/crypto/hisilicon/sec2/ |
| D | sec_main.c | 120 static const char sec_name[] = "hisi_sec2"; variable 878 qm->dev_name = sec_name; in sec_qm_init()
|