projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f22ed82
)
perf unwind: Check for mmaps also in MAP__VARIABLE tree
author
Jiri Olsa
<
[email protected]
>
Thu, 7 Jan 2016 09:14:01 +0000
(10:14 +0100)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 8 Jan 2016 17:16:34 +0000
(14:16 -0300)
We've seen cases (softice) where DWARF unwinder went through non
executable mmaps, which we need to lookup in MAP__VARIABLE tree.
Reported-and-Tested-by: Noel Grandin <
[email protected]
>
Signed-off-by: Jiri Olsa <
[email protected]
>
Cc: Adrian Hunter <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/unwind-libunwind.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/unwind-libunwind.c
b/tools/perf/util/unwind-libunwind.c
index f37859c0431726febf29fedd2c2a52dbc7cd93df..ee7e372297e59adb7eb3c7a1ffec8acb6186f704 100644
(file)
--- a/
tools/perf/util/unwind-libunwind.c
+++ b/
tools/perf/util/unwind-libunwind.c
@@
-319,6
+319,15
@@
static struct map *find_map(unw_word_t ip, struct unwind_info *ui)
thread__find_addr_map(ui->thread, PERF_RECORD_MISC_USER,
MAP__FUNCTION, ip, &al);
+ if (!al.map) {
+ /*
+ * We've seen cases (softice) where DWARF unwinder went
+ * through non executable mmaps, which we need to lookup
+ * in MAP__VARIABLE tree.
+ */
+ thread__find_addr_map(ui->thread, PERF_RECORD_MISC_USER,
+ MAP__VARIABLE, ip, &al);
+ }
return al.map;
}