perf hists: Replace perf_evsel arg perf_hpp_fmt's width callback
Replacing perf_evsel arg perf_hpp_fmt's width callback with hists object. This will be helpful in future for non evsel related hist browsers. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1465928361-2442-11-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
0537217360
commit
da1b0407c8
@@ -1470,7 +1470,7 @@ static int hist_browser__show_no_entry(struct hist_browser *browser,
|
||||
column++ < browser->b.horiz_scroll)
|
||||
continue;
|
||||
|
||||
ret = fmt->width(fmt, NULL, hists_to_evsel(browser->hists));
|
||||
ret = fmt->width(fmt, NULL, browser->hists);
|
||||
|
||||
if (first) {
|
||||
/* for folded sign */
|
||||
|
Reference in New Issue
Block a user