/linux/scripts/ |
H A D | faddr2line | 179 local sym_name=${func_addr%+*} 185 if [[ -z $sym_name ]] || [[ -z $func_offset ]] || [[ $sym_name = $func_addr ]]; then 244 [[ $cur_sym_name = $sym_name ]]; then 258 warn "can't find symbol: sym_name: $sym_name sym_sec: $sym_sec sym_addr: $sym_addr sym_elf_size: $sym_elf_size" 287 echo "skipping $sym_name address at $addr due to size mismatch ($user_size != $sym_size)" 294 echo "skipping $sym_name address at $addr due to size mismatch ($func_offset > $sym_size)" 303 echo "$sym_name+$func_offset/$sym_size:" 335 done < <(echo "${ELF_SYMS}" | sed 's/\[.*\]//' | ${AWK} -v fn=$sym_name ' [all...] |
H A D | kallsyms.c | 80 static char *sym_name(const struct sym_entry *s) in sym_name() function 177 strcpy(sym_name(sym), name); in read_symbol() 206 const char *name = sym_name(s); in symbol_valid() 333 ret = strcmp(sym_name(sa), sym_name(sb)); in compare_names() 657 const char *symbol = sym_name(se); in may_be_linker_script_provide_symbol() 714 wa = strspn(sym_name(sa), "_"); in compare_symbols() 715 wb = strspn(sym_name(sb), "_"); in compare_symbols()
|
/linux/kernel/debug/kdb/ |
H A D | kdb_support.c | 94 symtab->sym_name = kallsyms_lookup(addr, &symbolsize , &offset, in kdbnearsym() 97 symtab->sym_name = NULL; in kdbnearsym() 102 ret = symtab->sym_name != NULL && *(symtab->sym_name) != '\0'; in kdbnearsym() 107 ret, symtab->sym_start, symtab->mod_name, symtab->sym_name, symtab->sym_name); in kdbnearsym() 208 if (!(symtab_p2->sym_name || (punc & KDB_SP_VALUE))) in kdb_symbol_print() 214 if (symtab_p2->sym_name) { in kdb_symbol_print() 221 kdb_printf("%s", symtab_p2->sym_name); in kdb_symbol_print()
|
H A D | kdb_private.h | 81 const char *sym_name; /* Full symbol name, including member
|
/linux/tools/lib/bpf/ |
H A D | linker.c | 174 Elf64_Sym *sym, const char *sym_name, int src_sym_idx); 1299 const char *sym_name; in linker_append_elf_syms() local 1312 sym_name = elf_strptr(obj->elf, str_sec_idx, sym->st_name); in linker_append_elf_syms() 1313 if (!sym_name) { in linker_append_elf_syms() 1318 err = linker_append_elf_sym(linker, obj, sym, sym_name, i); in linker_append_elf_syms() 1334 static struct glob_sym *find_glob_sym(struct bpf_linker *linker, const char *sym_name) in find_glob_sym() argument 1344 if (strcmp(name, sym_name) == 0) in find_glob_sym() 1370 static bool glob_sym_btf_matches(const char *sym_name, bool exact, in glob_sym_btf_matches() argument 1390 sym_name, n1, n2); in glob_sym_btf_matches() 1400 sym_name, btf_kflag(t1) ? "union" : "struct", btf_kind_str(t2)); in glob_sym_btf_matches() [all …]
|
H A D | libbpf.c | 4476 __u32 insn_idx, const char *sym_name, in bpf_program__record_reloc() argument 4489 prog->name, sym_name, insn_idx, insn->code); in bpf_program__record_reloc() 4505 prog->name, sym_name, sym_idx); in bpf_program__record_reloc() 4529 prog->name, sym_name, sym_sec_name); in bpf_program__record_reloc() 4534 prog->name, sym_name, (size_t)sym->st_value); in bpf_program__record_reloc() 4545 prog->name, sym_name, shdr_idx); in bpf_program__record_reloc() 4556 prog->name, sym_name, (size_t)sym->st_value, insn->imm); in bpf_program__record_reloc() 4582 prog->name, sym_name, sym_sec_name); in bpf_program__record_reloc() 4678 const char *sym_name; in bpf_object__collect_prog_relos() local 4737 sym_name = elf_sec_name(obj, elf_sec_by_idx(obj, sym->st_shndx)); in bpf_object__collect_prog_relos() [all …]
|
/linux/security/selinux/ss/ |
H A D | mls.c | 45 len += strlen(sym_name(p, SYM_LEVELS, index_sens - 1)); in mls_compute_context_len() 56 nm = sym_name(p, SYM_CATS, prev); in mls_compute_context_len() 59 nm = sym_name(p, SYM_CATS, i); in mls_compute_context_len() 66 nm = sym_name(p, SYM_CATS, prev); in mls_compute_context_len() 103 strcpy(scontextp, sym_name(p, SYM_LEVELS, in mls_sid_to_context() 120 nm = sym_name(p, SYM_CATS, prev); in mls_sid_to_context() 128 nm = sym_name(p, SYM_CATS, i); in mls_sid_to_context() 141 nm = sym_name(p, SYM_CATS, prev); in mls_sid_to_context() 165 sym_name(p, SYM_LEVELS, l->sens - 1)); in mls_level_isvalid() 452 char *name = sym_name(oldp, SYM_LEVELS, in mls_convert_context() [all …]
|
H A D | services.c | 476 tclass_name = sym_name(policydb, SYM_CLASSES, tclass - 1); in security_dump_masked_av() 738 o, n, t, sym_name(p, SYM_CLASSES, tclass-1)); in security_validtrans_handle_fail() 1243 *scontext_len += strlen(sym_name(p, SYM_USERS, context->user - 1)) + 1; in context_struct_to_string() 1244 *scontext_len += strlen(sym_name(p, SYM_ROLES, context->role - 1)) + 1; in context_struct_to_string() 1245 *scontext_len += strlen(sym_name(p, SYM_TYPES, context->type - 1)) + 1; in context_struct_to_string() 1261 sym_name(p, SYM_USERS, context->user - 1), in context_struct_to_string() 1262 sym_name(p, SYM_ROLES, context->role - 1), in context_struct_to_string() 1263 sym_name(p, SYM_TYPES, context->type - 1)); in context_struct_to_string() 1673 s, t, sym_name(policydb, SYM_CLASSES, tclass-1)); in compute_sid_handle_invalid_context() 2059 sym_name(args->oldp, SYM_USERS, oldc->user - 1)); in services_convert_context() [all …]
|
H A D | policydb.h | 383 static inline char *sym_name(struct policydb *p, unsigned int sym_num, in sym_name() function
|
/linux/tools/perf/util/ |
H A D | llvm-c-helpers.cpp | 142 make_symbol_relative_string(struct dso *dso, const char *sym_name, in make_symbol_relative_string() argument 145 if (!strcmp(sym_name, "<invalid>")) in make_symbol_relative_string() 148 char *demangled = dso__demangle_sym(dso, 0, sym_name); in make_symbol_relative_string() 152 demangled ? demangled : sym_name, addr - base_addr); in make_symbol_relative_string() 159 return strdup(sym_name); in make_symbol_relative_string()
|
H A D | map.h | 165 #define __map__for_each_symbol_by_name(map, sym_name, pos, idx) \ argument 166 for (pos = map__find_symbol_by_name_idx(map, sym_name, &idx); \ 168 !symbol__match_symbol_name(pos->name, sym_name, \ 172 #define map__for_each_symbol_by_name(map, sym_name, pos, idx) \ argument 173 __map__for_each_symbol_by_name(map, sym_name, (pos), idx)
|
H A D | auxtrace.c | 2403 static int sym_not_found_error(const char *sym_name, int idx) in sym_not_found_error() argument 2407 idx, sym_name); in sym_not_found_error() 2409 pr_err("Global symbol '%s' not found.\n", sym_name); in sym_not_found_error() 2411 pr_err("Symbol '%s' not found.\n", sym_name); in sym_not_found_error() 2418 static int find_kern_sym(const char *sym_name, u64 *start, u64 *size, int idx) in find_kern_sym() argument 2421 .name = sym_name, in find_kern_sym() 2438 pr_err("Multiple kernel symbols with name '%s'\n", sym_name); in find_kern_sym() 2442 sym_name); in find_kern_sym() 2449 return sym_not_found_error(sym_name, idx); in find_kern_sym() 2590 static void print_duplicate_syms(struct dso *dso, const char *sym_name) in print_duplicate_syms() argument [all …]
|
/linux/scripts/kconfig/ |
H A D | confdata.c | 328 const char *warn_unknown, *sym_name; in conf_read_simple() local 415 sym_name = p + strlen(CONFIG_); in conf_read_simple() 416 p = strchr(sym_name, ' '); in conf_read_simple() 430 sym_name = line + strlen(CONFIG_); in conf_read_simple() 431 p = strchr(sym_name, '='); in conf_read_simple() 440 sym = sym_find(sym_name); in conf_read_simple() 449 conf_touch_dep(sym_name); in conf_read_simple() 452 conf_warning("unknown symbol: %s", sym_name); in conf_read_simple()
|
/linux/drivers/scsi/bfa/ |
H A D | bfa_fcs.c | 764 strscpy(port_cfg->sym_name.symname, model, in bfa_fcs_fabric_psymb_init() 766 strlcat(port_cfg->sym_name.symname, BFA_FCS_PORT_SYMBNAME_SEPARATOR, in bfa_fcs_fabric_psymb_init() 770 strlcat(port_cfg->sym_name.symname, driver_info->version, in bfa_fcs_fabric_psymb_init() 772 strlcat(port_cfg->sym_name.symname, BFA_FCS_PORT_SYMBNAME_SEPARATOR, in bfa_fcs_fabric_psymb_init() 776 strlcat(port_cfg->sym_name.symname, in bfa_fcs_fabric_psymb_init() 779 strlcat(port_cfg->sym_name.symname, BFA_FCS_PORT_SYMBNAME_SEPARATOR, in bfa_fcs_fabric_psymb_init() 788 strlcat(port_cfg->sym_name.symname, in bfa_fcs_fabric_psymb_init() 791 strlcat(port_cfg->sym_name.symname, in bfa_fcs_fabric_psymb_init() 795 strlcat(port_cfg->sym_name.symname, in bfa_fcs_fabric_psymb_init() 798 strlcat(port_cfg->sym_name.symname, in bfa_fcs_fabric_psymb_init() [all …]
|
/linux/drivers/scsi/sym53c8xx_2/ |
H A D | sym_hipd.c | 162 "ISTAT=0x%02x.\n", sym_name(np), istat); in sym_soft_reset() 215 sym_name(np)); in sym_reset_scsi_bus() 218 sym_name(np), in sym_reset_scsi_bus() 243 printf ("%s: enabling clock multiplier\n", sym_name(np)); in sym_selectclock() 256 sym_name(np)); in sym_selectclock() 356 sym_name(np), gen, ms/4, f); in getfreq() 389 printf ("%s: clock multiplier found\n", sym_name(np)); in sym_getclock() 403 printf ("%s: chip clock is %uKHz\n", sym_name(np), f1); in sym_getclock() 412 sym_name(np)); in sym_getclock() 918 printf("%s: %s, ID %d, Fast-%d, %s, %s\n", sym_name(np), [all …]
|
H A D | sym_glue.c | 143 printf_notice("%s: SCSI BUS has been reset.\n", sym_name(np)); in sym_xpt_async_bus_reset() 148 sym_name(np), sym_driver_setup.settle_delay); in sym_xpt_async_bus_reset() 441 sym_name(np)); in sym_timer() 1349 printf_warning("%s: No suitable DMA available\n", sym_name(np)); in sym_attach() 1364 sym_name(np), pdev->irq); in sym_attach() 1415 "TERMINATION, DEVICE POWER etc.!\n", sym_name(np)); in sym_attach() 1657 printk("%s: detaching ...\n", sym_name(np)); in sym_detach() 1666 printk("%s: resetting chip\n", sym_name(np)); in sym_detach() 1859 sym_name(np)); in sym2_io_slot_reset() 1863 sym_name(np)); in sym2_io_slot_reset() [all …]
|
H A D | sym_nvram.c | 149 sym_name(np), nvram->host_id & 0x0f, in sym_display_Symbios_nvram() 161 sym_name(np), i, in sym_display_Symbios_nvram() 193 sym_name(np), nvram->host_id & 0x0f, in sym_display_Tekram_nvram() 211 sym_name(np), i, in sym_display_Tekram_nvram()
|
H A D | sym_fw.c | 369 sym_name(np), (int) (cur-start)); in sym_fw_bind_script() 412 sym_name(np), (int) (cur-start)); in sym_fw_bind_script()
|
H A D | sym_glue.h | 184 #define sym_name(np) (np)->s.inst_name macro
|
/linux/arch/x86/entry/vdso/ |
H A D | vdso2c.h | 131 const char *sym_name = raw_addr + in BITSFUNC() local 136 if (!strcmp(sym_name, required_syms[k].name)) { in BITSFUNC()
|
/linux/arch/mips/boot/tools/ |
H A D | relocs.c | 41 static int regex_skip_reloc(const char *sym_name) in regex_skip_reloc() argument 43 return !regexec(&sym_regex_c, sym_name, 0, NULL, 0); in regex_skip_reloc() 119 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() function 493 const char *symname = sym_name(sym_strtab, sym); in walk_relocs()
|
/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | icp_qat_uclo.h | 284 unsigned int sym_name; member 294 unsigned int sym_name; member
|
/linux/kernel/livepatch/ |
H A D | core.c | 198 char sym_name[KSYM_NAME_LEN]; in klp_resolve_symbols() local 230 sym_objname, sym_name, &sympos); in klp_resolve_symbols() 247 sym_name); in klp_resolve_symbols() 253 sym_name, sympos, &addr); in klp_resolve_symbols()
|
/linux/tools/bpf/bpftool/ |
H A D | prog.c | 778 char sym_name[SYM_MAX_NAME]; in prog_dump() local 796 sprintf(sym_name, "%s", sym->name); in prog_dump() 798 sprintf(sym_name, "0x%016llx", ksyms[i]); in prog_dump() 800 strcpy(sym_name, "unknown"); in prog_dump() 817 jsonw_string(json_wtr, sym_name); in prog_dump() 822 printf("%s:\n", sym_name); in prog_dump()
|
/linux/scripts/mod/ |
H A D | modpost.c | 681 static const char *sym_name(struct elf_info *elf, Elf_Sym *sym) in sym_name() function 999 fromsym = sym_name(elf, from); in default_mismatch_handler() 1002 tosym = sym_name(elf, tsym); in default_mismatch_handler() 1056 label_name = sym_name(elf, label); in check_export_symbol() 1071 name = sym_name(elf, sym); in check_export_symbol()
|