diff options
author | 2021-02-15 12:34:46 +0100 | |
---|---|---|
committer | 2021-03-06 16:42:31 -0300 | |
commit | 2777b81b379df772defd654bc4d3fa82dca17a4b (patch) | |
tree | 7354e721f5547387f160c9758911529754965aed /tools/perf/util/annotate.h | |
parent | perf bench: Fix misspellings using codespell (diff) | |
download | linux-2777b81b379df772defd654bc4d3fa82dca17a4b.tar.gz linux-2777b81b379df772defd654bc4d3fa82dca17a4b.tar.bz2 linux-2777b81b379df772defd654bc4d3fa82dca17a4b.zip |
perf annotate: Show full source location with 'l' hotkey
Right now, when Line numbers are displayed, one can't easily find a
source file that the line corresponds to.
When a source line is selected and 'l' is pressed, full source file
location is displayed in perf UI footer line. The hotkey works only for
source code lines.
Signed-off-by: Martin Liška <mliska@suse.cz>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: http://lore.kernel.org/lkml/25a6384f-d862-5dda-4fec-8f0555599c75@suse.cz
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r-- | tools/perf/util/annotate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index 096cdaf21b01..3757416bcf46 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h @@ -84,6 +84,7 @@ struct annotation_options { print_lines, full_path, show_linenr, + show_fileloc, show_nr_jumps, show_minmax_cycle, show_asm_raw, @@ -136,6 +137,7 @@ struct annotation_line { s64 offset; char *line; int line_nr; + char *fileloc; int jump_sources; float ipc; u64 cycles; |