perf tools: Introduce hists__inc_nr_samples()
authorNamhyung Kim <namhyung@kernel.org>
Wed, 28 May 2014 05:12:18 +0000 (14:12 +0900)
committerJiri Olsa <jolsa@kernel.org>
Sun, 1 Jun 2014 12:34:55 +0000 (14:34 +0200)
commit1844dbcbe78503e0f4a8996d69da725d5e7a5177
treee1858b5bd3c1fb9a2638d366a9e1c790e5e654b6
parente450f90e8c7d0bf70519223c1b848446ae63f313
perf tools: Introduce hists__inc_nr_samples()

There're some duplicate code for counting number of samples.  Add
hists__inc_nr_samples() and reuse it.

Suggested-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1401335910-16832-2-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/builtin-annotate.c
tools/perf/builtin-report.c
tools/perf/builtin-sched.c
tools/perf/builtin-top.c
tools/perf/tests/hists_filter.c
tools/perf/util/hist.c
tools/perf/util/hist.h