]> asedeno.scripts.mit.edu Git - linux.git/commit
perf auxtrace: Alter addr_filter__entire_dso() to work if there are no symbols
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 27 Nov 2018 08:46:34 +0000 (10:46 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Dec 2018 15:21:44 +0000 (12:21 -0300)
commit571766010ea6bf9726b288eb2db1abb59b1841af
treefbe644a08c83351099e1b7d9d34e75bb9ba342ba
parentb5c2161cc415babb84d2b49599df8bd03b2b9b69
perf auxtrace: Alter addr_filter__entire_dso() to work if there are no symbols

addr_filter__entire_dso() uses the first and last symbols from a dso,
and so does not work when there are no symbols.  Alter it to filter the
whole file instead.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Fixes: 1b36c03e3569 ("perf record: Add support for using symbols in address filters")
Link: http://lkml.kernel.org/r/20181127084634.12469-1-adrian.hunter@intel.com
[ split from a larger patch ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/auxtrace.c