/linux/tools/lib/bpf/ |
H A D | linker.c | 28 const char *sec_name; member 103 char *sec_name; member 205 free(sec->sec_name); in bpf_linker__free() 249 static struct dst_sec *add_dst_sec(struct bpf_linker *linker, const char *sec_name) in add_dst_sec() argument 266 sec->sec_name = strdup(sec_name); in add_dst_sec() 267 if (!sec->sec_name) in add_dst_sec() 358 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); in init_output_elf() 399 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); in init_output_elf() 481 const char *name = sec->sec_name; in is_ignored_sec() 493 strcmp(sec->sec_name, ".text") == 0) in is_ignored_sec() [all …]
|
H A D | libbpf.c | 431 char *sec_name; member 769 zfree(&prog->sec_name); in bpf_program__exit() 800 const char *name, size_t sec_idx, const char *sec_name, in bpf_object__init_prog() argument 805 sec_name, name, sec_off, insn_data_sz); in bpf_object__init_prog() 826 if (sec_name[0] == '?') { in bpf_object__init_prog() 829 sec_name++; in bpf_object__init_prog() 839 prog->sec_name = strdup(sec_name); in bpf_object__init_prog() 840 if (!prog->sec_name) in bpf_object__init_prog() 854 pr_warn("sec '%s': failed to allocate memory for prog '%s'\n", sec_name, name); in bpf_object__init_prog() 861 const char *sec_name, int sec_idx) in bpf_object__add_programs() argument [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | section_names.c | 8 const char sec_name[32]; member 214 rc = libbpf_prog_type_by_name(test->sec_name, &prog_type, in test_prog_type_by_name() 218 "prog: unexpected rc=%d for %s\n", rc, test->sec_name); in test_prog_type_by_name() 225 prog_type, test->sec_name); in test_prog_type_by_name() 229 expected_attach_type, test->sec_name); in test_prog_type_by_name() 237 rc = libbpf_attach_type_by_name(test->sec_name, &attach_type); in test_attach_type_by_name() 240 "attach: unexpected rc=%d for %s\n", rc, test->sec_name); in test_attach_type_by_name() 247 attach_type, test->sec_name); in test_attach_type_by_name()
|
/linux/scripts/ |
H A D | faddr2line | 146 local sec_name=$2 168 [[ -z $sec_name ]] && sec_arg="" || sec_arg="--section=${sec_name}" 200 local sec_name 213 sec_name=$(echo "${ELF_SECHEADERS}" | sed 's/\[ /\[/' | 216 if [[ -z $sec_name ]]; then 307 run_addr2line $addr $sec_name
|
/linux/samples/bpf/ |
H A 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()
|
H A 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/drivers/crypto/intel/qat/qat_common/ |
H A D | adf_cfg.c | 232 const char *sec_name) in adf_cfg_sec_find() argument 240 if (!strcmp(ptr->name, sec_name)) in adf_cfg_sec_find() 247 const char *sec_name, in adf_cfg_key_val_get() argument 251 struct adf_cfg_section *sec = adf_cfg_sec_find(accel_dev, sec_name); in adf_cfg_key_val_get()
|
/linux/tools/bpf/bpftool/ |
H A D | gen.c | 118 static bool get_datasec_ident(const char *sec_name, char *buf, size_t buf_sz) in get_datasec_ident() argument 124 if (strcmp(sec_name, ".addr_space.1") == 0) { in get_datasec_ident() 132 if (str_has_prefix(sec_name, pfx)) { in get_datasec_ident() 133 snprintf(buf, buf_sz, "%s", sec_name + 1); in get_datasec_ident() 153 const char *sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_datasec_def() local 159 if (!get_datasec_ident(sec_name, sec_ident, sizeof(sec_ident))) in codegen_datasec_def() 162 if (strcmp(sec_name, ".kconfig") != 0) in codegen_datasec_def() 183 sec_name, i, need_off, off); in codegen_datasec_def() 334 const char *sec_name, *var_name; in codegen_subskel_datasecs() local 350 sec_name = btf__name_by_offset(btf, sec->name_off); in codegen_subskel_datasecs() [all …]
|
H A D | prog.c | 1707 const char *sec_name = bpf_program__section_name(pos); in load_with_options() 1709 err = get_prog_type_by_name(sec_name, &prog_type, in load_with_options() 1700 const char *sec_name = bpf_program__section_name(pos); load_with_options() local
|
/linux/arch/mips/boot/tools/ |
H A 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/kernel/debug/kdb/ |
H A D | kdb_private.h | 78 const char *sec_name; /* Section containing symbol */ member
|
/linux/tools/perf/util/ |
H A D | symbol-elf.c | 1360 char *sec_name; in max_text_section() local 1369 sec_name = elf_strptr(elf, ehdr->e_shstrndx, shdr.sh_name); in max_text_section() 1370 if (!sec_name || in max_text_section() 1371 strstarts(sec_name, ".init") || in max_text_section() 1372 strstarts(sec_name, ".exit")) in max_text_section()
|
/linux/scripts/mod/ |
H A D | modpost.c | 320 static const char *sec_name(const struct elf_info *info, unsigned int secindex) in sec_name() function 1120 const char *tosec = sec_name(elf, get_secindex(elf, sym)); in check_section_mismatch() 1414 const char *secname = sec_name(elf, secndx); in check_sec_ref()
|
/linux/drivers/crypto/hisilicon/sec2/ |
H A D | sec_main.c | 134 static const char sec_name[] = "hisi_sec2"; variable 1186 qm->dev_name = sec_name; in sec_qm_init()
|
/linux/tools/perf/ |
H A D | builtin-trace.c | 3580 const char *sec_name; 3586 sec_name = bpf_program__section_name(pos); 3587 if (sec_name && !strcmp(sec_name, name)) { 3584 const char *sec_name; global() local
|