diff options
author | Riccardo Mancini <[email protected]> | 2021-06-25 00:34:22 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-07-01 16:14:38 -0300 |
commit | 6de249d66d2e7881b0cefe7f5c9c8b5385f6c15f (patch) | |
tree | 291d9399d26cf171691bf1b9cb409ea25eb3d203 /scripts/gdb/linux/tasks.py | |
parent | ec4c00fedbf3e713776d2776e88a7e4bc61b7efc (diff) |
perf annotate: Allow 's' on source code lines
In perf annotate, when 's' is pressed on a line containing source code,
it shows the message "Only available for assembly lines".
This patch gets rid of the error, moving the cursr to the next available
asm line (or the closest previous one if no asm line is found moving
forwards), before hiding source code lines.
Changes in v2:
- handle case of no asm line found in
annotate_browser__find_next_asm_line by returning NULL and
handling error in caller.
Signed-off-by: Riccardo Mancini <[email protected]>
Tested-by: Arnaldo Carvalho de Melo <[email protected]>
Acked-by: Ian Rogers <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Martin Liška <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions