perf annotate: Rename 'sum' to 'nr_samples' in struct sym_hist
authorTaeung Song <[email protected]>
Wed, 19 Jul 2017 21:36:51 +0000 (06:36 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
Fri, 21 Jul 2017 11:23:49 +0000 (08:23 -0300)
commit8158683da3d30e0346275702a8e08f2b22726c45
treeab218d3516ffc6a52bbbdbd4b777b4874a3a65ed
parent896bccd3cb8d95cbc565687715516009c5169e71
perf annotate: Rename 'sum' to 'nr_samples' in struct sym_hist

To make it more clear that it is the sum of all the nr_samples fields in the
addr[] entries, i.e.:

  sym_hist->nr_samples = sum(sym_hist->addr[0 ..  symbol__size(sym)]->nr_samples)

Committer notes:

Taeung had renamed it to total_samples, but using nr_samples, as in the
added explanation above, looks clearer and establishes the direct
connection, making clear it is about the _number_ of samples.

Signed-off-by: Taeung Song <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/ui/gtk/annotate.c
tools/perf/util/annotate.c
tools/perf/util/annotate.h