]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
perf callchain: Refactor inline_list to store srcline string directly
authorMilian Wolff <milian.wolff@kdab.com>
Mon, 9 Oct 2017 20:32:58 +0000 (22:32 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 24 Oct 2017 12:59:55 +0000 (09:59 -0300)
commit2be8832f3c51cf9e36a3e80ff57f4137505c2ba4
treeaf5c5fb3afb7f79259bdee94a09d1e97273217ce
parentfea0cf842c7aa08950063264ab1cfbce4ba38c1b
perf callchain: Refactor inline_list to store srcline string directly

This is a preparation for the creation of real callchain entries for
inlined frames. The rest of the perf code uses the srcline string. As
such, using that also for the srcline API allows us to simplify some of
the upcoming code. Most notably, it will allow us to cache the srcline
for a given inline node and reuse it for different callchain entries.

Signed-off-by: Milian Wolff <milian.wolff@kdab.com>
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Yao Jin <yao.jin@linux.intel.com>
Link: http://lkml.kernel.org/r/20171009203310.17362-5-milian.wolff@kdab.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/srcline.c
tools/perf/util/srcline.h