diff options
author | Milian Wolff <[email protected]> | 2017-10-09 22:32:56 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-10-24 09:59:55 -0300 |
commit | 40a342cda2cd9bc8f7bf81c5ce1a141584760757 (patch) | |
tree | 21f9ebf584f25c45e7fe8bf0280c2d6d9c6cac8a /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 2a704fc8db7b0080a67d9f4f4cb2a7bcaf79949d (diff) |
perf callchain: Store srcline in callchain_cursor_node
This is mostly a preparation to enable the creation of full callchain
nodes for inline frames. Such frames will reference the IP of the
non-inlined frame, but hold the symbol and srcline for an inlined
location. As such, we won't be able to query the srcline on-demand based
on the IP alone. Instead, we will leverage the functionality provided by
this patch here, and store the srcline for the inlined nodes in the new
srcline member of callchain_cursor_node.
Note that this patch on its own leaks the srcline, as there is no
free_callchain_cursor_node or similar. A future patch will add caching
of the srcline and handle deletion properly.
Signed-off-by: Milian Wolff <[email protected]>
Reviewed-by: Jiri Olsa <[email protected]>
Reviewed-by: Namhyung Kim <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Yao Jin <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions