aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.c
diff options
context:
space:
mode:
authorRiccardo Mancini <rickyman7@gmail.com>2021-06-25 00:34:22 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-07-01 16:14:38 -0300
commit6de249d66d2e7881b0cefe7f5c9c8b5385f6c15f (patch)
tree291d9399d26cf171691bf1b9cb409ea25eb3d203 /tools/perf/util/session.c
parentperf dlfilter: Add object_code() to perf_dlfilter_fns (diff)
downloadlinux-dev-6de249d66d2e7881b0cefe7f5c9c8b5385f6c15f.tar.xz
linux-dev-6de249d66d2e7881b0cefe7f5c9c8b5385f6c15f.zip
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 <rickyman7@gmail.com> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Acked-by: Ian Rogers <irogers@google.com> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Martin Liška <mliska@suse.cz> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/20210624223423.189550-1-rickyman7@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.c')
0 files changed, 0 insertions, 0 deletions