perf tools: Move hist_entry__add common code to hist.c
Now perf report and annotate do the callgraph/hit processing in their specialized hist_entry__add functions. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Acked-by: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Galbraith <efault@gmx.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
439d473b47
commit
9735abf11b
4 changed files with 75 additions and 89 deletions
|
@ -36,6 +36,9 @@ extern unsigned long total_fork;
|
|||
extern unsigned long total_unknown;
|
||||
extern unsigned long total_lost;
|
||||
|
||||
struct hist_entry *__hist_entry__add(struct thread *thread, struct map *map,
|
||||
struct symbol *sym, struct symbol *parent,
|
||||
u64 ip, u64 count, char level, bool *hit);
|
||||
extern int64_t hist_entry__cmp(struct hist_entry *, struct hist_entry *);
|
||||
extern int64_t hist_entry__collapse(struct hist_entry *, struct hist_entry *);
|
||||
extern void hist_entry__free(struct hist_entry *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue