Lines Matching refs:sym

130   Sym *sym;  local
172 sym = sym_lookup (&symtab, addr);
174 if (sym)
180 (unsigned long) addr, (unsigned long) sym->addr,
181 sym->name, sym->line_num, (unsigned long) ncalls));
185 if (! sym->bb_addr[i] || sym->bb_addr[i] == addr)
187 sym->bb_addr[i] = addr;
188 sym->bb_calls[i] += ncalls;
219 Sym *sym; local
223 for (sym = symtab.base; sym < symtab.limit; ++sym)
225 for (i = 0; i < NBBS && sym->bb_addr[i]; i++)
239 for (sym = symtab.base; sym < symtab.limit; ++sym)
241 for (i = 0; i < NBBS && sym->bb_addr[i]; i++)
243 if (gmon_io_write_vma (ofp, sym->bb_addr[i])
244 || gmon_io_write_vma (ofp, (bfd_vma) sym->bb_calls[i]))
261 Sym **sorted_bbs, *sym; in print_exec_counts() local
273 for (sym = symtab.base; sym < symtab.limit; ++sym) in print_exec_counts()
278 if (sym_lookup (&syms[INCL_EXEC], sym->addr) in print_exec_counts()
280 && !sym_lookup (&syms[EXCL_EXEC], sym->addr))) in print_exec_counts()
282 sorted_bbs[len++] = sym; in print_exec_counts()
292 if (sym->ncalls > 0 || ! ignore_zeros) in print_exec_counts()
296 sym->file ? sym->file->name : _("<unknown>"), sym->line_num, in print_exec_counts()
297 sym->name, (unsigned long) sym->addr, sym->ncalls); in print_exec_counts()
300 for (j = 0; j < NBBS && sym->bb_addr[j]; j ++) in print_exec_counts()
302 if (sym->bb_calls[j] > 0 || ! ignore_zeros) in print_exec_counts()
306 sym->file ? sym->file->name : _("<unknown>"), sym->line_num, in print_exec_counts()
307 sym->name, (unsigned long) sym->bb_addr[j], in print_exec_counts()
308 sym->bb_calls[j]); in print_exec_counts()
474 Sym *sym, *line_stats, *new_line; in print_annotated_source() local
481 for (sym = symtab.base; sym < symtab.limit; ++sym) in print_annotated_source()
487 if (sym->file && sym->line_num > sym->file->num_lines in print_annotated_source()
488 && (sym_lookup (&syms[INCL_ANNO], sym->addr) in print_annotated_source()
490 && !sym_lookup (&syms[EXCL_ANNO], sym->addr)))) in print_annotated_source()
492 sym->file->num_lines = sym->line_num; in print_annotated_source()
507 for (sym = symtab.base; sym < symtab.limit; ++sym) in print_annotated_source()
509 if (sym->file && sym->file->num_lines in print_annotated_source()
510 && (sym_lookup (&syms[INCL_ANNO], sym->addr) in print_annotated_source()
512 && !sym_lookup (&syms[EXCL_ANNO], sym->addr)))) in print_annotated_source()
514 sym->file->ncalls += sym->ncalls; in print_annotated_source()
515 line_stats = sym->file->line[sym->line_num - 1]; in print_annotated_source()
520 sym->file->line[sym->line_num - 1] = sym; in print_annotated_source()
525 line_stats->ncalls += sym->ncalls; in print_annotated_source()
533 new_line->ncalls += sym->ncalls; in print_annotated_source()
534 sym->file->line[sym->line_num - 1] = new_line; in print_annotated_source()
565 sym = sf->line[i]; in print_annotated_source()
567 if (!sym || sym->ncalls == 0) in print_annotated_source()
570 fprintf (ofp, "%9d %10lu\n", sym->line_num, sym->ncalls); in print_annotated_source()