/linux-4.4.14/scripts/kconfig/ |
D | symbol.c | 38 static void sym_add_default(struct symbol *sym, const char *def) in sym_add_default() argument 40 struct property *prop = prop_alloc(P_DEFAULT, sym); in sym_add_default() 47 struct symbol *sym; in sym_init() local 57 sym = sym_lookup("UNAME_RELEASE", 0); in sym_init() 58 sym->type = S_STRING; in sym_init() 59 sym->flags |= SYMBOL_AUTO; in sym_init() 60 sym_add_default(sym, uts.release); in sym_init() 63 enum symbol_type sym_get_type(struct symbol *sym) in sym_get_type() argument 65 enum symbol_type type = sym->type; in sym_get_type() 68 if (sym_is_choice_value(sym) && sym->visible == yes) in sym_get_type() [all …]
|
D | confdata.c | 86 struct symbol *sym; in conf_expand_value() local 100 sym = sym_lookup(name, 0); in conf_expand_value() 101 sym_calc_value(sym); in conf_expand_value() 102 strcat(res_value, sym_get_string_value(sym)); in conf_expand_value() 126 static int conf_set_sym_val(struct symbol *sym, int def, int def_flags, char *p) in conf_set_sym_val() argument 130 switch (sym->type) { in conf_set_sym_val() 133 sym->def[def].tri = mod; in conf_set_sym_val() 134 sym->flags |= def_flags; in conf_set_sym_val() 140 sym->def[def].tri = yes; in conf_set_sym_val() 141 sym->flags |= def_flags; in conf_set_sym_val() [all …]
|
D | menu.c | 47 void menu_add_entry(struct symbol *sym) in menu_add_entry() argument 53 menu->sym = sym; in menu_add_entry() 61 if (sym) in menu_add_entry() 62 menu_add_symbol(P_SYMBOL, sym, NULL); in menu_add_entry() 98 if (e->left.sym == &symbol_mod) in menu_check_dep() 114 struct symbol *sym = current_entry->sym; in menu_set_type() local 116 if (sym->type == type) in menu_set_type() 118 if (sym->type == S_UNKNOWN) { in menu_set_type() 119 sym->type = type; in menu_set_type() 124 sym->name ? sym->name : "<choice>", in menu_set_type() [all …]
|
D | expr.c | 17 struct expr *expr_alloc_symbol(struct symbol *sym) in expr_alloc_symbol() argument 21 e->left.sym = sym; in expr_alloc_symbol() 46 e->left.sym = s1; in expr_alloc_comp() 47 e->right.sym = s2; in expr_alloc_comp() 87 e->left.sym = org->left.sym; in expr_copy() 88 e->right.sym = org->right.sym; in expr_copy() 154 e1->left.sym == e2->left.sym && in __expr_eliminate_eq() 155 (e1->left.sym == &symbol_yes || e1->left.sym == &symbol_no)) in __expr_eliminate_eq() 213 return e1->left.sym == e2->left.sym && e1->right.sym == e2->right.sym; in expr_eq() 215 return e1->left.sym == e2->left.sym; in expr_eq() [all …]
|
D | conf.c | 84 static int conf_askvalue(struct symbol *sym, const char *def) in conf_askvalue() argument 86 enum symbol_type type = sym_get_type(sym); in conf_askvalue() 88 if (!sym_has_value(sym)) in conf_askvalue() 94 if (!sym_is_changable(sym)) { in conf_askvalue() 104 if (sym_has_value(sym)) { in conf_askvalue() 135 struct symbol *sym = menu->sym; in conf_string() local 140 printf("(%s) ", sym->name); in conf_string() 141 def = sym_get_string_value(sym); in conf_string() 142 if (sym_get_string_value(sym)) in conf_string() 144 if (!conf_askvalue(sym, def)) in conf_string() [all …]
|
D | lkc.h | 102 void menu_add_entry(struct symbol *sym); 108 void menu_add_symbol(enum prop_type type, struct symbol *sym, struct expr *dep); 139 struct symbol *sym_choice_default(struct symbol *sym); 140 const char *sym_get_string_default(struct symbol *sym); 141 struct symbol *sym_check_deps(struct symbol *sym); 142 struct property *prop_alloc(enum prop_type type, struct symbol *sym); 144 struct property *sym_get_env_prop(struct symbol *sym); 146 static inline tristate sym_get_tristate_value(struct symbol *sym) in sym_get_tristate_value() argument 148 return sym->curr.tri; in sym_get_tristate_value() 152 static inline struct symbol *sym_get_choice_value(struct symbol *sym) in sym_get_choice_value() argument [all …]
|
D | expr.h | 39 struct symbol *sym; member 52 for (e = (l); e && (s = e->right.sym); e = e->left.expr) 90 #define for_all_symbols(i, sym) for (i = 0; i < SYMBOL_HASHSIZE; i++) for (sym = symbol_hash[i]; sy… argument 146 struct symbol *sym; /* the symbol for which the property is associated */ member 158 #define for_all_properties(sym, st, tok) \ argument 159 for (st = sym->prop; st; st = st->next) \ 161 #define for_all_defaults(sym, st) for_all_properties(sym, st, P_DEFAULT) argument 162 #define for_all_choices(sym, st) for_all_properties(sym, st, P_CHOICE) argument 163 #define for_all_prompts(sym, st) \ argument 164 for (st = sym->prop; st; st = st->next) \ [all …]
|
D | mconf.c | 468 struct symbol *sym; in build_conf() local 486 sym = menu->sym; in build_conf() 488 if (!sym) { in build_conf() 529 type = sym_get_type(sym); in build_conf() 530 if (sym_is_choice(sym)) { in build_conf() 531 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf() 536 if (menu_is_visible(child) && child->sym == def_sym) in build_conf() 540 val = sym_get_tristate_value(sym); in build_conf() 541 if (sym_is_changable(sym)) { in build_conf() 584 val = sym_get_tristate_value(sym); in build_conf() [all …]
|
D | lkc_proto.h | 37 void sym_calc_value(struct symbol *sym); 38 enum symbol_type sym_get_type(struct symbol *sym); 39 bool sym_tristate_within_range(struct symbol *sym,tristate tri); 40 bool sym_set_tristate_value(struct symbol *sym,tristate tri); 41 tristate sym_toggle_tristate_value(struct symbol *sym); 42 bool sym_string_valid(struct symbol *sym, const char *newval); 43 bool sym_string_within_range(struct symbol *sym, const char *str); 44 bool sym_set_string_value(struct symbol *sym, const char *newval); 45 bool sym_is_changable(struct symbol *sym); 46 struct property * sym_get_choice_prop(struct symbol *sym); [all …]
|
D | nconf.c | 735 struct symbol *sym; in build_conf() local 745 sym = menu->sym; in build_conf() 747 if (!sym) { in build_conf() 792 type = sym_get_type(sym); in build_conf() 793 if (sym_is_choice(sym)) { in build_conf() 794 struct symbol *def_sym = sym_get_choice_value(sym); in build_conf() 799 if (menu_is_visible(child) && child->sym == def_sym) in build_conf() 803 val = sym_get_tristate_value(sym); in build_conf() 804 if (sym_is_changable(sym)) { in build_conf() 852 val = sym_get_tristate_value(sym); in build_conf() [all …]
|
D | qconf.cc | 107 struct symbol* sym; in updateMenu() local 120 sym = menu->sym; in updateMenu() 130 if (sym && list->rootEntry == menu) in updateMenu() 134 if (sym) in updateMenu() 145 if (!sym) in updateMenu() 148 setText(nameColIdx, QString::fromLocal8Bit(sym->name)); in updateMenu() 150 type = sym_get_type(sym); in updateMenu() 156 if (!sym_is_changable(sym) && list->optMode == normalOpt) { in updateMenu() 163 expr = sym_get_tristate_value(sym); in updateMenu() 166 if (sym_is_choice_value(sym) && type == S_BOOLEAN) in updateMenu() [all …]
|
D | zconf.y | 149 struct symbol *sym = sym_lookup($2, 0); variable 150 sym->flags |= SYMBOL_OPTIONAL; 151 menu_add_entry(sym); 163 struct symbol *sym = sym_lookup($2, 0); variable 164 sym->flags |= SYMBOL_OPTIONAL; 165 menu_add_entry(sym); 249 struct symbol *sym = sym_lookup($2, SYMBOL_CHOICE); variable 250 sym->flags |= SYMBOL_AUTO; 251 menu_add_entry(sym); 300 current_entry->sym->flags |= SYMBOL_OPTIONAL; [all …]
|
D | gconf.c | 787 struct symbol *sym; in renderer_edited() local 793 sym = menu->sym; in renderer_edited() 798 sym_set_string_value(sym, new_def); in renderer_edited() 808 struct symbol *sym = menu->sym; in change_sym_value() local 811 if (!sym) in change_sym_value() 823 switch (sym_get_type(sym)) { in change_sym_value() 826 if (!sym_tristate_within_range(sym, newval)) in change_sym_value() 828 sym_set_tristate_value(sym, newval); in change_sym_value() 848 if (!menu->sym) in toggle_sym_value() 851 sym_toggle_tristate_value(menu->sym); in toggle_sym_value() [all …]
|
D | zconf.tab.c | 1717 struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), 0); local 1718 sym->flags |= SYMBOL_OPTIONAL; 1719 menu_add_entry(sym); 1735 struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), 0); local 1736 sym->flags |= SYMBOL_OPTIONAL; 1737 menu_add_entry(sym); 1825 struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), SYMBOL_CHOICE); local 1826 sym->flags |= SYMBOL_AUTO; 1827 menu_add_entry(sym); 1874 current_entry->sym->flags |= SYMBOL_OPTIONAL; [all …]
|
D | util.c | 37 struct symbol *sym, *env_sym; in file_write_dep() local 57 expr_list_for_each_sym(sym_env_list, e, sym) { in file_write_dep() 61 prop = sym_get_env_prop(sym); in file_write_dep()
|
D | qconf.h | 260 QString debug_info(struct symbol *sym); 262 static void expr_print_help(void *data, struct symbol *sym, const char *str); 266 struct symbol *sym; variable
|
D | kxgettext.c | 179 if (menu->sym != NULL && menu_has_help(menu)) in menu_build_message_list() 180 message__add(menu_get_help(menu), menu->sym->name, in menu_build_message_list()
|
D | zconf.tab.c_shipped | 1717 struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), 0); 1718 sym->flags |= SYMBOL_OPTIONAL; 1719 menu_add_entry(sym); 1735 struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), 0); 1736 sym->flags |= SYMBOL_OPTIONAL; 1737 menu_add_entry(sym); 1825 struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), SYMBOL_CHOICE); 1826 sym->flags |= SYMBOL_AUTO; 1827 menu_add_entry(sym); 1874 current_entry->sym->flags |= SYMBOL_OPTIONAL; [all …]
|
/linux-4.4.14/include/linux/ |
D | export.h | 45 #define __CRC_SYMBOL(sym, sec) \ argument 46 extern __visible void *__crc_##sym __attribute__((weak)); \ 47 static const unsigned long __kcrctab_##sym \ 49 __attribute__((section("___kcrctab" sec "+" #sym), unused)) \ 50 = (unsigned long) &__crc_##sym; 52 #define __CRC_SYMBOL(sym, sec) argument 56 #define __EXPORT_SYMBOL(sym, sec) \ argument 57 extern typeof(sym) sym; \ 58 __CRC_SYMBOL(sym, sec) \ 59 static const char __kstrtab_##sym[] \ [all …]
|
D | kbuild.h | 4 #define DEFINE(sym, val) \ argument 5 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 9 #define OFFSET(sym, str, mem) \ argument 10 DEFINE(sym, offsetof(struct str, mem))
|
/linux-4.4.14/scripts/genksyms/ |
D | genksyms.c | 169 struct symbol *sym; in find_symbol() local 171 for (sym = symtab[h]; sym; sym = sym->hash_next) in find_symbol() 172 if (map_to_ns(sym->type) == map_to_ns(ns) && in find_symbol() 173 strcmp(name, sym->name) == 0 && in find_symbol() 174 sym->is_declared) in find_symbol() 177 if (exact && sym && sym->type != ns) in find_symbol() 179 return sym; in find_symbol() 182 static int is_unknown_symbol(struct symbol *sym) in is_unknown_symbol() argument 186 return ((sym->type == SYM_STRUCT || in is_unknown_symbol() 187 sym->type == SYM_UNION || in is_unknown_symbol() [all …]
|
/linux-4.4.14/arch/x86/entry/ |
D | syscall_64.c | 9 #define __SYSCALL_COMMON(nr, sym, compat) __SYSCALL_64(nr, sym, compat) argument 12 # define __SYSCALL_X32(nr, sym, compat) __SYSCALL_64(nr, sym, compat) argument 14 # define __SYSCALL_X32(nr, sym, compat) /* nothing */ argument 17 #define __SYSCALL_64(nr, sym, compat) extern asmlinkage long sym(unsigned long, unsigned long, unsi… argument 21 #define __SYSCALL_64(nr, sym, compat) [nr] = sym, argument
|
D | syscall_32.c | 10 #define SYM(sym, compat) compat argument 12 #define SYM(sym, compat) sym argument 15 #define __SYSCALL_I386(nr, sym, compat) extern asmlinkage long SYM(sym, compat)(unsigned long, unsi… argument 19 #define __SYSCALL_I386(nr, sym, compat) [nr] = SYM(sym, compat), argument
|
D | entry_64.S | 653 .macro apicinterrupt3 num sym do_sym 654 ENTRY(\sym) 657 .Lcommon_\sym: 660 END(\sym) 664 #define trace(sym) trace_##sym argument 665 #define smp_trace(sym) smp_trace_##sym argument 667 .macro trace_apicinterrupt num sym 668 apicinterrupt3 \num trace(\sym) smp_trace(\sym) 671 .macro trace_apicinterrupt num sym do_sym 675 .macro apicinterrupt num sym do_sym [all …]
|
/linux-4.4.14/lib/zlib_inflate/ |
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() 188 sym = 0; /* starting code symbol */ 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() 210 this.op = (unsigned char)(extra[work[sym]]); in zlib_inflate_table() [all …]
|
/linux-4.4.14/tools/perf/arch/powerpc/util/ |
D | sym-handling.c | 23 void arch__elf_sym_adjust(GElf_Sym *sym) in arch__elf_sym_adjust() argument 25 sym->st_value += PPC64_LOCAL_ENTRY_OFFSET(sym->st_other); in arch__elf_sym_adjust() 34 char *sym = syma->name; in arch__choose_best_symbol() local 37 if (*sym == '.') in arch__choose_best_symbol() 38 sym++; in arch__choose_best_symbol() 41 if (strlen(sym) >= 3 && !strncmp(sym, "SyS", 3)) in arch__choose_best_symbol() 43 if (strlen(sym) >= 10 && !strncmp(sym, "compat_SyS", 10)) in arch__choose_best_symbol()
|
D | Build | 2 libperf-y += sym-handling.o
|
D | skip-callchain-idx.c | 265 dso->long_name, al.sym->name, ip, rc); in arch_skip_callchain_idx()
|
/linux-4.4.14/scripts/ |
D | kallsyms.c | 36 unsigned char *sym; member 91 static int check_symbol_range(const char *sym, unsigned long long addr, in check_symbol_range() argument 100 if (strcmp(sym, ar->start_sym) == 0) { in check_symbol_range() 103 } else if (strcmp(sym, ar->end_sym) == 0) { in check_symbol_range() 115 char *sym, stype; in read_symbol() local 131 sym = str; in read_symbol() 134 sym++; in read_symbol() 137 if (strcmp(sym, "_text") == 0) in read_symbol() 139 else if (check_symbol_range(sym, s->addr, text_ranges, in read_symbol() 145 if (strcmp(sym, "__kernel_syscall_via_break") && in read_symbol() [all …]
|
D | export_report.pl | 31 foreach my $sym (sort numerically @{$list}) { 32 my ($symbol, $no) = split /\s+/, $sym; 130 my $sym = (split /([,"])/,)[4]; 131 my ($module, $value, $symbol, $gpl) = @{$SYMBOL{$sym}}; 132 $SYMBOL{ $sym } = [ $module, $value+1, $symbol, $gpl]; 133 push(@{$MODULE{$thismod}} , $sym);
|
D | docproc.c | 82 static void consume_symbol(const char *sym) in consume_symbol() argument 89 if (strcmp(sym, all_list[i])) in consume_symbol() 154 static void add_new_symbol(struct symfile *sym, char * symname) in add_new_symbol() argument 156 sym->symbollist = in add_new_symbol() 157 realloc(sym->symbollist, (sym->symbolcnt + 1) * sizeof(char *)); in add_new_symbol() 158 sym->symbollist[sym->symbolcnt++].name = strdup(symname); in add_new_symbol() 198 struct symfile *sym; in find_export_symbols() local 207 sym = add_new_file(filename); in find_export_symbols() 235 add_new_symbol(sym, p); in find_export_symbols() 269 struct symfile * sym = &symfilelist[i]; in docfunctions() local [all …]
|
D | sortextable.h | 100 Elf_Sym *sym; in do_func() local 181 sym = (void *)ehdr + _r(&symtab_sec->sh_offset); in do_func() 182 sym += i; in do_func() 183 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) in do_func() 185 idx = r(&sym->st_name); in do_func() 187 sort_needed_sym = sym; in do_func() 197 sort_needed_sec = &shdr[get_secindex(r2(&sym->st_shndx), in do_func()
|
D | bloat-o-meter | 17 sym = {} 28 sym[name] = sym.get(name, 0) + int(size, 16) 29 return sym
|
D | unifdef.c | 829 int sym; in eval_unary() local 869 sym = findsym(cp); in eval_unary() 870 if (sym < 0) { in eval_unary() 873 *valp = (value[sym] != NULL); in eval_unary() 883 sym = findsym(cp); in eval_unary() 885 if (sym < 0) { in eval_unary() 888 } else if (value[sym] == NULL) { in eval_unary() 892 *valp = strtol(value[sym], &ep, 0); in eval_unary() 893 if (*ep != '\0' || ep == value[sym]) in eval_unary() 1154 addsym(bool ignorethis, bool definethis, char *sym) in addsym() argument [all …]
|
D | recordmcount.h | 135 static void fn_ELF_R_INFO(Elf_Rel *const rp, unsigned sym, unsigned type) in fn_ELF_R_INFO() argument 137 rp->r_info = _w(ELF_R_INFO(sym, type)); in fn_ELF_R_INFO() 139 static void (*Elf_r_info)(Elf_Rel *const rp, unsigned sym, unsigned type) = fn_ELF_R_INFO;
|
D | recordmcount.c | 394 static void MIPS64_r_info(Elf64_Rel *const rp, unsigned sym, unsigned type) in MIPS64_r_info() argument 397 .r_mips = { .r_sym = w(sym), .r_type = type } in MIPS64_r_info()
|
/linux-4.4.14/tools/perf/util/ |
D | annotate.c | 443 int symbol__annotate_init(struct map *map __maybe_unused, struct symbol *sym) in symbol__annotate_init() argument 445 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_init() 450 int symbol__alloc_hist(struct symbol *sym) in symbol__alloc_hist() argument 452 struct annotation *notes = symbol__annotation(sym); in symbol__alloc_hist() 453 const size_t size = symbol__size(sym); in symbol__alloc_hist() 477 static int symbol__alloc_hist_cycles(struct symbol *sym) in symbol__alloc_hist_cycles() argument 479 struct annotation *notes = symbol__annotation(sym); in symbol__alloc_hist_cycles() 480 const size_t size = symbol__size(sym); in symbol__alloc_hist_cycles() 488 void symbol__annotate_zero_histograms(struct symbol *sym) in symbol__annotate_zero_histograms() argument 490 struct annotation *notes = symbol__annotation(sym); in symbol__annotate_zero_histograms() [all …]
|
D | parse-events.l | 86 static int sym(yyscan_t scanner, int type, int config) in sym() function 221 cpu-cycles|cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CPU_CYCLES); } 222 stalled-cycles-frontend|idle-cycles-frontend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT… 223 stalled-cycles-backend|idle-cycles-backend { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_H… 224 instructions { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_INSTRUCTIONS); } 225 cache-references { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_REFERENCES); } 226 cache-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_CACHE_MISSES); } 227 branch-instructions|branches { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_INS… 228 branch-misses { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BRANCH_MISSES); } 229 bus-cycles { return sym(yyscanner, PERF_TYPE_HARDWARE, PERF_COUNT_HW_BUS_CYCLES); } [all …]
|
D | annotate.h | 141 static inline struct annotation *symbol__annotation(struct symbol *sym) in symbol__annotation() argument 143 return (void *)sym - symbol_conf.priv_size; in symbol__annotation() 154 int symbol__alloc_hist(struct symbol *sym); 155 void symbol__annotate_zero_histograms(struct symbol *sym); 157 int symbol__annotate(struct symbol *sym, struct map *map, size_t privsize); 161 int symbol__annotate_init(struct map *map __maybe_unused, struct symbol *sym); 162 int symbol__annotate_printf(struct symbol *sym, struct map *map, 165 void symbol__annotate_zero_histogram(struct symbol *sym, int evidx); 166 void symbol__annotate_decay_histogram(struct symbol *sym, int evidx); 171 int symbol__tty_annotate(struct symbol *sym, struct map *map, [all …]
|
D | symbol.h | 61 void symbol__delete(struct symbol *sym); 75 static inline size_t symbol__size(const struct symbol *sym) in symbol__size() argument 77 return sym->end - sym->start; in symbol__size() 150 static inline void *symbol__priv(struct symbol *sym) in symbol__priv() argument 152 return ((void *)sym) - symbol_conf.priv_size; in symbol__priv() 163 struct symbol *sym; member 168 struct symbol *sym; member 189 struct symbol *sym; member 242 struct symbol *symbol__next_by_name(struct symbol *sym); 245 struct symbol *dso__next_symbol(struct symbol *sym); [all …]
|
D | thread-stack.c | 339 struct symbol *sym, u64 ip, bool in_kernel) in call_path__init() argument 342 cp->sym = sym; in call_path__init() 343 cp->ip = sym ? 0 : ip; in call_path__init() 375 struct symbol *sym, u64 ip, in call_path__new() argument 396 call_path__init(cp, parent, sym, ip, in_kernel); in call_path__new() 403 struct symbol *sym, u64 ip, u64 ks) in call_path__findnew() argument 410 if (sym) in call_path__findnew() 414 return call_path__new(cpr, parent, sym, ip, in_kernel); in call_path__findnew() 421 if (cp->sym == sym && cp->ip == ip) in call_path__findnew() 424 if (sym < cp->sym || (sym == cp->sym && ip < cp->ip)) in call_path__findnew() [all …]
|
D | symbol.c | 232 struct symbol *sym = calloc(1, (symbol_conf.priv_size + in symbol__new() local 233 sizeof(*sym) + namelen)); in symbol__new() 234 if (sym == NULL) in symbol__new() 238 sym = ((void *)sym) + symbol_conf.priv_size; in symbol__new() 240 sym->start = start; in symbol__new() 241 sym->end = len ? start + len : start; in symbol__new() 242 sym->binding = binding; in symbol__new() 243 sym->namelen = namelen - 1; in symbol__new() 246 __func__, name, start, sym->end); in symbol__new() 247 memcpy(sym->name, name, namelen); in symbol__new() [all …]
|
D | symbol-elf.c | 67 #define elf_symtab__for_each_symbol(syms, nr_syms, idx, sym) \ argument 68 for (idx = 0, gelf_getsym(syms, idx, &sym);\ 70 idx++, gelf_getsym(syms, idx, &sym)) 72 static inline uint8_t elf_sym__type(const GElf_Sym *sym) in elf_sym__type() argument 74 return GELF_ST_TYPE(sym->st_info); in elf_sym__type() 81 static inline int elf_sym__is_function(const GElf_Sym *sym) in elf_sym__is_function() argument 83 return (elf_sym__type(sym) == STT_FUNC || in elf_sym__is_function() 84 elf_sym__type(sym) == STT_GNU_IFUNC) && in elf_sym__is_function() 85 sym->st_name != 0 && in elf_sym__is_function() 86 sym->st_shndx != SHN_UNDEF; in elf_sym__is_function() [all …]
|
D | db-export.c | 218 int db_export__symbol(struct db_export *dbe, struct symbol *sym, in db_export__symbol() argument 221 u64 *sym_db_id = symbol__priv(sym); in db_export__symbol() 229 return dbe->export_symbol(dbe, sym, dso); in db_export__symbol() 258 if (!al->sym) { in db_ids_from_al() 259 al->sym = symbol__new(al->addr, 0, 0, "unknown"); in db_ids_from_al() 260 if (al->sym) in db_ids_from_al() 262 al->sym); in db_ids_from_al() 265 if (al->sym) { in db_ids_from_al() 266 u64 *db_id = symbol__priv(al->sym); in db_ids_from_al() 268 err = db_export__symbol(dbe, al->sym, dso); in db_ids_from_al() [all …]
|
D | callchain.c | 413 call->ms.sym = cursor_node->sym; in fill_node() 440 struct symbol *sym = node->sym; in match_chain() local 442 if (cnode->ms.sym && sym && in match_chain() 444 return cnode->ms.sym->start - sym->start; in match_chain() 650 list->ms.map, list->ms.sym); in merge_chain_branch() 686 u64 ip, struct map *map, struct symbol *sym) in callchain_cursor_append() argument 700 node->sym = sym; in callchain_cursor_append() 735 al->sym = node->sym; in fill_callchain_info() 741 if (al->sym == NULL) { in fill_callchain_info() 778 if (cl->ms.sym) { in callchain_list__sym_name() [all …]
|
D | sort.c | 203 if (!left->ms.sym && !right->ms.sym) in sort__sym_cmp() 216 return _sort__sym_cmp(left->ms.sym, right->ms.sym); in sort__sym_cmp() 222 if (!left->ms.sym || !right->ms.sym) in sort__sym_sort() 223 return cmp_null(left->ms.sym, right->ms.sym); in sort__sym_sort() 225 return strcmp(right->ms.sym->name, left->ms.sym->name); in sort__sym_sort() 228 static int _hist_entry__sym_snprintf(struct map *map, struct symbol *sym, in _hist_entry__sym_snprintf() argument 241 if (sym && map) { in _hist_entry__sym_snprintf() 243 ret += repsep_snprintf(bf + ret, size - ret, "%s", sym->name); in _hist_entry__sym_snprintf() 245 ip - map->unmap_ip(map, sym->start)); in _hist_entry__sym_snprintf() 251 sym->name); in _hist_entry__sym_snprintf() [all …]
|
D | srcline.c | 270 char *__get_srcline(struct dso *dso, u64 addr, struct symbol *sym, in __get_srcline() argument 312 if (sym) { in __get_srcline() 313 if (asprintf(&srcline, "%s+%" PRIu64, show_sym ? sym->name : "", in __get_srcline() 314 addr - sym->start) < 0) in __get_srcline() 327 char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym, in get_srcline() argument 330 return __get_srcline(dso, addr, sym, show_sym, false); in get_srcline()
|
D | map.c | 264 struct symbol *sym = rb_entry(nd, struct symbol, rb_node); in map__fixup_start() local 265 map->start = sym->start; in map__fixup_start() 274 struct symbol *sym = rb_entry(nd, struct symbol, rb_node); in map__fixup_end() local 275 map->end = sym->end; in map__fixup_end() 559 struct symbol *sym; in maps__find_symbol_by_name() local 567 sym = map__find_symbol_by_name(pos, name, filter); in maps__find_symbol_by_name() 569 if (sym == NULL) in maps__find_symbol_by_name() 576 sym = NULL; in maps__find_symbol_by_name() 579 return sym; in maps__find_symbol_by_name() 588 struct symbol *sym = maps__find_symbol_by_name(&mg->maps[type], name, mapp, filter); in map_groups__find_symbol_by_name() local [all …]
|
D | unwind-libdw.c | 66 e.sym = al.sym; in entry() 69 al.sym ? al.sym->name : "''", in entry()
|
D | hist.c | 69 if (h->ms.sym) { in hists__calc_col_len() 70 symlen = h->ms.sym->namelen + 4; in hists__calc_col_len() 93 if (h->branch_info->from.sym) { in hists__calc_col_len() 94 symlen = (int)h->branch_info->from.sym->namelen + 4; in hists__calc_col_len() 107 if (h->branch_info->to.sym) { in hists__calc_col_len() 108 symlen = (int)h->branch_info->to.sym->namelen + 4; in hists__calc_col_len() 123 if (h->mem_info->daddr.sym) { in hists__calc_col_len() 124 symlen = (int)h->mem_info->daddr.sym->namelen + 4 in hists__calc_col_len() 136 if (h->mem_info->iaddr.sym) { in hists__calc_col_len() 137 symlen = (int)h->mem_info->iaddr.sym->namelen + 4 in hists__calc_col_len() [all …]
|
D | probe-event.c | 144 struct symbol *sym; in kernel_get_symbol_address_by_name() local 152 sym = __find_kernel_function_by_name(name, &map); in kernel_get_symbol_address_by_name() 153 if (!sym) in kernel_get_symbol_address_by_name() 155 *addr = map->unmap_ip(map, sym->start) - in kernel_get_symbol_address_by_name() 315 struct symbol *sym; in find_alternative_probe_point() local 328 map__for_each_symbol_by_name(map, pp->function, sym) { in find_alternative_probe_point() 330 address = sym->start; in find_alternative_probe_point() 332 address = map->unmap_ip(map, sym->start); in find_alternative_probe_point() 1886 struct symbol *sym = NULL; in find_perf_probe_point_from_map() local 1895 sym = map__find_symbol(map, addr, NULL); in find_perf_probe_point_from_map() [all …]
|
D | machine.c | 1491 static bool symbol__match_regex(struct symbol *sym, regex_t *regex) in symbol__match_regex() argument 1493 if (sym->name && !regexec(regex, sym->name, 0, NULL, 0)) in symbol__match_regex() 1516 ams->sym = al.sym; in ip__resolve_ams() 1539 ams->sym = al.sym; in ip__resolve_data() 1567 al.sym = NULL; in add_callchain_ip() 1599 if (al.sym != NULL) { in add_callchain_ip() 1601 symbol__match_regex(al.sym, &parent_regex)) in add_callchain_ip() 1602 *parent = al.sym; in add_callchain_ip() 1604 symbol__match_regex(al.sym, &ignore_callees_regex)) { in add_callchain_ip() 1612 return callchain_cursor_append(&callchain_cursor, al.addr, al.map, al.sym); in add_callchain_ip() [all …]
|
D | db-export.h | 58 int (*export_symbol)(struct db_export *dbe, struct symbol *sym, 93 int db_export__symbol(struct db_export *dbe, struct symbol *sym,
|
D | callchain.h | 117 struct symbol *sym; member 166 struct map *map, struct symbol *sym);
|
D | event.c | 980 al->sym = map__find_symbol(al->map, al->addr, in thread__find_addr_location() 983 al->sym = NULL; in thread__find_addr_location() 1022 al->sym = NULL; in perf_event__preprocess_sample() 1045 al->sym = map__find_symbol(al->map, al->addr, in perf_event__preprocess_sample() 1050 (!al->sym || !strlist__has_entry(symbol_conf.sym_list, in perf_event__preprocess_sample() 1051 al->sym->name))) { in perf_event__preprocess_sample() 1103 al->sym = NULL; in perf_event__preprocess_sample_addr() 1106 al->sym = map__find_symbol(al->map, al->addr, NULL); in perf_event__preprocess_sample_addr()
|
D | unwind.h | 11 struct symbol *sym; member
|
D | unwind-libunwind.c | 535 e.sym = al.sym; in entry() 538 al.sym ? al.sym->name : "''", in entry()
|
D | intel-pt.c | 1264 struct symbol *sym, *start; in intel_pt_switch_ip() local 1280 for (sym = start; sym; sym = dso__next_symbol(sym)) { in intel_pt_switch_ip() 1281 if (sym->binding == STB_GLOBAL && in intel_pt_switch_ip() 1282 !strcmp(sym->name, "__switch_to")) { in intel_pt_switch_ip() 1283 ip = map->unmap_ip(map, sym->start); in intel_pt_switch_ip() 1299 for (sym = start; sym; sym = dso__next_symbol(sym)) { in intel_pt_switch_ip() 1300 if (!strcmp(sym->name, ptss)) { in intel_pt_switch_ip() 1301 ip = map->unmap_ip(map, sym->start); in intel_pt_switch_ip()
|
D | thread-stack.h | 86 struct symbol *sym; member
|
D | util.h | 316 char *get_srcline(struct dso *dso, u64 addr, struct symbol *sym, 318 char *__get_srcline(struct dso *dso, u64 addr, struct symbol *sym,
|
D | session.c | 1820 if (node->sym && node->sym->ignore) in perf_evsel__print_ip() 1834 symbol__fprintf_symname_offs(node->sym, &node_al, stdout); in perf_evsel__print_ip() 1836 symbol__fprintf_symname(node->sym, stdout); in perf_evsel__print_ip() 1858 if (al->sym && al->sym->ignore) in perf_evsel__print_ip() 1867 symbol__fprintf_symname_offs(al->sym, al, in perf_evsel__print_ip() 1870 symbol__fprintf_symname(al->sym, stdout); in perf_evsel__print_ip()
|
D | map.h | 140 typedef int (*symbol_filter_t)(struct map *map, struct symbol *sym);
|
D | parse-events.c | 2047 struct event_symbol *sym; in parse_events_term__sym_hw() local 2050 sym = &event_symbols_hw[idx]; in parse_events_term__sym_hw() 2055 (char *) sym->symbol, 0, 0, 0); in parse_events_term__sym_hw() 2059 (char *) "event", (char *) sym->symbol, in parse_events_term__sym_hw()
|
D | probe-finder.c | 601 GElf_Sym sym; in convert_to_trace_point() local 624 symbol = dwfl_module_addrsym(mod, paddr, &sym, NULL); in convert_to_trace_point() 630 eaddr = sym.st_value; in convert_to_trace_point()
|
/linux-4.4.14/arch/arm64/include/asm/ |
D | assembler.h | 158 .macro adr_l, dst, sym, tmp= 160 adrp \dst, \sym 161 add \dst, \dst, :lo12:\sym 163 adrp \tmp, \sym 164 add \dst, \tmp, :lo12:\sym 175 .macro ldr_l, dst, sym, tmp= 177 adrp \dst, \sym 178 ldr \dst, [\dst, :lo12:\sym] 180 adrp \tmp, \sym 181 ldr \dst, [\tmp, :lo12:\sym] [all …]
|
/linux-4.4.14/arch/x86/tools/ |
D | relocs.c | 255 static const char *sym_name(const char *sym_strtab, Elf_Sym *sym) in sym_name() argument 259 if (sym->st_name) { in sym_name() 260 name = sym_strtab + sym->st_name; in sym_name() 263 name = sec_name(sym->st_shndx); in sym_name() 276 Elf_Sym *sym; in sym_lookup() local 285 for (sym = symtab; --nsyms >= 0; sym++) { in sym_lookup() 286 if (!sym->st_name) in sym_lookup() 288 if (strcmp(symname, strtab + sym->st_name) == 0) in sym_lookup() 289 return sym; in sym_lookup() 472 Elf_Sym *sym = &sec->symtab[j]; in read_symtabs() local [all …]
|
D | test_get_len.c | 113 char line[BUFSIZE], sym[BUFSIZE] = "<unknown>"; in main() local 128 strcpy(sym, line); in main() 157 prog, sym); in main()
|
/linux-4.4.14/tools/perf/ui/browsers/ |
D | map.c | 22 struct symbol *sym = rb_entry(nd, struct symbol, rb_node); in map_browser__write() local 29 mb->addrlen, sym->start, mb->addrlen, sym->end, in map_browser__write() 30 sym->binding == STB_GLOBAL ? 'g' : in map_browser__write() 31 sym->binding == STB_LOCAL ? 'l' : 'w'); in map_browser__write() 34 ui_browser__write_nstring(browser, sym->name, width); in map_browser__write() 46 struct symbol *sym; in map_browser__search() local 55 sym = map__find_symbol(browser->map, addr, NULL); in map_browser__search() 57 sym = map__find_symbol_by_name(browser->map, target, NULL); in map_browser__search() 59 if (sym != NULL) { in map_browser__search() 60 u32 *idx = symbol__browser_index(sym); in map_browser__search() [all …]
|
D | annotate.c | 245 static bool disasm_line__is_valid_jump(struct disasm_line *dl, struct symbol *sym) in disasm_line__is_valid_jump() argument 249 || dl->ops.target.offset >= symbol__size(sym)) in disasm_line__is_valid_jump() 262 struct symbol *sym = ms->sym; in annotate_browser__draw_current_jump() local 266 if (strstr(sym->name, "@plt")) in annotate_browser__draw_current_jump() 269 if (!disasm_line__is_valid_jump(cursor, sym)) in annotate_browser__draw_current_jump() 382 struct symbol *sym = ms->sym; in annotate_browser__calc_percent() local 383 struct annotation *notes = symbol__annotation(sym); in annotate_browser__calc_percent() 385 s64 len = symbol__size(sym); in annotate_browser__calc_percent() 477 static int sym_title(struct symbol *sym, struct map *map, char *title, in sym_title() argument 480 return snprintf(title, sz, "%s %s", sym->name, map->dso->long_name); in sym_title() [all …]
|
D | hists.c | 533 bool show_annotated = browser->show_dso && chain->ms.sym && symbol__annotation(chain->ms.sym)->src; in hist_browser__show_callchain_entry() 1458 notes = symbol__annotation(act->ms.sym); in do_annotate() 1481 struct map *map, struct symbol *sym) in add_annotate_opt() argument 1483 if (sym == NULL || map->dso->annotate_warned) in add_annotate_opt() 1486 if (asprintf(optstr, "Annotate %s", sym->name) < 0) in add_annotate_opt() 1490 act->ms.sym = sym; in add_annotate_opt() 1612 } else if (act->ms.sym) { in do_run_script() 1614 act->ms.sym->name); in do_run_script() 1624 struct thread *thread, struct symbol *sym) in add_script_opt() argument 1630 } else if (sym) { in add_script_opt() [all …]
|
/linux-4.4.14/tools/virtio/linux/ |
D | export.h | 1 #define EXPORT_SYMBOL_GPL(sym) extern typeof(sym) sym argument 2 #define EXPORT_SYMBOL(sym) extern typeof(sym) sym argument
|
/linux-4.4.14/arch/x86/um/ |
D | sys_call_table_64.c | 38 #define __SYSCALL_COMMON(nr, sym, compat) __SYSCALL_64(nr, sym, compat) argument 39 #define __SYSCALL_X32(nr, sym, compat) /* Not supported */ argument 41 #define __SYSCALL_64(nr, sym, compat) extern asmlinkage long sym(unsigned long, unsigned long, unsi… argument 45 #define __SYSCALL_64(nr, sym, compat) [ nr ] = sym, argument
|
D | user-offsets.c | 12 #define __SYSCALL_I386(nr, sym, compat) [nr] = 1, argument 17 #define __SYSCALL_64(nr, sym, compat) [nr] = 1, argument 18 #define __SYSCALL_COMMON(nr, sym, compat) [nr] = 1, argument 19 #define __SYSCALL_X32(nr, sym, compat) /* Not supported */ argument 25 #define DEFINE(sym, val) \ argument 26 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 28 #define DEFINE_LONGS(sym, val) \ argument 29 asm volatile("\n->" #sym " %0 " #val : : "i" (val/sizeof(unsigned long)))
|
D | sys_call_table_32.c | 28 #define __SYSCALL_I386(nr, sym, compat) extern asmlinkage long sym(unsigned long, unsigned long, un… argument 32 #define __SYSCALL_I386(nr, sym, compat) [ nr ] = sym, argument
|
/linux-4.4.14/scripts/mod/ |
D | modpost.c | 411 Elf_Sym *sym; in parse_elf() local 548 for (sym = info->symtab_start; sym < info->symtab_stop; sym++) { in parse_elf() 549 sym->st_shndx = TO_NATIVE(sym->st_shndx); in parse_elf() 550 sym->st_name = TO_NATIVE(sym->st_name); in parse_elf() 551 sym->st_value = TO_NATIVE(sym->st_value); in parse_elf() 552 sym->st_size = TO_NATIVE(sym->st_size); in parse_elf() 607 Elf_Sym *sym, const char *symname) in handle_modversions() argument 614 export = export_from_secname(info, get_secindex(info, sym)); in handle_modversions() 616 export = export_from_sec(info, get_secindex(info, sym)); in handle_modversions() 620 crc = (unsigned int) sym->st_value; in handle_modversions() [all …]
|
D | modpost.h | 164 const Elf_Sym *sym) in get_secindex() argument 166 if (is_shndx_special(sym->st_shndx)) in get_secindex() 167 return SPECIAL(sym->st_shndx); in get_secindex() 168 if (sym->st_shndx != SHN_XINDEX) in get_secindex() 169 return sym->st_shndx; in get_secindex() 170 return info->symtab_shndx_start[sym - info->symtab_start]; in get_secindex() 176 Elf_Sym *sym, const char *symname);
|
D | file2alias.c | 1309 Elf_Sym *sym, const char *symname) in handle_moddevtable() argument 1317 if (!sym->st_shndx || get_secindex(info, sym) >= info->num_sections) in handle_moddevtable() 1321 if (ELF_ST_TYPE(sym->st_info) != STT_OBJECT) in handle_moddevtable() 1340 if (info->sechdrs[get_secindex(info, sym)].sh_type & SHT_NOBITS) { in handle_moddevtable() 1341 zeros = calloc(1, sym->st_size); in handle_moddevtable() 1345 + info->sechdrs[get_secindex(info, sym)].sh_offset in handle_moddevtable() 1346 + sym->st_value; in handle_moddevtable() 1351 do_usb_table(symval, sym->st_size, mod); in handle_moddevtable() 1353 do_pnp_device_entry(symval, sym->st_size, mod); in handle_moddevtable() 1355 do_pnp_card_entries(symval, sym->st_size, mod); in handle_moddevtable() [all …]
|
/linux-4.4.14/tools/include/linux/ |
D | export.h | 4 #define EXPORT_SYMBOL(sym) argument 5 #define EXPORT_SYMBOL_GPL(sym) argument 6 #define EXPORT_SYMBOL_GPL_FUTURE(sym) argument 7 #define EXPORT_UNUSED_SYMBOL(sym) argument 8 #define EXPORT_UNUSED_SYMBOL_GPL(sym) argument
|
/linux-4.4.14/tools/perf/tests/ |
D | vmlinux-kallsyms.c | 12 struct symbol *sym) in vmlinux_matches_kallsyms_filter() argument 14 bool *visited = symbol__priv(sym); in vmlinux_matches_kallsyms_filter() 25 struct symbol *sym; in test__vmlinux_matches_kallsyms() local 115 sym = rb_entry(nd, struct symbol, rb_node); in test__vmlinux_matches_kallsyms() 117 if (sym->start == sym->end) in test__vmlinux_matches_kallsyms() 120 mem_start = vmlinux_map->unmap_ip(vmlinux_map, sym->start); in test__vmlinux_matches_kallsyms() 121 mem_end = vmlinux_map->unmap_ip(vmlinux_map, sym->end); in test__vmlinux_matches_kallsyms() 129 if (strcmp(sym->name, pair->name) == 0) { in test__vmlinux_matches_kallsyms() 142 mem_start, sym->name, mem_end, in test__vmlinux_matches_kallsyms() 174 mem_start, sym->name, pair->name); in test__vmlinux_matches_kallsyms() [all …]
|
D | hists_link.c | 18 struct symbol *sym; member 101 fake_common_samples[k].sym = al.sym; in add_hist_entries() 127 fake_samples[i][k].sym = al.sym; in add_hist_entries() 144 samples->sym == s) in find_sample() 174 he->thread, he->ms.map, he->ms.sym)) { in __validate_match() 226 he->thread, he->ms.map, he->ms.sym) && in __validate_link() 229 he->thread, he->ms.map, he->ms.sym)) { in __validate_link()
|
D | hists_common.c | 132 struct symbol *sym; in setup_fake_machine() local 135 sym = symbol__new(fsym->start, fsym->length, in setup_fake_machine() 137 if (sym == NULL) { in setup_fake_machine() 142 symbols__insert(&dso->symbols[MAP__FUNCTION], sym); in setup_fake_machine() 179 he->ms.sym->name, he->stat.period); in print_hists_in() 206 he->ms.sym->name, he->stat.period, in print_hists_out()
|
D | hists_cumulate.c | 18 struct symbol *sym; member 117 fake_samples[i].sym = al.sym; in add_hist_entries() 155 #define SYM(he) (he->ms.sym->name) 160 #define CSYM(cl) (cl->ms.sym->name) 167 const char *sym; member 174 const char *sym; member 214 !strcmp(SYM(he), expected[i].sym)); in do_test() 234 !strcmp(CSYM(clist), expected_callchain[i].node[c].sym)); in do_test()
|
D | dwarf-unwind.c | 43 char *symbol = entry->sym ? entry->sym->name : NULL; in unwind_entry()
|
D | hists_filter.c | 18 struct symbol *sym; member 96 fake_samples[i].sym = al.sym; in add_hist_entries()
|
D | hists_output.c | 19 struct symbol *sym; member 83 fake_samples[i].sym = al.sym; in add_hist_entries() 121 #define SYM(he) (he->ms.sym->name)
|
/linux-4.4.14/arch/tile/kernel/ |
D | hvglue.S | 2 .macro gensym sym, val, size 4 .global _\sym 5 .type _\sym,function 6 _\sym: 7 .size _\sym,\size 9 .globl \sym 10 .set \sym,_\sym
|
D | module.c | 130 Elf_Sym *sym; in apply_relocate_add() local 144 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 146 value = sym->st_value + rel[i].r_addend; in apply_relocate_add() 215 sym->st_value + rel[i].r_addend, in apply_relocate_add()
|
/linux-4.4.14/tools/perf/ui/gtk/ |
D | annotate.c | 22 static int perf_gtk__get_percent(char *buf, size_t size, struct symbol *sym, in perf_gtk__get_percent() argument 35 symhist = annotation__histogram(symbol__annotation(sym), evidx); in perf_gtk__get_percent() 51 static int perf_gtk__get_offset(char *buf, size_t size, struct symbol *sym, in perf_gtk__get_offset() argument 54 u64 start = map__rip_2objdump(map, sym->start); in perf_gtk__get_offset() 88 static int perf_gtk__annotate_symbol(GtkWidget *window, struct symbol *sym, in perf_gtk__annotate_symbol() argument 101 notes = symbol__annotation(sym); in perf_gtk__annotate_symbol() 130 sym, pos, in perf_gtk__annotate_symbol() 135 ret = perf_gtk__get_percent(s, sizeof(s), sym, pos, in perf_gtk__annotate_symbol() 141 if (perf_gtk__get_offset(s, sizeof(s), sym, map, pos)) in perf_gtk__annotate_symbol() 157 static int symbol__gtk_annotate(struct symbol *sym, struct map *map, in symbol__gtk_annotate() argument [all …]
|
/linux-4.4.14/arch/m68k/kernel/ |
D | module.c | 30 Elf32_Sym *sym; in apply_relocate() local 41 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate() 47 *location += sym->st_value; in apply_relocate() 51 *location += sym->st_value - (uint32_t)location; in apply_relocate() 70 Elf32_Sym *sym; in apply_relocate_add() local 81 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 87 *location = rel[i].r_addend + sym->st_value; in apply_relocate_add() 91 *location = rel[i].r_addend + sym->st_value - (uint32_t)location; in apply_relocate_add()
|
/linux-4.4.14/arch/powerpc/oprofile/cell/ |
D | vma_map.c | 119 Elf32_Sym sym; in create_vma_map() local 180 if (shdr.sh_entsize != sizeof (sym)) in create_vma_map() 191 for (j = 0; j < shdr.sh_size / sizeof (sym); j++) { in create_vma_map() 192 if (copy_from_user(&sym, spu_elf_start + in create_vma_map() 194 j * sizeof (sym), in create_vma_map() 195 sizeof (sym))) in create_vma_map() 200 sym.st_name, in create_vma_map() 205 ovly_table_sym = sym.st_value; in create_vma_map() 207 ovly_buf_table_sym = sym.st_value; in create_vma_map() 209 ovly_table_end_sym = sym.st_value; in create_vma_map() [all …]
|
/linux-4.4.14/tools/perf/ |
D | builtin-top.c | 92 struct symbol *sym; in perf_top__parse_source() local 97 if (!he || !he->ms.sym) in perf_top__parse_source() 100 sym = he->ms.sym; in perf_top__parse_source() 109 "path\n", sym->name); in perf_top__parse_source() 114 notes = symbol__annotation(sym); in perf_top__parse_source() 122 if (symbol__alloc_hist(sym) < 0) { in perf_top__parse_source() 125 sym->name); in perf_top__parse_source() 130 err = symbol__annotate(sym, map, 0); in perf_top__parse_source() 142 struct symbol *sym = he->ms.sym; in __zero_source_counters() local 143 symbol__annotate_zero_histograms(sym); in __zero_source_counters() [all …]
|
D | builtin-annotate.c | 59 (al->sym == NULL || in perf_evsel__add_sample() 60 strcmp(ann->sym_hist_filter, al->sym->name) != 0)) { in perf_evsel__add_sample() 66 if (al->sym != NULL) { in perf_evsel__add_sample() 67 rb_erase(&al->sym->rb_node, in perf_evsel__add_sample() 69 symbol__delete(al->sym); in perf_evsel__add_sample() 117 return symbol__tty_annotate(he->ms.sym, he->ms.map, evsel, in hist_entry__tty_annotate() 132 if (he->ms.sym == NULL || he->ms.map->dso->annotate_warned) in hists__find_annotations() 135 notes = symbol__annotation(he->ms.sym); in hists__find_annotations()
|
D | builtin-kmem.c | 316 struct symbol *sym; in build_alloc_func_list() local 338 map__for_each_symbol(kernel_map, sym, node) { in build_alloc_func_list() 339 if (regexec(&alloc_func_regex, sym->name, 0, NULL, 0)) in build_alloc_func_list() 347 pr_debug("alloc func: %s\n", sym->name); in build_alloc_func_list() 348 func[nr_alloc_funcs].start = sym->start; in build_alloc_func_list() 349 func[nr_alloc_funcs].end = sym->end; in build_alloc_func_list() 350 func[nr_alloc_funcs].name = sym->name; in build_alloc_func_list() 964 struct symbol *sym = NULL; in __print_slab_result() local 972 sym = machine__find_kernel_function(machine, addr, &map, NULL); in __print_slab_result() 976 if (sym != NULL) in __print_slab_result() [all …]
|
D | builtin-mem.c | 76 if (al.filtered || (mem->hide_unresolved && al.sym == NULL)) in dump_raw_samples() 105 al.sym ? al.sym->name : "???"); in dump_raw_samples()
|
D | builtin-script.c | 485 alf.sym = map__find_symbol(alf.map, alf.addr, NULL); in print_sample_brstacksym() 489 alt.sym = map__find_symbol(alt.map, alt.addr, NULL); in print_sample_brstacksym() 491 symbol__fprintf_symname_offs(alf.sym, &alf, stdout); in print_sample_brstacksym() 493 symbol__fprintf_symname_offs(alt.sym, &alt, stdout); in print_sample_brstacksym() 520 symbol__fprintf_symname_offs(al.sym, &al, stdout); in print_sample_addr() 522 symbol__fprintf_symname(al.sym, stdout); in print_sample_addr()
|
D | builtin-report.c | 160 if (rep->hide_unresolved && al.sym == NULL) in process_sample_event()
|
D | builtin-timechart.c | 535 if (tal.sym) in cat_backtrace() 537 tal.sym->name); in cat_backtrace()
|
D | builtin-trace.c | 2210 if ((verbose || print_sym) && al->sym) in print_location() 2211 fprintf(f, "%s+0x%" PRIx64, al->sym->name, in print_location() 2212 al->addr - al->sym->start); in print_location()
|
/linux-4.4.14/arch/x86/include/asm/ |
D | atomic64_32.h | 17 #define __ATOMIC64_DECL(sym) void atomic64_##sym(atomic64_t *, ...) argument 21 #define ATOMIC64_DECL_ONE(sym) __ATOMIC64_DECL(sym); \ argument 22 ATOMIC64_EXPORT(atomic64_##sym) 30 #define ATOMIC64_DECL(sym) ATOMIC64_DECL_ONE(sym##_cx8) argument 36 #define ATOMIC64_DECL(sym) ATOMIC64_DECL_ONE(sym##_cx8); \ argument 37 ATOMIC64_DECL_ONE(sym##_386)
|
D | apic.h | 364 #define apic_driver(sym) \ argument 365 static const struct apic *__apicdrivers_##sym __used \ 367 __section(.apicdrivers) = { &sym }
|
/linux-4.4.14/arch/frv/kernel/ |
D | asm-offsets.c | 17 #define DEF_PTREG(sym, reg) \ argument 18 asm volatile("\n->" #sym " %0 offsetof(struct pt_regs, " #reg ")" \ 21 #define DEF_IREG(sym, reg) \ argument 22 asm volatile("\n->" #sym " %0 offsetof(struct user_context, " #reg ")" \ 25 #define DEF_FREG(sym, reg) \ argument 26 asm volatile("\n->" #sym " %0 offsetof(struct user_context, " #reg ")" \ 29 #define DEF_0REG(sym, reg) \ argument 30 asm volatile("\n->" #sym " %0 offsetof(struct frv_frame0, " #reg ")" \
|
/linux-4.4.14/arch/x86/um/shared/sysdep/ |
D | kernel-offsets.h | 7 #define DEFINE(sym, val) \ argument 8 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) 12 #define OFFSET(sym, str, mem) \ argument 13 DEFINE(sym, offsetof(struct str, mem));
|
/linux-4.4.14/arch/x86/kernel/ |
D | machine_kexec_64.c | 413 Elf64_Sym *sym; in arch_kexec_apply_relocations_add() local 470 sym = (Elf64_Sym *)symtabsec->sh_offset + in arch_kexec_apply_relocations_add() 473 if (sym->st_name) in arch_kexec_apply_relocations_add() 474 name = strtab + sym->st_name; in arch_kexec_apply_relocations_add() 476 name = shstrtab + sechdrs[sym->st_shndx].sh_name; in arch_kexec_apply_relocations_add() 479 name, sym->st_info, sym->st_shndx, sym->st_value, in arch_kexec_apply_relocations_add() 480 sym->st_size); in arch_kexec_apply_relocations_add() 482 if (sym->st_shndx == SHN_UNDEF) { in arch_kexec_apply_relocations_add() 487 if (sym->st_shndx == SHN_COMMON) { in arch_kexec_apply_relocations_add() 492 if (sym->st_shndx == SHN_ABS) in arch_kexec_apply_relocations_add() [all …]
|
D | asm-offsets_64.c | 7 #define __SYSCALL_64(nr, sym, compat) [nr] = 1, argument 8 #define __SYSCALL_COMMON(nr, sym, compat) [nr] = 1, argument 10 # define __SYSCALL_X32(nr, sym, compat) [nr] = 1, argument 12 # define __SYSCALL_X32(nr, sym, compat) /* nothing */ argument 17 #define __SYSCALL_I386(nr, sym, compat) [nr] = 1, argument
|
D | module.c | 107 Elf32_Sym *sym; in apply_relocate() local 118 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate() 124 *location += sym->st_value; in apply_relocate() 128 *location += sym->st_value - (uint32_t)location; in apply_relocate() 147 Elf64_Sym *sym; in apply_relocate_add() local 160 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 165 sym->st_value, rel[i].r_addend, (u64)loc); in apply_relocate_add() 167 val = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
D | asm-offsets_32.c | 10 #define __SYSCALL_I386(nr, sym, compat) [nr] = 1, argument
|
/linux-4.4.14/arch/hexagon/kernel/ |
D | module.c | 85 Elf32_Sym *sym; in apply_relocate_add() local 100 sym = sym_base + ELF32_R_SYM(rela[i].r_info); in apply_relocate_add() 106 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 110 sym->st_name ? in apply_relocate_add() 111 &strtab[sym->st_name] : "(anonymous)"); in apply_relocate_add() 123 sym->st_name ? in apply_relocate_add() 124 &strtab[sym->st_name] : "(anonymous)"); in apply_relocate_add()
|
/linux-4.4.14/Documentation/scsi/ |
D | ChangeLog.sym53c8xx_2 | 2 * version sym-2.1.0-20001230 6 * version sym-2.1.1-20010108 8 equivalent containing sym or SYM instead. 11 * version sym-2.1.2-20010114 17 * version sym-2.1.3-20010117 22 * version sym-2.1.4-20010120 28 * version sym-2.1.5-20010124 39 * version sym-2.1.6-20010207 67 * version sym-2.1.9-20010412 83 * version sym-2.1.10-20010509 [all …]
|
D | sym53c8xx_2.txt | 84 33 MHz and 66MHz Ultra-3 controllers. The new driver is named `sym'. 87 2000: Add support for early NCR devices to FreeBSD `sym' driver. 97 the driver documentation is the sym.8 man page.
|
D | ChangeLog.ncr53c8xx | 30 - Merges from FreeBSD sym-1.6.2 driver: 52 - Move from `sym' to this driver a tiny change for __sparc__ that
|
D | ChangeLog.sym53c8xx | 94 - Merges from FreeBSD sym-1.6.2 driver: 100 * Sync the residual handling code with sym-1.6.2 and now
|
/linux-4.4.14/arch/arm/kernel/ |
D | module.c | 66 Elf32_Sym *sym; in apply_relocate() local 81 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate() 82 symname = strtab + sym->st_name; in apply_relocate() 100 *(u32 *)loc += sym->st_value; in apply_relocate() 106 if (sym->st_value & 3) { in apply_relocate() 117 offset += sym->st_value - loc; in apply_relocate() 137 sym->st_value); in apply_relocate() 158 offset = *(u32 *)loc + sym->st_value - loc; in apply_relocate() 168 offset += sym->st_value; in apply_relocate() 191 if (ELF32_ST_TYPE(sym->st_info) == STT_FUNC && in apply_relocate() [all …]
|
D | vdso.c | 146 Elf32_Sym *sym; in vdso_nullpatch_one() local 148 sym = find_symbol(lib, symname); in vdso_nullpatch_one() 149 if (!sym) in vdso_nullpatch_one() 152 sym->st_name = 0; in vdso_nullpatch_one()
|
/linux-4.4.14/arch/mips/kernel/ |
D | vpe.c | 432 Elf32_Sym *sym; in apply_relocations() local 445 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocations() 448 if (!sym->st_value) { in apply_relocations() 450 me->name, strtab + sym->st_name); in apply_relocations() 454 v = sym->st_value; in apply_relocations() 461 strtab + sym->st_name); in apply_relocations() 483 Elf_Sym *sym = (void *)sechdrs[symindex].sh_addr; in simplify_symbols() local 497 switch (sym[i].st_shndx) { in simplify_symbols() 503 size = sym[i].st_value; in simplify_symbols() 504 sym[i].st_value = bssbase; in simplify_symbols() [all …]
|
D | module-rela.c | 112 Elf_Sym *sym; in apply_relocate_add() local 126 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 128 if (IS_ERR_VALUE(sym->st_value)) { in apply_relocate_add() 130 if (ELF_ST_BIND(sym->st_info) == STB_WEAK) in apply_relocate_add() 133 me->name, strtab + sym->st_name); in apply_relocate_add() 137 v = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
D | module.c | 200 Elf_Sym *sym; in apply_relocate() local 215 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate() 217 if (IS_ERR_VALUE(sym->st_value)) { in apply_relocate() 219 if (ELF_ST_BIND(sym->st_info) == STB_WEAK) in apply_relocate() 222 me->name, strtab + sym->st_name); in apply_relocate() 226 v = sym->st_value; in apply_relocate()
|
/linux-4.4.14/arch/parisc/kernel/ |
D | module.c | 84 me->name, strtab + sym->st_name, (unsigned long)val, bits); \ 546 Elf32_Sym *sym; in apply_relocate_add() local 565 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 567 if (!sym->st_value) { in apply_relocate_add() 569 me->name, strtab + sym->st_name); in apply_relocate_add() 575 val = sym->st_value; in apply_relocate_add() 581 strtab + sym->st_name, in apply_relocate_add() 641 val = get_stub(me, sym->st_value, addend, in apply_relocate_add() 656 val = get_stub(me, sym->st_value, addend, in apply_relocate_add() 683 Elf64_Sym *sym; in apply_relocate_add() local [all …]
|
/linux-4.4.14/arch/sparc/kernel/ |
D | module.c | 60 Elf_Sym *sym; in module_frob_arch_sections() local 70 sym = (Elf_Sym *)sechdrs[symidx].sh_addr; in module_frob_arch_sections() 74 if (sym[i].st_shndx == SHN_UNDEF) { in module_frob_arch_sections() 75 if (ELF_ST_TYPE(sym[i].st_info) == STT_REGISTER) in module_frob_arch_sections() 76 sym[i].st_shndx = SHN_ABS; in module_frob_arch_sections() 90 Elf_Sym *sym; in apply_relocate_add() local 108 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 110 v = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
/linux-4.4.14/drivers/scsi/aic7xxx/aicasm/ |
D | aicasm_scan.l | 111 yylval.sym = symtable_get(string_buf); 301 yylval.sym = symtable_get(yytext); 315 yylval.sym = symtable_get(yytext); 407 yylval.sym = symtable_get(yytext); 408 if (yylval.sym->type == MACRO) { 426 expand_macro(yylval.sym); 428 if (yylval.sym->type == UNINITIALIZED) { 430 symbol_delete(yylval.sym); 432 yylval.sym = 440 yylval.sym = symtable_get(yytext); [all …]
|
D | aicasm_gram.y | 91 static void process_field(int field_type, symbol_t *sym, int mask); 104 static void type_check(symbol_ref_t *sym, expression_t *expression, int and_op); 119 symbol_t *sym; member 178 %token <sym> T_CEXPR 212 %token <sym> T_SYMBOL 1426 process_field(int field_type, symbol_t *sym, int value) 1435 if (sym->type == UNINITIALIZED) { 1436 sym->type = field_type; 1437 initialize_symbol(sym); 1438 sym->info.finfo->value = value; [all …]
|
D | aicasm_macro_gram.y | 75 symbol_t *sym; member 81 %token <sym> T_SYMBOL
|
D | aicasm_macro_scan.l | 136 mmlval.sym = symtable_get(mmtext); 137 if (mmlval.sym->type != MACRO) {
|
/linux-4.4.14/arch/unicore32/kernel/ |
D | module.c | 44 Elf32_Sym *sym; in apply_relocate() local 56 sym = ((Elf32_Sym *)symsec->sh_addr) + offset; in apply_relocate() 75 *(u32 *)loc += sym->st_value; in apply_relocate() 85 offset += sym->st_value - loc; in apply_relocate() 92 relindex, i, strtab + sym->st_name); in apply_relocate()
|
/linux-4.4.14/arch/score/kernel/ |
D | module.c | 42 Elf32_Sym *sym; in apply_relocate() local 53 sym = ((Elf32_Sym *)symsec->sh_addr) + r_offset; in apply_relocate() 69 *(unsigned long *)loc += sym->st_value; in apply_relocate() 85 uvalue = sym->st_value + offset; in apply_relocate() 109 uvalue = (sym->st_value + offset) >> 1; in apply_relocate()
|
/linux-4.4.14/tools/perf/scripts/python/ |
D | net_dropmonitor.py | 54 (sym, off) = get_sym(i) 55 if sym == None: 56 sym = i 57 print "%25s %25s %25s" % (sym, off, drop_log[i])
|
/linux-4.4.14/arch/xtensa/kernel/ |
D | module.c | 57 Elf32_Sym *sym; in apply_relocate_add() local 68 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 70 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 94 strtab + sym->st_name); in apply_relocate_add() 118 strtab + sym->st_name); in apply_relocate_add()
|
D | vmlinux.lds.S | 47 #define RELOCATE_ENTRY(sym, section) \ argument 48 LONG(sym ## _start); \ 49 LONG(sym ## _end); \ 66 #define SECTION_VECTOR(sym, section, addr, max_prevsec_size, prevsec) \ argument 71 sym ## _start = ABSOLUTE(.); \ 73 sym ## _end = ABSOLUTE(.); \
|
/linux-4.4.14/Documentation/vDSO/ |
D | parse_vdso.c | 232 ELF(Sym) *sym = &vdso_info.symtab[chain]; in vdso_sym() 235 if (ELF64_ST_TYPE(sym->st_info) != STT_FUNC) in vdso_sym() 237 if (ELF64_ST_BIND(sym->st_info) != STB_GLOBAL && in vdso_sym() 238 ELF64_ST_BIND(sym->st_info) != STB_WEAK) in vdso_sym() 240 if (sym->st_shndx == SHN_UNDEF) in vdso_sym() 242 if (strcmp(name, vdso_info.symstrings + sym->st_name)) in vdso_sym() 251 return (void *)(vdso_info.load_offset + sym->st_value); in vdso_sym()
|
/linux-4.4.14/arch/alpha/kernel/ |
D | module.c | 151 Elf64_Sym *symtab, *sym; in apply_relocate_add() local 178 sym = symtab + r_sym; in apply_relocate_add() 179 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() 218 if (sym->st_shndx == SHN_UNDEF) in apply_relocate_add() 220 if ((sym->st_other & STO_ALPHA_STD_GPLOAD) == in apply_relocate_add() 269 if (ELF64_ST_TYPE (sym->st_info) == STT_SECTION) in apply_relocate_add() 272 me->name, r_type, sym->st_shndx); in apply_relocate_add() 276 me->name, r_type, strtab + sym->st_name); in apply_relocate_add()
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | module_64.c | 68 static unsigned int local_entry_offset(const Elf64_Sym *sym) in local_entry_offset() argument 73 return PPC64_LOCAL_ENTRY_OFFSET(sym->st_other); in local_entry_offset() 93 static unsigned int local_entry_offset(const Elf64_Sym *sym) in local_entry_offset() argument 495 Elf64_Sym *sym; in apply_relocate_add() local 504 sym = find_dot_toc(sechdrs, strtab, symindex); in apply_relocate_add() 507 if (sym) in apply_relocate_add() 508 sym->st_value = my_r2(sechdrs, me); in apply_relocate_add() 517 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 522 strtab + sym->st_name, (unsigned long)sym->st_value, in apply_relocate_add() 526 value = sym->st_value + rela[i].r_addend; in apply_relocate_add() [all …]
|
D | vdso.c | 304 Elf32_Sym *sym = find_symbol32(lib, symname); in find_function32() local 306 if (sym == NULL) { in find_function32() 311 return sym->st_value - VDSO32_LBASE; in find_function32() 410 Elf64_Sym *sym = find_symbol64(lib, symname); in find_function64() local 412 if (sym == NULL) { in find_function64() 418 return *((u64 *)(vdso64_kbase + sym->st_value - VDSO64_LBASE)) - in find_function64() 421 return sym->st_value - VDSO64_LBASE; in find_function64()
|
D | module_32.c | 220 Elf32_Sym *sym; in apply_relocate_add() local 232 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 235 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
|
/linux-4.4.14/samples/bpf/ |
D | tracex3_user.c | 48 const char *sym[] = { variable 97 printf("%s", sym[c]); in print_hist() 131 printf(" %s", sym[num_colors - 1]); in main() 137 printf(" %s", sym[0]); in main()
|
D | bpf_load.c | 201 GElf_Sym sym; in parse_relo_and_apply() local 209 gelf_getsym(symbols, GELF_R_SYM(rel.r_info), &sym); in parse_relo_and_apply() 217 insn[insn_idx].imm = map_fd[sym.st_value / sizeof(struct bpf_map_def)]; in parse_relo_and_apply()
|
/linux-4.4.14/arch/sh/kernel/ |
D | module.c | 45 Elf32_Sym *sym; in apply_relocate_add() local 58 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 60 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add() 68 relocation |= !!(sym->st_other & 4); in apply_relocate_add()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/ |
D | iwl-drv.h | 150 #define IWL_EXPORT_SYMBOL(sym) EXPORT_SYMBOL_GPL(sym) argument 152 #define IWL_EXPORT_SYMBOL(sym) argument
|
/linux-4.4.14/arch/mn10300/kernel/ |
D | module.c | 64 Elf32_Sym *sym; in apply_relocate_add() local 79 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 83 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add() 136 sym_diff_val = sym->st_value; in apply_relocate_add()
|
/linux-4.4.14/kernel/ |
D | module.c | 334 unsigned int sym, str, mod, vers, info, pcpu; member 520 const struct kernel_symbol *sym; member 553 fsa->sym = &syms->start[symnum]; in check_symbol() 570 struct kernel_symbol *sym; in find_symbol_in_section() local 572 sym = bsearch(fsa->name, syms->start, syms->stop - syms->start, in find_symbol_in_section() 575 if (sym != NULL && check_symbol(syms, owner, sym - syms->start, data)) in find_symbol_in_section() 600 return fsa.sym; in find_symbol() 1394 const struct kernel_symbol *sym; in resolve_symbol() local 1405 sym = find_symbol(name, &owner, &crc, in resolve_symbol() 1407 if (!sym) in resolve_symbol() [all …]
|
D | kexec_file.c | 992 Elf_Sym *sym; in kexec_purgatory_get_symbol_addr() local 995 sym = kexec_purgatory_find_symbol(pi, name); in kexec_purgatory_get_symbol_addr() 996 if (!sym) in kexec_purgatory_get_symbol_addr() 999 sechdr = &pi->sechdrs[sym->st_shndx]; in kexec_purgatory_get_symbol_addr() 1005 return (void *)(sechdr->sh_addr + sym->st_value); in kexec_purgatory_get_symbol_addr() 1015 Elf_Sym *sym; in kexec_purgatory_get_set_symbol() local 1020 sym = kexec_purgatory_find_symbol(pi, name); in kexec_purgatory_get_set_symbol() 1021 if (!sym) in kexec_purgatory_get_set_symbol() 1024 if (sym->st_size != size) { in kexec_purgatory_get_set_symbol() 1026 name, (unsigned long)sym->st_size, size); in kexec_purgatory_get_set_symbol() [all …]
|
D | kprobes.c | 2189 const char *sym, int offset, char *modname, struct kprobe *pp) in report_probe() argument 2200 if (sym) in report_probe() 2202 p->addr, kprobe_type, sym, offset, in report_probe() 2239 const char *sym = NULL; in show_kprobe_addr() local 2247 sym = kallsyms_lookup((unsigned long)p->addr, NULL, in show_kprobe_addr() 2251 report_probe(pi, kp, sym, offset, modname, p); in show_kprobe_addr() 2253 report_probe(pi, p, sym, offset, modname, NULL); in show_kprobe_addr()
|
/linux-4.4.14/arch/openrisc/kernel/ |
D | module.c | 28 Elf32_Sym *sym; in apply_relocate_add() local 41 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 43 value = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
/linux-4.4.14/arch/cris/kernel/ |
D | module.c | 64 Elf32_Sym *sym in apply_relocate_add() local 69 *loc = sym->st_value + rela[i].r_addend; in apply_relocate_add() 72 *loc = sym->st_value - (unsigned)loc + rela[i].r_addend - 4; in apply_relocate_add()
|
/linux-4.4.14/arch/alpha/include/asm/ |
D | uaccess.h | 348 #define __module_address(sym) "r"(sym), argument 349 #define __module_call(ra, arg, sym) "jsr $" #ra ",(%" #arg ")," #sym argument 351 #define __module_address(sym) argument 352 #define __module_call(ra, arg, sym) "bsr $" #ra "," #sym " !samegp" argument
|
/linux-4.4.14/arch/microblaze/kernel/ |
D | module.c | 27 Elf32_Sym *sym; in apply_relocate_add() local 41 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr + in apply_relocate_add() 43 value = sym->st_value + rela[i].r_addend; in apply_relocate_add()
|
/linux-4.4.14/arch/arm64/crypto/ |
D | sha1-ce-glue.c | 20 #define ASM_EXPORT(sym, val) \ argument 21 asm(".globl " #sym "; .set " #sym ", %0" :: "I"(val));
|
D | sha2-ce-glue.c | 20 #define ASM_EXPORT(sym, val) \ argument 21 asm(".globl " #sym "; .set " #sym ", %0" :: "I"(val));
|
/linux-4.4.14/arch/um/os-Linux/ |
D | user_syms.c | 39 #define EXPORT_SYMBOL_PROTO(sym) \ argument 40 int sym(void); \ 41 EXPORT_SYMBOL(sym);
|
/linux-4.4.14/arch/nios2/kernel/ |
D | module.c | 62 Elf32_Sym *sym in apply_relocate_add() local 65 uint32_t v = sym->st_value + rela[i].r_addend; in apply_relocate_add() 69 rela[i].r_offset, strtab + sym->st_name); in apply_relocate_add()
|
D | entry.S | 517 .macro kuser_pad sym size 518 .if ((. - \sym) & 3) 519 .rept (4 - (. - \sym) & 3) 523 .rept ((\size - (. - \sym)) / 4)
|
/linux-4.4.14/arch/arm64/kernel/ |
D | sys.c | 46 #define __SYSCALL(nr, sym) [nr] = sym, argument
|
D | sys32.c | 43 #define __SYSCALL(nr, sym) [nr] = sym, argument
|
D | module.c | 215 Elf64_Sym *sym; in apply_relocate_add() local 226 sym = (Elf64_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 230 val = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
/linux-4.4.14/drivers/media/dvb-frontends/ |
D | stv090x.c | 867 u32 sym; in stv090x_set_srate() local 870 sym = (srate << 4); /* SR * 2^16 / master_clk */ in stv090x_set_srate() 871 sym /= (state->internal->mclk >> 12); in stv090x_set_srate() 873 sym = (srate << 6); in stv090x_set_srate() 874 sym /= (state->internal->mclk >> 10); in stv090x_set_srate() 876 sym = (srate << 9); in stv090x_set_srate() 877 sym /= (state->internal->mclk >> 7); in stv090x_set_srate() 880 if (STV090x_WRITE_DEMOD(state, SFRINIT1, (sym >> 8) & 0x7f) < 0) /* MSB */ in stv090x_set_srate() 882 if (STV090x_WRITE_DEMOD(state, SFRINIT0, (sym & 0xff)) < 0) /* LSB */ in stv090x_set_srate() 893 u32 sym; in stv090x_set_max_srate() local [all …]
|
/linux-4.4.14/arch/mips/vdso/ |
D | genvdso.h | 118 const ELF(Sym) *sym; in FUNC() 165 sym = symtab + (j * st_entsize); in FUNC() 166 name = strtab + swap_uint32(sym->st_name); in FUNC() 169 offset = FUNC(swap_uint)(sym->st_value); in FUNC()
|
/linux-4.4.14/arch/c6x/kernel/ |
D | module.c | 52 Elf_Sym *sym; in apply_relocate_add() local 68 sym = (Elf_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 72 v = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
/linux-4.4.14/arch/x86/boot/tools/ |
D | build.c | 297 #define PARSE_ZOFS(p, sym) do { \ argument 298 if (!strncmp(p, "#define ZO_" #sym " ", 11+sizeof(#sym))) \ 299 sym = strtoul(p + 11 + sizeof(#sym), NULL, 16); \
|
/linux-4.4.14/tools/perf/util/scripting-engines/ |
D | trace-event-python.c | 344 if (node->sym) { in python_process_callchain() 349 PyLong_FromUnsignedLongLong(node->sym->start)); in python_process_callchain() 351 PyLong_FromUnsignedLongLong(node->sym->end)); in python_process_callchain() 353 PyInt_FromLong(node->sym->binding)); in python_process_callchain() 355 PyString_FromStringAndSize(node->sym->name, in python_process_callchain() 356 node->sym->namelen)); in python_process_callchain() 631 static int python_export_symbol(struct db_export *dbe, struct symbol *sym, in python_export_symbol() argument 635 u64 *sym_db_id = symbol__priv(sym); in python_export_symbol() 642 tuple_set_u64(t, 2, sym->start); in python_export_symbol() 643 tuple_set_u64(t, 3, sym->end); in python_export_symbol() [all …]
|
/linux-4.4.14/arch/powerpc/include/asm/ |
D | ftrace.h | 66 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument 74 return !strcmp(sym + 4, name + 3); in arch_syscall_match_sym_name()
|
/linux-4.4.14/arch/h8300/kernel/ |
D | module.c | 26 Elf32_Sym *sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() local 28 uint32_t v = sym->st_value + rela[i].r_addend; in apply_relocate_add()
|
/linux-4.4.14/arch/m32r/kernel/ |
D | module.c | 79 Elf32_Sym *sym; in apply_relocate_add() local 96 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 98 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
/linux-4.4.14/arch/sh/kernel/cpu/sh5/ |
D | unwind.c | 50 const char *sym; in lookup_prev_stack_frame() local 59 sym = kallsyms_lookup(pc, NULL, &offset, NULL, namebuf); in lookup_prev_stack_frame() 60 if (!sym) in lookup_prev_stack_frame()
|
/linux-4.4.14/arch/x86/entry/vdso/ |
D | vdso2c.h | 87 ELF(Sym) *sym = raw_addr + GET_LE(&symtab_hdr->sh_offset) + in BITSFUNC() 90 GET_LE(&sym->st_name); in BITSFUNC() 105 syms[k] = GET_LE(&sym->st_value); in BITSFUNC()
|
/linux-4.4.14/arch/metag/kernel/ |
D | module.c | 206 Elf32_Sym *sym; in apply_relocate_add() local 219 sym = (Elf32_Sym *)sechdrs[symindex].sh_addr in apply_relocate_add() 221 relocation = sym->st_value + rel[i].r_addend; in apply_relocate_add()
|
/linux-4.4.14/include/linux/raid/ |
D | pq.h | 64 #define EXPORT_SYMBOL(sym) argument 65 #define EXPORT_SYMBOL_GPL(sym) argument
|
/linux-4.4.14/arch/blackfin/kernel/ |
D | module.c | 157 Elf32_Sym *sym; in apply_relocate_add() local 170 sym = (Elf32_Sym *) sechdrs[symindex].sh_addr in apply_relocate_add() 172 value = sym->st_value; in apply_relocate_add()
|
/linux-4.4.14/arch/avr32/kernel/ |
D | module.c | 158 Elf32_Sym *sym; in apply_relocate_add() local 164 sym = (Elf32_Sym *)symsec->sh_addr + ELF32_R_SYM(rel->r_info); in apply_relocate_add() 165 relocation = sym->st_value + rel->r_addend; in apply_relocate_add()
|
/linux-4.4.14/kernel/time/ |
D | timer_list.c | 51 static void print_name_offset(struct seq_file *m, void *sym) in print_name_offset() argument 55 if (lookup_symbol_name((unsigned long)sym, symname) < 0) in print_name_offset() 56 SEQ_printf(m, "<%pK>", sym); in print_name_offset()
|
/linux-4.4.14/tools/perf/Documentation/ |
D | perf-script.txt | 118 comm, tid, pid, time, cpu, event, trace, ip, sym, dso, addr, symoff, 122 e.g., -f sw:comm,tid,time,ip,sym and -f trace:time,cpu,trace 136 -f trace: -f comm,tid,time,ip,sym 139 second invocation sets the fields to comm,tid,time,ip,sym. In this case a 146 -f comm,tid,time,ip,sym -f trace:
|
D | perf-top.txt | 90 --sym-annotate=<symbol>::
|
D | perf-report.txt | 143 And default sort keys are changed to local_weight, mem, sym, dso,
|
D | intel-pt.txt | 100 perf script -Fcomm,tid,pid,time,cpu,event,trace,ip,sym,dso,addr,symoff,flags
|
/linux-4.4.14/lib/ |
D | vsprintf.c | 622 char sym[KSYM_SYMBOL_LEN]; in symbol_string() local 631 sprint_backtrace(sym, value); in symbol_string() 633 sprint_symbol(sym, value); in symbol_string() 635 sprint_symbol_no_offset(sym, value); in symbol_string() 637 return string(buf, end, sym, spec); in symbol_string() 698 char sym[max(2*RSRC_BUF_SIZE + DECODED_BUF_SIZE, in resource_string() local 701 char *p = sym, *pend = sym + sizeof(sym); in resource_string() 752 return string(buf, end, sym, spec); in resource_string()
|
/linux-4.4.14/arch/arm/include/asm/ |
D | assembler.h | 190 .macro badr\c, rd, sym 192 adr\c \rd, \sym + 1 194 adr\c \rd, \sym
|
/linux-4.4.14/kernel/livepatch/ |
D | core.c | 267 const struct kernel_symbol *sym; in klp_find_external_symbol() local 271 sym = find_symbol(name, NULL, NULL, true, true); in klp_find_external_symbol() 272 if (sym) { in klp_find_external_symbol() 273 *addr = sym->value; in klp_find_external_symbol()
|
/linux-4.4.14/kernel/trace/ |
D | trace_probe.h | 236 struct symbol_cache *alloc_symbol_cache(const char *sym, long offset); 258 alloc_symbol_cache(const char *sym, long offset) in alloc_symbol_cache() argument
|
D | trace_syscalls.c | 35 static inline bool arch_syscall_match_sym_name(const char *sym, const char *name) in arch_syscall_match_sym_name() argument 43 return !strcmp(sym + 3, name + 3); in arch_syscall_match_sym_name()
|
D | trace_kprobe.c | 109 struct symbol_cache *alloc_symbol_cache(const char *sym, long offset) in alloc_symbol_cache() argument 113 if (!sym || strlen(sym) == 0) in alloc_symbol_cache() 120 sc->symbol = kstrdup(sym, GFP_KERNEL); in alloc_symbol_cache()
|
D | trace_output.c | 448 #define MARK(v, s) {.val = v, .sym = s} 452 char sym; member 473 return (i == size) ? ' ' : mark[i].sym; in trace_find_mark()
|
/linux-4.4.14/arch/mips/include/asm/ |
D | uasm.h | 16 #define UASM_EXPORT_SYMBOL(sym) EXPORT_SYMBOL(sym) argument 18 #define UASM_EXPORT_SYMBOL(sym) argument
|
/linux-4.4.14/arch/ia64/kernel/ |
D | module.c | 617 do_reloc (struct module *mod, uint8_t r_type, Elf64_Sym *sym, uint64_t addend, in do_reloc() argument 625 val = sym->st_value + addend; in do_reloc() 710 val = addend - sym->st_value; in do_reloc() 760 reloc_name[r_type] ? reloc_name[r_type] : "?", sym->st_value + addend); in do_reloc()
|
/linux-4.4.14/tools/lib/bpf/ |
D | libbpf.c | 626 GElf_Sym sym; in bpf_program__collect_reloc() local 642 &sym)) { in bpf_program__collect_reloc() 654 map_idx = sym.st_value / sizeof(struct bpf_map_def); in bpf_program__collect_reloc()
|
/linux-4.4.14/drivers/tty/vt/ |
D | keyboard.c | 369 unsigned int i, j, k, sym, val; in do_compute_shiftstate() local 386 sym = U(key_maps[0][k]); in do_compute_shiftstate() 387 if (KTYP(sym) != KT_SHIFT && KTYP(sym) != KT_SLOCK) in do_compute_shiftstate() 390 val = KVAL(sym); in do_compute_shiftstate()
|
/linux-4.4.14/Documentation/arm/keystone/ |
D | knav-qmss.txt | 45 ubifs file system and provide a sym link to k2_qmss_pdsp_acc48_k2_le_1_0_0_9.bin
|
/linux-4.4.14/fs/ceph/ |
D | inode.c | 806 char *sym; in fill_inode() local 815 sym = kstrndup(iinfo->symlink, symlen, GFP_NOFS); in fill_inode() 816 if (!sym) in fill_inode() 821 ci->i_symlink = sym; in fill_inode() 823 kfree(sym); /* lost a race */ in fill_inode()
|
/linux-4.4.14/tools/perf/ui/stdio/ |
D | hist.c | 77 rem_hits.ms.sym = rem_sq_bracket; in init_rem_hits()
|
/linux-4.4.14/Documentation/trace/ |
D | ftrace.txt | 754 echo sym-offset > trace_options 768 sym-offset - Display not only the function name, but also the 773 sym-offset: 776 sym-addr - this will also display the function address as well 779 sym-addr: 828 sym-userobj - when user stacktrace are enabled, look up which
|
/linux-4.4.14/Documentation/virtual/uml/ |
D | UserModeLinux-HOWTO.txt | 3232 (gdb) i sym $20 3579 (gdb) i sym $2 4113 (UML gdb) i sym 268849158
|