diff options
Diffstat (limited to 'tools/perf/ui/browsers/annotate.c')
| -rw-r--r-- | tools/perf/ui/browsers/annotate.c | 19 | 
1 files changed, 10 insertions, 9 deletions
diff --git a/tools/perf/ui/browsers/annotate.c b/tools/perf/ui/browsers/annotate.c index e67880bf1efe..82207db8f97c 100644 --- a/tools/perf/ui/browsers/annotate.c +++ b/tools/perf/ui/browsers/annotate.c @@ -2,8 +2,9 @@  #include "../browser.h"  #include "../helpline.h"  #include "../ui.h" -#include "../util.h"  #include "../../util/annotate.h" +#include "../../util/debug.h" +#include "../../util/dso.h"  #include "../../util/hist.h"  #include "../../util/sort.h"  #include "../../util/map.h" @@ -299,7 +300,7 @@ static void annotate_browser__set_rb_top(struct annotate_browser *browser,  }  static void annotate_browser__calc_percent(struct annotate_browser *browser, -					   struct perf_evsel *evsel) +					   struct evsel *evsel)  {  	struct map_symbol *ms = browser->b.priv;  	struct symbol *sym = ms->sym; @@ -406,7 +407,7 @@ static int sym_title(struct symbol *sym, struct map *map, char *title,   * to the calling function.   */  static bool annotate_browser__callq(struct annotate_browser *browser, -				    struct perf_evsel *evsel, +				    struct evsel *evsel,  				    struct hist_browser_timer *hbt)  {  	struct map_symbol *ms = browser->b.priv; @@ -422,7 +423,7 @@ static bool annotate_browser__callq(struct annotate_browser *browser,  	notes = symbol__annotation(dl->ops.target.sym);  	pthread_mutex_lock(¬es->lock); -	if (!symbol__hists(dl->ops.target.sym, evsel->evlist->nr_entries)) { +	if (!symbol__hists(dl->ops.target.sym, evsel->evlist->core.nr_entries)) {  		pthread_mutex_unlock(¬es->lock);  		ui__warning("Not enough memory for annotating '%s' symbol!\n",  			    dl->ops.target.sym->name); @@ -455,7 +456,7 @@ struct disasm_line *annotate_browser__find_offset(struct annotate_browser *brows  }  static bool annotate_browser__jump(struct annotate_browser *browser, -				   struct perf_evsel *evsel, +				   struct evsel *evsel,  				   struct hist_browser_timer *hbt)  {  	struct disasm_line *dl = disasm_line(browser->selection); @@ -656,7 +657,7 @@ switch_percent_type(struct annotation_options *opts, bool base)  }  static int annotate_browser__run(struct annotate_browser *browser, -				 struct perf_evsel *evsel, +				 struct evsel *evsel,  				 struct hist_browser_timer *hbt)  {  	struct rb_node *nd = NULL; @@ -869,14 +870,14 @@ out:  	return key;  } -int map_symbol__tui_annotate(struct map_symbol *ms, struct perf_evsel *evsel, +int map_symbol__tui_annotate(struct map_symbol *ms, struct evsel *evsel,  			     struct hist_browser_timer *hbt,  			     struct annotation_options *opts)  {  	return symbol__tui_annotate(ms->sym, ms->map, evsel, hbt, opts);  } -int hist_entry__tui_annotate(struct hist_entry *he, struct perf_evsel *evsel, +int hist_entry__tui_annotate(struct hist_entry *he, struct evsel *evsel,  			     struct hist_browser_timer *hbt,  			     struct annotation_options *opts)  { @@ -888,7 +889,7 @@ int hist_entry__tui_annotate(struct hist_entry *he, struct perf_evsel *evsel,  }  int symbol__tui_annotate(struct symbol *sym, struct map *map, -			 struct perf_evsel *evsel, +			 struct evsel *evsel,  			 struct hist_browser_timer *hbt,  			 struct annotation_options *opts)  {  | 
