perf annotate: Split allocation of annotated_source struct
commit116c626b9aca10ee7619b06185c22a5b2da19e30
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 24 May 2018 18:31:40 +0000 (24 15:31 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 4 Jun 2018 13:28:51 +0000 (4 10:28 -0300)
treebc1d950b3b9ee9c59f21560e5336feaa583f01c2
parentf40dd6d1b4b29208a7232693746575f7ae6365a5
perf annotate: Split allocation of annotated_source struct

So that we can allocate just the notes->src->cyc_hist, that, unlike
notes->src->histograms, is not per event, and in paths where we
need to lazily allocate notes->src->cyc_hist we don't have the
number of events handy to also allocate ->histograms.

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-tsx7dhxzpi0criyx0sio3pz3@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/annotate.h