]> git.baikalelectronics.ru Git - kernel.git/commit
perf script: Initialize callchain_param.record_mode
authorJiri Olsa <jolsa@redhat.com>
Thu, 13 Aug 2015 07:17:24 +0000 (09:17 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Aug 2015 13:48:39 +0000 (10:48 -0300)
commit8fe82bdb8dde12c8b6b90ac7ab33e5ba04de0727
treef8cb389b576858fccf86877aa56abc9fa4ddfed8
parent8501842ac06a080ec9e6e5e19bbfe52782900267
perf script: Initialize callchain_param.record_mode

Milian Wolff reported non functional DWARF unwind under perf script. The
reason is that perf script does not properly configure
callchain_param.record_mode, which is needed by unwind code.

Stealing the code from report and leaving the place for more
initialization code in a hope we could merge it with
report__setup_sample_type one day.

Reported-by: Milian Wolff <mail@milianw.de>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Tested-by: Milian Wolff <milian.wolff@kdab.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/20150813071724.GA21322@krava.brq.redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-script.c