#include "source.h"
+#define NBBS 10
+
/*
* Symbol-entry. For each external in the specified file we gather
* its address, the number of calls and compute its share of cpu time.
int line_num; /* source line number */
unsigned int is_func:1, /* is this a function entry point? */
is_static:1, /* is this a local (static) symbol? */
- is_bb_head:1; /* is this the head of a basic-blk? */
- int ncalls; /* how many times executed */
+ is_bb_head:1, /* is this the head of a basic-blk? */
+ mapped:1, /* this symbol was mapped to another name */
+ has_been_placed:1; /* have we placed this symbol? */
+ unsigned long ncalls; /* how many times executed */
+ int nuses; /* how many times this symbol appears in
+ a particular context */
+ bfd_vma bb_addr[NBBS]; /* address of basic-block start */
+ unsigned long bb_calls[NBBS]; /* how many times basic-block was called */
struct sym *next; /* for building chains of syms */
+ struct sym *prev; /* for building chains of syms */
/* profile-specific information: */
/* call-graph specific info: */
struct
{
- int self_calls; /* how many calls to self */
+ unsigned long self_calls; /* how many calls to self */
double child_time; /* cumulative ticks in children */
int index; /* index in the graph list */
int top_order; /* graph call chain top-sort order */
*/
typedef struct
{
- int len; /* # of symbols in this table */
+ unsigned int len; /* # of symbols in this table */
Sym *base; /* first element in symbol table */
Sym *limit; /* limit = base + len */
}
extern void symtab_finalize PARAMS ((Sym_Table * symtab));
extern Sym *sym_lookup PARAMS ((Sym_Table * symtab, bfd_vma address));
+extern void find_call PARAMS ((Sym *, bfd_vma, bfd_vma));
+
#endif /* symtab_h */