/linux-6.6.21/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()
|
/linux-6.6.21/tools/lib/bpf/ |
D | linker.c | 27 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 …]
|
D | libbpf.c | 392 char *sec_name; member 717 zfree(&prog->sec_name); in bpf_program__exit() 748 const char *name, size_t sec_idx, const char *sec_name, in bpf_object__init_prog() argument 753 sec_name, name, sec_off, insn_data_sz); in bpf_object__init_prog() 773 if (sec_name[0] == '?') { in bpf_object__init_prog() 776 sec_name++; in bpf_object__init_prog() 786 prog->sec_name = strdup(sec_name); in bpf_object__init_prog() 787 if (!prog->sec_name) in bpf_object__init_prog() 801 pr_warn("sec '%s': failed to allocate memory for prog '%s'\n", sec_name, name); in bpf_object__init_prog() 808 const char *sec_name, int sec_idx) in bpf_object__add_programs() argument [all …]
|
D | usdt.c | 357 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 376 if (name && strcmp(sec_name, name) == 0) { in find_elf_sec_by_name()
|
/linux-6.6.21/samples/bpf/ |
D | xdp_fwd_user.c | 124 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()
|
D | hbm.c | 122 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.6.21/scripts/ |
D | faddr2line | 130 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.6.21/drivers/crypto/intel/qat/qat_common/ |
D | adf_cfg.c | 203 const char *sec_name) in adf_cfg_sec_find() argument 211 if (!strcmp(ptr->name, sec_name)) in adf_cfg_sec_find() 218 const char *sec_name, in adf_cfg_key_val_get() argument 222 struct adf_cfg_section *sec = adf_cfg_sec_find(accel_dev, sec_name); in adf_cfg_key_val_get()
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | gen.c | 101 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() 304 const char *sec_name, *var_name; in codegen_subskel_datasecs() local 320 sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_subskel_datasecs() 321 if (!get_datasec_ident(sec_name, sec_ident, sizeof(sec_ident))) in codegen_subskel_datasecs() [all …]
|
D | prog.c | 1696 const char *sec_name = bpf_program__section_name(pos); in load_with_options() local 1698 err = get_prog_type_by_name(sec_name, &prog_type, in load_with_options()
|
/linux-6.6.21/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-6.6.21/arch/x86/tools/ |
D | relocs.c | 253 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.6.21/kernel/debug/kdb/ |
D | kdb_private.h | 78 const char *sec_name; /* Section containing symbol */ member
|
D | kdb_main.c | 1566 symtab.sec_name, symtab.sec_start, in kdb_md_line()
|
/linux-6.6.21/scripts/mod/ |
D | modpost.c | 355 static const char *sec_name(const struct elf_info *info, unsigned int secindex) in sec_name() function 1256 const char *tosec = sec_name(elf, get_secindex(elf, sym)); in check_section_mismatch() 1482 const char *fromsec = sec_name(elf, fsecndx); in section_rela() 1524 const char *fromsec = sec_name(elf, fsecndx); in section_rel()
|
/linux-6.6.21/drivers/crypto/hisilicon/sec2/ |
D | sec_main.c | 134 static const char sec_name[] = "hisi_sec2"; variable 1112 qm->dev_name = sec_name; in sec_qm_init()
|
/linux-6.6.21/tools/perf/ |
D | builtin-trace.c | 3283 const char *sec_name; local 3289 sec_name = bpf_program__section_name(pos); 3290 if (sec_name && !strcmp(sec_name, name)) {
|