perf annotate: Stop using symbol_conf.nr_events global in symbol__hists()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 24 May 2018 20:20:53 +0000 (17:20 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Jun 2018 13:28:52 +0000 (10:28 -0300)
commit0693f7588a2f2e016e0774102c52ab2494938348
tree3b2a01c9ba1ddb4ff583f437f0138248ce547015
parentc6b635eece599ae13ffce081bac1fde94912df33
perf annotate: Stop using symbol_conf.nr_events global in symbol__hists()

Since now we have evsel->evlist->nr_entries in the single place calling
this function, use it.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-9mgosbqa977h39j4i9ys8t75@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c