]> git.baikalelectronics.ru Git - kernel.git/commit
perf script: Allow --symbol to accept hexadecimal addresses
authorStephane Eranian <eranian@google.com>
Wed, 25 Mar 2020 22:08:02 +0000 (15:08 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Apr 2020 12:37:56 +0000 (09:37 -0300)
commit9f7ff2d78bc67bf1ef3b1c82d74b18f08c56590a
treed1e433a25f039743bbfbe3404daf110abcb33b8d
parent87d1a27745d71f26c42341b659600ed49bb7201d
perf script: Allow --symbol to accept hexadecimal addresses

This patch extends the perf script --symbols option to filter on
hexadecimal addresses in addition to symbol names. This makes it easier
to handle cases where symbols are aliased.

With this patch, it is possible to mix and match symbols and hexadecimal
addresses using the --symbols option.

  $ perf script --symbols=noploop,0x4007a0

Signed-off-by: Stephane Eranian <eranian@google.com>
Reviewed-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: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20200325220802.15039-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/event.c