perf annotate: Introduce struct sym_hist_entry
authorTaeung Song <treeze.taeung@gmail.com>
Wed, 19 Jul 2017 21:36:45 +0000 (06:36 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 21 Jul 2017 11:23:38 +0000 (08:23 -0300)
commit896bccd3cb8d95cbc565687715516009c5169e71
tree32faa9f4668fb1b503926520ab0cf471f3220c73
parentb99e4850df86dfd9dc2cf3f3494e403ff8b46876
perf annotate: Introduce struct sym_hist_entry

struct sym_hist has addr[] but it should have not only number of samples
but also the sample period.  So use new struct symhist_entry to pave the
way to have that.

Committer notes:

This initial patch will only introduce the struct sym_hist_entry and use
only the nr_samples member, which makes the code clearer and paves the
way to save the period as well.

Signed-off-by: Taeung Song <treeze.taeung@gmail.com>
Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1500500205-16553-1-git-send-email-treeze.taeung@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c
tools/perf/ui/gtk/annotate.c
tools/perf/util/annotate.c
tools/perf/util/annotate.h