Home
last modified time | relevance | path

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

/Linux-v6.6/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-v6.6/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.c392 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 …]
Dusdt.c357 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-v6.6/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-v6.6/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-v6.6/drivers/crypto/intel/qat/qat_common/
Dadf_cfg.c203 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-v6.6/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()
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 …]
Dprog.c1696 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-v6.6/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-v6.6/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-v6.6/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-v6.6/scripts/mod/
Dmodpost.c355 static const char *sec_name(const struct elf_info *info, unsigned int secindex) in sec_name() function
1264 const char *tosec = sec_name(elf, get_secindex(elf, sym)); in check_section_mismatch()
1490 const char *fromsec = sec_name(elf, fsecndx); in section_rela()
1530 const char *fromsec = sec_name(elf, fsecndx); in section_rel()
/Linux-v6.6/drivers/crypto/hisilicon/sec2/
Dsec_main.c140 static const char sec_name[] = "hisi_sec2"; variable
1114 qm->dev_name = sec_name; in sec_qm_init()
/Linux-v6.6/tools/perf/
Dbuiltin-trace.c3283 const char *sec_name; local
3289 sec_name = bpf_program__section_name(pos);
3290 if (sec_name && !strcmp(sec_name, name)) {