diff options
author | 2018-04-26 09:34:37 -0300 | |
---|---|---|
committer | 2018-04-26 13:47:17 -0300 | |
commit | 404eb5a436c4cbdc3b76896a28a3b72b7ad9294e (patch) | |
tree | 58fda90bb9a25d8318c1ed51b2521ee4f0366583 /tools/perf/util/unwind-libdw.c | |
parent | perf thread: Ditch __thread__find_symbol() (diff) | |
download | linux-404eb5a436c4cbdc3b76896a28a3b72b7ad9294e.tar.gz linux-404eb5a436c4cbdc3b76896a28a3b72b7ad9294e.tar.bz2 linux-404eb5a436c4cbdc3b76896a28a3b72b7ad9294e.zip |
perf thread: Make thread__find_map() search all maps
We still have the split internally, but users don't see it anymore,
simplifying the growing number of cases where we end up searching
in the MAP__VARIABLE maps.
This further paves the way for ditching the split.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-86mfxrztf310konutxvhr5ua@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/unwind-libdw.c')
-rw-r--r-- | tools/perf/util/unwind-libdw.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tools/perf/util/unwind-libdw.c b/tools/perf/util/unwind-libdw.c index 17401922cd42..538db4e5d1e6 100644 --- a/tools/perf/util/unwind-libdw.c +++ b/tools/perf/util/unwind-libdw.c @@ -105,16 +105,6 @@ static int access_dso_mem(struct unwind_info *ui, Dwarf_Addr addr, ssize_t size; if (!thread__find_map(ui->thread, PERF_RECORD_MISC_USER, addr, &al)) { - /* - * We've seen cases (softice) where DWARF unwinder went - * through non executable mmaps, which we need to lookup - * in MAP__VARIABLE tree. - */ - __thread__find_map(ui->thread, PERF_RECORD_MISC_USER, - MAP__VARIABLE, addr, &al); - } - - if (!al.map) { pr_debug("unwind: no map for %lx\n", (unsigned long)addr); return -1; } |