]> git.baikalelectronics.ru Git - kernel.git/commit
perf annotate: Add symbol__calc_lines function
authorJiri Olsa <jolsa@kernel.org>
Wed, 11 Oct 2017 15:01:41 +0000 (17:01 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 16 Nov 2017 17:37:49 +0000 (14:37 -0300)
commit1e8a4b75bc5d502e704778663344b210e138d130
treea6002e803ec28cd9fcf5388466a85c41d9ea7bb2
parentd6f9e6a294c3414911f02b06cf34d075672f6e02
perf annotate: Add symbol__calc_lines function

Replace symbol__get_source_line() with symbol__calc_lines(), which
calculates the source line tree over the struct annotation_line.

This will allow us to remove redundant struct source_line in following
patches.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20171011150158.11895-19-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/annotate.h