perf report: Count number of entries separately
authorNamhyung Kim <namhyung@kernel.org>
Tue, 22 Apr 2014 00:47:25 +0000 (09:47 +0900)
committerJiri Olsa <jolsa@kernel.org>
Thu, 24 Apr 2014 14:29:20 +0000 (16:29 +0200)
commit58c311da9cec97d7a665156a726bd1653384c65c
treea5ec87aa5cfb21347e6e8f1379cca9cdf284319a
parenta81fef347b32dea2b31275826afe1c93fa0d2d54
perf report: Count number of entries separately

The hists->nr_entries is counted in multiple places so that they can
confuse readers of the code.  This is a preparation of later change
and do not intend any functional difference.

Note that report__collapse_hists() now changed to return nothing since
its return value (nr_samples) is only for checking if there's any data
in the input file and this can be acheived by checking ->nr_entries.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1398327843-31845-2-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/builtin-report.c