/linux/include/linux/ |
A D | export.h | 70 = { (unsigned long)&sym, __kstrtab_##sym, __kstrtabns_##sym } 81 #define ___EXPORT_SYMBOL(sym, sec, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument 98 extern typeof(sym) sym; \ 137 __cond_export_sym(sym, sec, ns, __is_defined(__KSYM_##sym)) 145 #define __cond_export_sym_0(sym, sec, ns) __GENKSYMS_EXPORT_SYMBOL(sym) argument 152 #define __EXPORT_SYMBOL(sym, sec, ns) ___EXPORT_SYMBOL(sym, sec, ns) argument 160 #define _EXPORT_SYMBOL(sym, sec) __EXPORT_SYMBOL(sym, sec, "") argument 163 #define EXPORT_SYMBOL(sym) _EXPORT_SYMBOL(sym, "") argument 164 #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "_gpl") argument 165 #define EXPORT_SYMBOL_NS(sym, ns) __EXPORT_SYMBOL(sym, "", #ns) argument [all …]
|
/linux/scripts/kconfig/ |
A D | symbol.c | 358 sym->curr.val = sym->name; in sym_calc_value() 437 sym->curr.val = sym_calc_choice(sym); in sym_calc_value() 491 if (sym->visible <= sym->rev_dep.tri) in sym_tristate_within_range() 943 sym_match_arr[cnt++].sym = sym; in sym_re_search() 981 stack->sym = sym; in dep_stack_insert() 1019 sym = stack->sym; in sym_check_print_recursive() 1040 sym->name ? sym->name : "<choice>", in sym_check_print_recursive() 1045 sym->name ? sym->name : "<choice>", in sym_check_print_recursive() 1050 sym->name ? sym->name : "<choice>", in sym_check_print_recursive() 1055 sym->name ? sym->name : "<choice>", in sym_check_print_recursive() [all …]
|
A D | confdata.c | 418 sym = NULL; in conf_read_simple() 464 if (!sym) { in conf_read_simple() 491 if (sym && sym_is_choice_value(sym)) { in conf_read_simple() 535 if (sym_has_value(sym) && (sym->flags & SYMBOL_WRITE)) { in conf_read() 544 if (!strcmp(sym->curr.val, sym->def[S_DEF_USER].val)) in conf_read() 556 if (sym_has_value(sym) && !sym_is_choice_value(sym)) { in conf_read() 774 sym = menu->sym; in conf_write_defconfig() 876 sym = menu->sym; in conf_write() 877 if (!sym) { in conf_write() 1008 if ((sym->flags & SYMBOL_NO_WRITE) || !sym->name) in conf_touch_deps() [all …]
|
A D | menu.c | 54 menu->sym = sym; in menu_add_entry() 115 struct symbol *sym = current_entry->sym; in menu_set_type() local 125 sym->name ? sym->name : "<choice>", in menu_set_type() 292 sym = parent->sym; in menu_finalize() 299 if (sym && sym_is_choice(sym)) { in menu_finalize() 403 if (sym && sym_is_choice(sym)) in menu_finalize() 486 if (sym && sym_is_choice(sym) && in menu_finalize() 523 (*ep)->right.sym = menu->sym; in menu_finalize() 631 sym = menu->sym; in menu_is_visible() 808 if (sym && sym->name) { in get_symbol_str() [all …]
|
A D | expr.c | 22 e->left.sym = sym; in expr_alloc_symbol() 88 e->left.sym = org->left.sym; in expr_copy() 89 e->right.sym = org->right.sym; in expr_copy() 168 e1->left.sym == e2->left.sym && in __expr_eliminate_eq() 272 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq() 862 return dep->left.sym == sym; in expr_contains_symbol() 869 return dep->left.sym == sym || in expr_contains_symbol() 870 dep->right.sym == sym; in expr_contains_symbol() 889 return dep->left.sym == sym; in expr_depends_symbol() 891 if (dep->left.sym == sym) { in expr_depends_symbol() [all …]
|
A D | conf.c | 231 if (sym_has_value(sym) || sym->flags & SYMBOL_VALID) in conf_set_all_new_symbols() 354 struct symbol *sym = menu->sym; in conf_string() local 387 struct symbol *sym = menu->sym; in conf_sym() local 458 sym = menu->sym; in conf_choice() 557 sym_set_choice_value(sym, child->sym); in conf_choice() 576 sym = menu->sym; in conf() 604 if (!sym) in conf() 626 if (sym) in conf() 630 if (sym) in conf() 642 sym = menu->sym; in check_conf() [all …]
|
A D | mconf.c | 465 struct symbol *sym; in build_conf() local 483 sym = menu->sym; in build_conf() 485 if (!sym) { in build_conf() 618 (sym_has_value(sym) || !sym_is_changeable(sym)) ? in build_conf() 626 (sym_has_value(sym) || !sym_is_changeable(sym)) ? in build_conf() 678 sym = submenu->sym; in conf() 680 sym = NULL; in conf() 692 if (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes) in conf() 703 if (sym) in conf() 809 if (child->sym) in conf_choice() [all …]
|
A D | lkc.h | 86 void menu_add_entry(struct symbol *sym); 110 struct symbol *sym_choice_default(struct symbol *sym); 113 struct symbol *sym_check_deps(struct symbol *sym); 118 return sym->curr.tri; in sym_get_tristate_value() 124 return (struct symbol *)sym->curr.val; in sym_get_choice_value() 132 static inline bool sym_is_choice(struct symbol *sym) in sym_is_choice() argument 134 return sym->flags & SYMBOL_CHOICE ? true : false; in sym_is_choice() 139 return sym->flags & SYMBOL_CHOICEVAL ? true : false; in sym_is_choice_value() 144 return sym->flags & SYMBOL_OPTIONAL ? true : false; in sym_is_optional() 147 static inline bool sym_has_value(struct symbol *sym) in sym_has_value() argument [all …]
|
A D | expr.h | 39 struct symbol *sym; member 52 for (e = (l); e && (s = e->right.sym); e = e->left.expr) 134 #define for_all_symbols(i, sym) for (i = 0; i < SYMBOL_HASHSIZE; i++) for (sym = symbol_hash[i]; sy… argument 202 #define for_all_properties(sym, st, tok) \ argument 203 for (st = sym->prop; st; st = st->next) \ 205 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument 206 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument 207 #define for_all_prompts(sym, st) \ argument 208 for (st = sym->prop; st; st = st->next) \ 231 struct symbol *sym; member [all …]
|
A D | lkc_proto.h | 21 void print_symbol_for_listconfig(struct symbol *sym); 24 void sym_calc_value(struct symbol *sym); 25 enum symbol_type sym_get_type(struct symbol *sym); 26 bool sym_tristate_within_range(struct symbol *sym,tristate tri); 27 bool sym_set_tristate_value(struct symbol *sym,tristate tri); 28 tristate sym_toggle_tristate_value(struct symbol *sym); 29 bool sym_string_valid(struct symbol *sym, const char *newval); 30 bool sym_string_within_range(struct symbol *sym, const char *str); 32 bool sym_is_changeable(struct symbol *sym); 33 struct property * sym_get_choice_prop(struct symbol *sym); [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
A D | nfp_rtsym.c | 215 pr_warn("rtsym '%s': unknown type: %d\n", sym->name, sym->type); in nfp_rtsym_size() 219 return sym->size; in nfp_rtsym_size() 231 sym->name); in nfp_rtsym_to_dest() 247 sym->name, sym->target); in nfp_rtsym_to_dest() 303 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_readl() 329 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_readq() 388 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_writel() 414 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_writeq() 452 if (!sym) { in nfp_rtsym_read_le() 501 if (!sym) in nfp_rtsym_write_le() [all …]
|
/linux/arch/arm64/include/asm/ |
A D | kvm_asm.h | 80 #define DECLARE_KVM_VHE_SYM(sym) extern char sym[] argument 81 #define DECLARE_KVM_NVHE_SYM(sym) extern char kvm_nvhe_sym(sym)[] argument 89 DECLARE_KVM_NVHE_SYM(sym) 104 #define this_cpu_ptr_nvhe_sym(sym) per_cpu_ptr_nvhe_sym(sym, smp_processor_id()) argument 116 #define CHOOSE_NVHE_SYM(sym) sym argument 117 #define CHOOSE_HYP_SYM(sym) CHOOSE_NVHE_SYM(sym) argument 127 #define CHOOSE_VHE_SYM(sym) sym argument 128 #define CHOOSE_HYP_SYM(sym) CHOOSE_VHE_SYM(sym) argument 161 #define CHOOSE_VHE_SYM(sym) sym argument 162 #define CHOOSE_NVHE_SYM(sym) kvm_nvhe_sym(sym) argument [all …]
|
/linux/scripts/genksyms/ |
A D | genksyms.c | 159 for (sym = symtab[h]; sym; sym = sym->hash_next) in find_symbol() 165 if (exact && sym && sym->type != ns) in find_symbol() 167 return sym; in find_symbol() 230 for (sym = symtab[h]; sym; sym = sym->hash_next) { in __add_symbol() 237 if (!sym->is_declared && sym->is_override) { in __add_symbol() 265 if (sym) { in __add_symbol() 277 sym = xmalloc(sizeof(*sym)); in __add_symbol() 465 if (sym && sym->tag == SYM_NORMAL && in read_reference() 471 if (!sym) in read_reference() 639 if (!sym) in export_symbol() [all …]
|
/linux/tools/objtool/ |
A D | elf.c | 317 sym->type = GELF_ST_TYPE(sym->sym.st_info); in elf_add_symbol() 318 sym->bind = GELF_ST_BIND(sym->sym.st_info); in elf_add_symbol() 320 sym->offset = sym->sym.st_value; in elf_add_symbol() 321 sym->len = sym->sym.st_size; in elf_add_symbol() 372 sym = malloc(sizeof(*sym)); in read_symbols() 379 sym->alias = sym; in read_symbols() 410 sym->sec->sym = sym; in read_symbols() 432 sym->pfunc = sym; in read_symbols() 435 sym->cfunc = sym; in read_symbols() 506 reloc->sym = sym; in elf_add_reloc() [all …]
|
/linux/tools/perf/util/ |
A D | symbol_fprintf.c | 10 size_t symbol__fprintf(struct symbol *sym, FILE *fp) in symbol__fprintf() argument 13 sym->start, sym->end, in symbol__fprintf() 14 sym->binding == STB_GLOBAL ? 'g' : in symbol__fprintf() 15 sym->binding == STB_LOCAL ? 'l' : 'w', in symbol__fprintf() 16 sym->name); in symbol__fprintf() 27 if (sym) { in __symbol__fprintf_symname_offs() 28 length = fprintf(fp, "%s", sym->name); in __symbol__fprintf_symname_offs() 30 if (al->addr < sym->end) in __symbol__fprintf_symname_offs() 31 offset = al->addr - sym->start; in __symbol__fprintf_symname_offs() 33 offset = al->addr - al->map->start - sym->start; in __symbol__fprintf_symname_offs() [all …]
|
A D | demangle-ocaml.c | 15 ocaml_is_mangled(const char *sym) in ocaml_is_mangled() argument 17 return 0 == strncmp(sym, caml_prefix, caml_prefix_len) in ocaml_is_mangled() 18 && isupper(sym[caml_prefix_len]); in ocaml_is_mangled() 29 ocaml_demangle_sym(const char *sym) in ocaml_demangle_sym() argument 36 if (!ocaml_is_mangled(sym)) { in ocaml_demangle_sym() 40 len = strlen(sym); in ocaml_demangle_sym() 51 if (sym[i] == '_' && sym[i + 1] == '_') { in ocaml_demangle_sym() 56 else if (sym[i] == '$' && isxdigit(sym[i + 1]) && isxdigit(sym[i + 2])) { in ocaml_demangle_sym() 58 result[j++] = (hex(sym[i + 1]) << 4) | hex(sym[i + 2]); in ocaml_demangle_sym() 62 result[j++] = sym[i++]; in ocaml_demangle_sym()
|
A D | call-path.c | 15 struct symbol *sym, u64 ip, bool in_kernel) in call_path__init() argument 18 cp->sym = sym; in call_path__init() 19 cp->ip = sym ? 0 : ip; in call_path__init() 51 struct symbol *sym, u64 ip, in call_path__new() argument 72 call_path__init(cp, parent, sym, ip, in_kernel); in call_path__new() 79 struct symbol *sym, u64 ip, u64 ks) in call_path__findnew() argument 86 if (sym) in call_path__findnew() 90 return call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew() 97 if (cp->sym == sym && cp->ip == ip) in call_path__findnew() 100 if (sym < cp->sym || (sym == cp->sym && ip < cp->ip)) in call_path__findnew() [all …]
|
A D | annotate.c | 284 ops->target.sym = target.ms.sym; in call__parse() 347 struct symbol *sym = ms->sym; in jump__parse() local 888 struct symbol *sym = ms->sym; in __symbol__inc_addr_samples() local 895 (addr != sym->end || sym->start != sym->end)) { in __symbol__inc_addr_samples() 905 __func__, __LINE__, sym->name, sym->start, addr, sym->end, sym->type == STT_FUNC); in __symbol__inc_addr_samples() 915 sym->start, sym->name, addr, addr - sym->start, evidx, in __symbol__inc_addr_samples() 963 struct symbol *sym = ms->sym; in symbol__inc_addr_samples() local 1534 args->ms.sym = sym; in symbol__parse_objdump_line() 1741 sym->name, sym->start, sym->end - sym->start); in symbol__disassemble_bpf() 1829 args->ms.sym = sym; in symbol__disassemble_bpf() [all …]
|
/linux/arch/powerpc/include/asm/ |
A D | ftrace.h | 78 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument 81 return !strcmp(sym + 1, name) || in arch_syscall_match_sym_name() 82 (!strncmp(sym, ".__se_sys", 9) && !strcmp(sym + 6, name)) || in arch_syscall_match_sym_name() 83 (!strncmp(sym, ".ppc_", 5) && !strcmp(sym + 5, name + 4)) || in arch_syscall_match_sym_name() 84 (!strncmp(sym, ".ppc32_", 7) && !strcmp(sym + 7, name + 4)) || in arch_syscall_match_sym_name() 85 (!strncmp(sym, ".ppc64_", 7) && !strcmp(sym + 7, name + 4)); in arch_syscall_match_sym_name() 90 return !strcmp(sym, name) || in arch_syscall_match_sym_name() 91 (!strncmp(sym, "__se_sys", 8) && !strcmp(sym + 5, name)) || in arch_syscall_match_sym_name() 92 (!strncmp(sym, "ppc_", 4) && !strcmp(sym + 4, name + 4)) || in arch_syscall_match_sym_name() 93 (!strncmp(sym, "ppc32_", 6) && !strcmp(sym + 6, name + 4)) || in arch_syscall_match_sym_name() [all …]
|
/linux/tools/perf/scripts/python/ |
A D | stackcollapse.py | 72 def tidy_function_name(sym, dso): argument 73 if sym is None: 74 sym = '[unknown]' 76 sym = sym.replace(';', ':') 83 sym = sym.replace('<', '') 84 sym = sym.replace('>', '') 85 if sym[0] == 'L' and sym.find('/'): 86 sym = sym[1:] 88 sym = sym[:sym.index('(')] 93 return sym + '_[k]' [all …]
|
/linux/tools/perf/arch/powerpc/util/ |
A D | sym-handling.c | 16 char *sym = syma->name; in arch__choose_best_symbol() local 20 if (*sym == '.') in arch__choose_best_symbol() 21 sym++; in arch__choose_best_symbol() 25 if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3)) in arch__choose_best_symbol() 27 if (strlen(sym) >= 10 && !strncmp(sym, "compat_SyS", 10)) in arch__choose_best_symbol() 72 s->arch_sym = sym->st_other; in arch__sym_update() 80 struct symbol *sym) in arch__fix_tev_from_maps() argument 94 if (pev->point.offset || !map || !sym) in arch__fix_tev_from_maps() 123 struct symbol *sym = NULL; in arch__post_process_probe_trace_events() local 133 map__for_each_symbol(map, sym, tmp) { in arch__post_process_probe_trace_events() [all …]
|
/linux/include/asm-generic/ |
A D | export.h | 65 .macro __ksym_marker sym 67 __ksym_marker_\sym: 71 #define __EXPORT_SYMBOL(sym, val, sec) \ argument 72 __ksym_marker sym; \ 73 __cond_export_sym(sym, val, sec, __is_defined(__KSYM_##sym)) 74 #define __cond_export_sym(sym, val, sec, conf) \ argument 75 ___cond_export_sym(sym, val, sec, conf) 76 #define ___cond_export_sym(sym, val, sec, enabled) \ argument 77 __cond_export_sym_##enabled(sym, val, sec) 78 #define __cond_export_sym_1(sym, val, sec) ___EXPORT_SYMBOL sym, val, sec argument [all …]
|
/linux/lib/zlib_inflate/ |
A D | inftrees.c | 27 unsigned sym; /* index of code symbols */ in zlib_inflate_table() local 95 for (sym = 0; sym < codes; sym++) in zlib_inflate_table() 96 count[lens[sym]]++; in zlib_inflate_table() 132 for (sym = 0; sym < codes; sym++) in zlib_inflate_table() 133 if (lens[sym] != 0) work[offs[lens[sym]]++] = (unsigned short)sym; in zlib_inflate_table() 205 if ((int)(work[sym]) < end) { in zlib_inflate_table() 207 this.val = work[sym]; in zlib_inflate_table() 209 else if ((int)(work[sym]) > end) { in zlib_inflate_table() 211 this.val = base[work[sym]]; in zlib_inflate_table() 239 sym++; in zlib_inflate_table() [all …]
|
/linux/arch/x86/tools/ |
A D | relocs.c | 291 Elf_Sym *sym; in sym_lookup() local 300 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup() 304 return sym; in sym_lookup() 542 sym->st_name = elf_word_to_cpu(sym->st_name); in read_symtabs() 543 sym->st_value = elf_addr_to_cpu(sym->st_value); in read_symtabs() 544 sym->st_size = elf_xword_to_cpu(sym->st_size); in read_symtabs() 545 sym->st_shndx = elf_half_to_cpu(sym->st_shndx); in read_symtabs() 613 Elf_Sym *sym; in print_absolute_symbols() local 621 j, sym->st_value, sym->st_size, in print_absolute_symbols() 659 Elf_Sym *sym; in print_absolute_relocs() local [all …]
|
/linux/arch/arm/include/asm/ |
A D | ftrace.h | 60 static inline bool arch_syscall_match_sym_name(const char *sym, in arch_syscall_match_sym_name() argument 63 if (!strcmp(sym, "sys_mmap2")) in arch_syscall_match_sym_name() 64 sym = "sys_mmap_pgoff"; in arch_syscall_match_sym_name() 65 else if (!strcmp(sym, "sys_statfs64_wrapper")) in arch_syscall_match_sym_name() 66 sym = "sys_statfs64"; in arch_syscall_match_sym_name() 67 else if (!strcmp(sym, "sys_fstatfs64_wrapper")) in arch_syscall_match_sym_name() 68 sym = "sys_fstatfs64"; in arch_syscall_match_sym_name() 69 else if (!strcmp(sym, "sys_arm_fadvise64_64")) in arch_syscall_match_sym_name() 70 sym = "sys_fadvise64_64"; in arch_syscall_match_sym_name() 73 return !strcasecmp(sym, name); in arch_syscall_match_sym_name()
|