diff options
| author | Namhyung Kim <[email protected]> | 2024-03-19 05:50:59 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2024-03-21 13:41:28 +0000 |
| commit | 5cdd3fd7995a7a07b1654ea37e0fcc3c64f0cc44 (patch) | |
| tree | acc3ce02ab831ec1864e43ea6ce7b9c773bcb1dd /tools/perf/builtin-annotate.c | |
| parent | perf annotate-data: Introduce 'struct data_loc_info' (diff) | |
| download | kernel-5cdd3fd7995a7a07b1654ea37e0fcc3c64f0cc44.tar.gz kernel-5cdd3fd7995a7a07b1654ea37e0fcc3c64f0cc44.zip | |
perf annotate: Add annotate_get_basic_blocks()
The annotate_get_basic_blocks() is to find a list of basic blocks from
the source instruction to the destination instruction in a function.
It'll be used to find variables in a scope. Use BFS (Breadth First
Search) to find a shortest path to carry the variable/register state
minimally.
Also change find_disasm_line() to be used in annotate_get_basic_blocks()
and add 'allow_update' argument to control if it can update the IP.
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
0 files changed, 0 insertions, 0 deletions
