Home
last modified time | relevance | path

Searched refs:symtab (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/openbsd-src/usr.bin/dig/lib/isc/
H A Dsymtab.c54 isc_symtab_t *symtab; in isc_symtab_create() local
60 symtab = (isc_symtab_t *)malloc(sizeof(*symtab)); in isc_symtab_create()
61 if (symtab == NULL) in isc_symtab_create()
64 symtab->table = (eltlist_t *)reallocarray(NULL, size, sizeof(eltlist_t)); in isc_symtab_create()
65 if (symtab->table == NULL) { in isc_symtab_create()
66 free(symtab); in isc_symtab_create()
70 INIT_LIST(symtab->table[i]); in isc_symtab_create()
71 symtab->size = size; in isc_symtab_create()
72 symtab->count = 0; in isc_symtab_create()
73 symtab->maxload = size * 3 / 4; in isc_symtab_create()
[all …]
/openbsd-src/gnu/usr.bin/binutils-2.17/gprof/
H A Dcorefile.c428 symtab.len = 0; in core_create_function_syms()
452 ++symtab.len; in core_create_function_syms()
455 if (symtab.len == 0) in core_create_function_syms()
462 symtab.base = (Sym *) xmalloc ((symtab.len + 2) * sizeof (Sym)); in core_create_function_syms()
465 symtab.limit = symtab.base; in core_create_function_syms()
501 sym_init (symtab.limit); in core_create_function_syms()
505 symtab.limit->addr = core_syms[i]->value; in core_create_function_syms()
507 symtab.limit->addr += bfd_get_section_vma (sym_sec->owner, sym_sec); in core_create_function_syms()
512 symtab.limit->name = symbol_map[found].file_name; in core_create_function_syms()
513 symtab.limit->mapped = 1; in core_create_function_syms()
[all …]
H A Dhist.c205 for (sym = symtab.base; sym < symtab.limit; sym++) in scale_and_align_entries()
296 for (j = j - 1; j < symtab.len; ++j) in hist_assign_samples()
298 sym_low_pc = symtab.base[j].hist.scaled_addr; in hist_assign_samples()
299 sym_high_pc = symtab.base[j + 1].hist.scaled_addr; in hist_assign_samples()
318 (unsigned long) symtab.base[j].addr, in hist_assign_samples()
320 symtab.base[j].name, overlap * time / hist_scale, in hist_assign_samples()
323 addr = symtab.base[j].addr; in hist_assign_samples()
333 symtab.base[j].hist.time += credit; in hist_assign_samples()
484 time_sorted_syms = (Sym **) xmalloc (symtab.len * sizeof (Sym *)); in hist_print()
486 for (index = 0; index < symtab.len; ++index) in hist_print()
[all …]
H A Dcg_arcs.c281 for (sym = symtab.base; sym < symtab.limit; ++sym) in cycle_link()
302 for (sym = symtab.base; sym < symtab.limit; ++sym) in cycle_link()
444 for (index = symtab.len - 1; index >= 0; --index) in propagate_flags()
607 for (parent = symtab.base; parent < symtab.limit; parent++) in cg_assemble()
637 for (parent = symtab.base; parent < symtab.limit; parent++) in cg_assemble()
649 top_sorted_syms = (Sym **) xmalloc (symtab.len * sizeof (Sym *)); in cg_assemble()
650 for (index = 0; index < symtab.len; ++index) in cg_assemble()
652 top_sorted_syms[index] = &symtab.base[index]; in cg_assemble()
654 qsort (top_sorted_syms, symtab.len, sizeof (Sym *), cmp_topo); in cg_assemble()
657 for (index = 0; index < symtab.len; ++index) in cg_assemble()
[all …]
H A Dcg_print.c509 for (index = 0; index < symtab.len + num_cycles; ++index) in cg_print()
572 name_sorted_syms = (Sym **) xmalloc ((symtab.len + num_cycles) * sizeof (Sym *)); in cg_print_index()
574 for (index = 0, nnames = 0; index < symtab.len; index++) in cg_print_index()
576 if (ignore_zeros && symtab.base[index].ncalls == 0 in cg_print_index()
577 && symtab.base[index].hist.time == 0) in cg_print_index()
580 name_sorted_syms[nnames++] = &symtab.base[index]; in cg_print_index()
794 unused_syms = (Sym **) xmalloc (symtab.len * sizeof (Sym *)); in cg_print_function_ordering()
795 used_syms = (Sym **) xmalloc (symtab.len * sizeof (Sym *)); in cg_print_function_ordering()
796 scratch_syms = (Sym **) xmalloc (symtab.len * sizeof (Sym *)); in cg_print_function_ordering()
803 for (index = 0, used = 0, unused = 0; index < symtab.len; index++) in cg_print_function_ordering()
[all …]
H A Dcall_graph.c39 parent = sym_lookup (&symtab, from_pc); in cg_tally()
40 child = sym_lookup (&symtab, self_pc); in cg_tally()
54 while (child >= symtab.base && ! child->is_func) in cg_tally()
57 if (child < symtab.base) in cg_tally()
112 for (sym = symtab.base; sym < symtab.limit; sym++) in cg_write_arcs()
/openbsd-src/gnu/usr.bin/binutils/gprof/
H A Dcorefile.c418 symtab.len = 0;
442 ++symtab.len;
445 if (symtab.len == 0)
452 symtab.base = (Sym *) xmalloc ((symtab.len + 2) * sizeof (Sym));
455 symtab.limit = symtab.base;
491 sym_init (symtab.limit);
495 symtab.limit->addr = core_syms[i]->value;
497 symtab.limit->addr += bfd_get_section_vma (sym_sec->owner, sym_sec);
502 symtab.limit->name = symbol_map[found].file_name;
503 symtab.limit->mapped = 1;
[all …]
H A Dhist.c208 for (sym = symtab.base; sym < symtab.limit; sym++) in scale_and_align_entries()
299 for (j = j - 1; j < symtab.len; ++j) in hist_assign_samples()
301 sym_low_pc = symtab.base[j].hist.scaled_addr; in hist_assign_samples()
302 sym_high_pc = symtab.base[j + 1].hist.scaled_addr; in hist_assign_samples()
321 (unsigned long) symtab.base[j].addr, in hist_assign_samples()
323 symtab.base[j].name, overlap * time / hist_scale, in hist_assign_samples()
326 addr = symtab.base[j].addr; in hist_assign_samples()
336 symtab.base[j].hist.time += credit; in hist_assign_samples()
492 time_sorted_syms = (Sym **) xmalloc (symtab.len * sizeof (Sym *)); in hist_print()
494 for (index = 0; index < symtab.len; ++index) in hist_print()
[all …]
H A Dcg_arcs.c289 for (sym = symtab.base; sym < symtab.limit; ++sym) in cycle_link()
310 for (sym = symtab.base; sym < symtab.limit; ++sym) in cycle_link()
454 for (index = symtab.len - 1; index >= 0; --index)
619 for (parent = symtab.base; parent < symtab.limit; parent++) in cg_assemble()
649 for (parent = symtab.base; parent < symtab.limit; parent++) in cg_assemble()
661 top_sorted_syms = (Sym **) xmalloc (symtab.len * sizeof (Sym *)); in cg_assemble()
662 for (index = 0; index < symtab.len; ++index) in cg_assemble()
664 top_sorted_syms[index] = &symtab.base[index]; in cg_assemble()
666 qsort (top_sorted_syms, symtab.len, sizeof (Sym *), cmp_topo); in cg_assemble()
669 for (index = 0; index < symtab.len; ++index) in cg_assemble()
[all …]
H A Dcg_print.c522 for (index = 0; index < symtab.len + num_cycles; ++index)
587 name_sorted_syms = (Sym **) xmalloc ((symtab.len + num_cycles) * sizeof (Sym *)); in cg_print_index()
589 for (index = 0, nnames = 0; index < symtab.len; index++) in cg_print_index()
591 if (ignore_zeros && symtab.base[index].ncalls == 0 in cg_print_index()
592 && symtab.base[index].hist.time == 0) in cg_print_index()
595 name_sorted_syms[nnames++] = &symtab.base[index]; in cg_print_index()
813 unused_syms = (Sym **) xmalloc (symtab.len * sizeof (Sym *)); in cg_print_function_ordering()
814 used_syms = (Sym **) xmalloc (symtab.len * sizeof (Sym *)); in cg_print_function_ordering()
815 scratch_syms = (Sym **) xmalloc (symtab.len * sizeof (Sym *)); in cg_print_function_ordering()
822 for (index = 0, used = 0, unused = 0; index < symtab.len; index++) in cg_print_function_ordering()
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/
H A Dsymtab.h768 struct symtab struct
773 struct symtab *next; argument
826 void (*free_func)(struct symtab *symtab); argument
864 #define BLOCKVECTOR(symtab) (symtab)->blockvector argument
865 #define LINETABLE(symtab) (symtab)->linetable argument
947 struct symtab *symtab; member
969 ((pst) -> symtab != NULL ? (pst) -> symtab : psymtab_to_symtab (pst))
1003 extern struct symtab *lookup_symtab (const char *);
1009 struct symtab **);
1018 struct symtab **);
[all …]
H A Dcp-namespace.c78 struct symtab **symtab,
86 struct symtab **symtab,
97 static void free_namespace_block (struct symtab *symtab);
109 struct symtab **symtab);
339 struct symtab **symtab) in cp_lookup_symbol_nonlocal() argument
342 symtab, block_scope (block), 0); in cp_lookup_symbol_nonlocal()
365 struct symtab **symtab, in lookup_namespace_scope() argument
386 domain, symtab, in lookup_namespace_scope()
399 block, domain, symtab); in lookup_namespace_scope()
412 struct symtab **symtab) in cp_lookup_symbol_namespace() argument
[all …]
H A Dsymtab.c86 struct symtab **symtab);
93 struct symtab **symtab);
100 struct symtab **symtab);
107 struct symtab **symtab);
115 struct symtab **symtab);
127 struct symtab *, struct symbol *, int, char *);
150 struct symtab *
153 struct symtab *s; in lookup_symtab()
698 sal->symtab = 0; in init_sal()
1013 struct symtab **symtab) in lookup_symbol() argument
[all …]
H A Dlinespec.c45 static void initialize_defaults (struct symtab **default_symtab,
56 struct symtab *file_symtab,
102 static struct symtab *symtab_from_filename (char **argptr,
108 struct symtab *default_symtab,
111 struct symtab *file_symtab,
116 struct symtab *default_symtab,
118 struct symtab *file_symtab);
123 struct symtab *file_symtab,
131 struct symtab *file_symtab,
132 struct symtab *sym_symtab);
[all …]
H A Dmacroscope.c39 if (! sal.symtab in sal_macro_scope()
40 || ! sal.symtab->macro_table) in sal_macro_scope()
45 main = macro_main (sal.symtab->macro_table); in sal_macro_scope()
46 inclusion = macro_lookup_inclusion (main, sal.symtab->filename); in sal_macro_scope()
75 sal.symtab->filename); in sal_macro_scope()
115 sal.symtab = cursal.symtab; in default_macro_scope()
H A Ddisasm.c155 struct symtab *symtab, in do_mixed_source_and_assembly() argument
237 print_source_lines (symtab, next_line, mle[i].line + 1, 0); in do_mixed_source_and_assembly()
250 print_source_lines (symtab, next_line, next_line + 1, in do_mixed_source_and_assembly()
263 print_source_lines (symtab, next_line, mle[i].line + 1, 0); in do_mixed_source_and_assembly()
270 print_source_lines (symtab, mle[i].line, mle[i].line + 1, 0); in do_mixed_source_and_assembly()
361 struct symtab *symtab = NULL; in gdb_disassembly() local
366 symtab = find_pc_symtab (low); in gdb_disassembly()
368 if (symtab != NULL && symtab->linetable != NULL) in gdb_disassembly()
371 le = symtab->linetable->item; in gdb_disassembly()
372 nlines = symtab->linetable->nitems; in gdb_disassembly()
[all …]
H A Dsymmisc.c58 static void dump_symtab (struct objfile *, struct symtab *,
119 free_symtab (struct symtab *s) in free_symtab()
185 struct symtab *s; in print_objfile_statistics()
246 struct symtab *symtab; in dump_objfile() local
280 for (symtab = objfile->symtabs; in dump_objfile()
281 symtab != NULL; in dump_objfile()
282 symtab = symtab->next) in dump_objfile()
284 printf_filtered ("%s at ", symtab->filename); in dump_objfile()
285 gdb_print_host_address (symtab, gdb_stdout); in dump_objfile()
287 if (symtab->objfile != objfile) in dump_objfile()
[all …]
/openbsd-src/gnu/llvm/lldb/source/Plugins/SymbolFile/Symtab/
H A DSymbolFileSymtab.cpp61 const Symtab *symtab = m_objfile_sp->GetSymtab(); in CalculateAbilities() local
62 if (symtab) { in CalculateAbilities()
66 if (symtab->AppendSymbolIndexesWithType(eSymbolTypeSourceFile, in CalculateAbilities()
71 if (symtab->AppendSymbolIndexesWithType( in CalculateAbilities()
74 symtab->SortSymbolIndexesByValue(m_func_indexes, true); in CalculateAbilities()
78 if (symtab->AppendSymbolIndexesWithType(eSymbolTypeCode, Symtab::eDebugNo, in CalculateAbilities()
81 symtab->SortSymbolIndexesByValue(m_code_indexes, true); in CalculateAbilities()
85 if (symtab->AppendSymbolIndexesWithType(eSymbolTypeData, in CalculateAbilities()
87 symtab->SortSymbolIndexesByValue(m_data_indexes, true); in CalculateAbilities()
92 if (symtab->AppendSymbolIndexesWithType(eSymbolTypeObjCClass, in CalculateAbilities()
[all …]
/openbsd-src/gnu/usr.bin/perl/dist/constant/lib/
H A Dconstant.pm62 my $symtab;
66 $symtab = \%{$caller . '::'};
85 my $symtab = $symtab;
91 $symtab = \%{$pkg . '::'};
165 if (!exists $symtab->{$name}) {
166 $symtab->{$name} = \$scalar;
181 if (!exists $symtab->{$name}) {
182 $symtab->{$name} = \@list;
/openbsd-src/lib/libelf/
H A Dlibelf_ar.c319 Elf_Arsym *symtab, *sym; in _libelf_ar_process_bsd_symtab() local
330 symtab = NULL; in _libelf_ar_process_bsd_symtab()
367 if ((symtab = malloc(sizeof(Elf_Arsym) * (nentries + 1))) == NULL) { in _libelf_ar_process_bsd_symtab()
373 for (n = 0, sym = symtab; n < nentries; n++, sym++) { in _libelf_ar_process_bsd_symtab()
397 e->e_u.e_ar.e_symtab = symtab; in _libelf_ar_process_bsd_symtab()
401 return (symtab); in _libelf_ar_process_bsd_symtab()
404 if (symtab) in _libelf_ar_process_bsd_symtab()
405 free(symtab); in _libelf_ar_process_bsd_symtab()
435 Elf_Arsym *symtab, *sym; in _libelf_ar_process_svr4_symtab() local
442 symtab = NULL; in _libelf_ar_process_svr4_symtab()
[all …]
H A Delf_getarsym.c37 Elf_Arsym *symtab; in elf_getarsym() local
40 symtab = NULL; in elf_getarsym()
44 else if ((symtab = ar->e_u.e_ar.e_symtab) != NULL) in elf_getarsym()
47 symtab = (ar->e_flags & LIBELF_F_AR_VARIANT_SVR4) ? in elf_getarsym()
55 return (symtab); in elf_getarsym()
/openbsd-src/sys/ddb/
H A Ddb_elf.c55 * symtab: pointer to start of symbol table
60 db_elf_sym_init(int symsize, void *symtab, void *esymtab, const char *name) in db_elf_sym_init() argument
69 if (ALIGNED_POINTER(symtab, long) == 0) { in db_elf_sym_init()
71 name, symtab); in db_elf_sym_init()
95 elf = (Elf_Ehdr *)symtab; in db_elf_sym_init()
109 * the symbol table (.symtab) and string table (.strtab) via their in db_elf_sym_init()
114 shp = (Elf_Shdr *)((char *)symtab + elf->e_shoff); in db_elf_sym_init()
115 shstrtab = (char *)symtab + shp[elf->e_shstrndx].sh_offset; in db_elf_sym_init()
122 symtab_start = (Elf_Sym *)((char *)symtab + in db_elf_sym_init()
124 symtab_end = (Elf_Sym *)((char *)symtab in db_elf_sym_init()
[all...]
/openbsd-src/usr.sbin/crunchgen/
H A Delf_hide.c50 void dump_symtab(Elf_Shdr * symsect, Elf_Sym * symtab, int symtabsize);
58 Elf_Sym * symtab, int symtabsize, int symtabsecnum);
60 Elf_Sym * symtab, int symtabsize, int symtabsecnum);
183 Elf_Sym *symtab; in load_symtab() local
193 symtab = NULL; in load_symtab()
205 symtab = (Elf_Sym *) (pexe + psymshdr->sh_offset); in load_symtab()
210 dump_symtab(symsect, symtab, symtabsize); in load_symtab()
212 hide_sym(pehdr, symsect, symtab, symtabsize, pshdr->sh_link); in load_symtab()
218 dump_symtab(Elf_Shdr * symsect, Elf_Sym * symtab, int symtabsize) in dump_symtab() argument
224 psymtab = &(symtab[i]); in dump_symtab()
[all …]
/openbsd-src/gnu/usr.bin/binutils/gdb/mi/
H A Dmi-cmd-file.c50 if (!st.symtab) in mi_cmd_file_list_exec_source_file()
54 symtab_to_fullname (st.symtab); in mi_cmd_file_list_exec_source_file()
58 ui_out_field_string (uiout, "file", st.symtab->filename); in mi_cmd_file_list_exec_source_file()
61 if (st.symtab->fullname) in mi_cmd_file_list_exec_source_file()
62 ui_out_field_string (uiout, "fullname", st.symtab->fullname); in mi_cmd_file_list_exec_source_file()
70 struct symtab *s; in mi_cmd_file_list_exec_source_files()
/openbsd-src/gnu/llvm/lld/wasm/
H A DMarkLive.cpp90 enqueue(symtab->find(config->entry)); in run()
93 for (Symbol *sym : symtab->symbols()) in run()
101 for (const ObjFile *obj : symtab->objectFiles) in run()
155 for (const ObjFile *obj : symtab->objectFiles) { in markLive()
172 for (InputChunk *c : symtab->syntheticFunctions) in markLive()
175 for (InputGlobal *g : symtab->syntheticGlobals) in markLive()
178 for (InputTable *t : symtab->syntheticTables) in markLive()
196 for (const ObjFile *file : symtab->objectFiles) { in isCallCtorsLive()

12345678910>>...15