perf annotate: Calculate instruction overhead using hashmap
authorNamhyung Kim <namhyung@kernel.org>
Mon, 4 Mar 2024 23:08:13 +0000 (15:08 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 7 Mar 2024 04:25:20 +0000 (20:25 -0800)
commit80154575849778e40d9d87aa7ab14491ac401948
tree46620ceb5805f2654fc035f22edd9122483c1cd7
parentd3e7cad6f36d9e80307b05bf31959597f9b6cd62
perf annotate: Calculate instruction overhead using hashmap

Use annotated_source.samples hashmap instead of addr array in the
struct sym_hist.

Reviewed-by: Ian Rogers <irogers@google.com>
Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240304230815.1440583-3-namhyung@kernel.org
tools/perf/ui/gtk/annotate.c
tools/perf/util/annotate.c
tools/perf/util/annotate.h