Skip to content

Commit 5c0cf22

Browse files
Jiri Olsaacmel
authored andcommitted
perf record: Store data mmaps for dwarf unwind
Currently we don't synthesize data mmap by default. It depends on -d option, that enables data address sampling. But we've seen cases (softice) where DWARF unwinder went through non executable mmaps, which we need to lookup in MAP__VARIABLE tree. Making data mmaps to be synthesized for dwarf unwind as well. Reported-by: Noel Grandin <noelgrandin@gmail.com> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/20160107133022.GA32115@krava.brq.redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 0ba9814 commit 5c0cf22

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎tools/perf/builtin-record.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,8 +815,12 @@ int record_parse_callchain_opt(const struct option *opt,
815815
}
816816

817817
ret = parse_callchain_record_opt(arg, &callchain_param);
818-
if (!ret)
818+
if (!ret) {
819+
/* Enable data address sampling for DWARF unwind. */
820+
if (callchain_param.record_mode == CALLCHAIN_DWARF)
821+
record->sample_address = true;
819822
callchain_debug();
823+
}
820824

821825
return ret;
822826
}

0 commit comments

Comments
 (0)