]> git.baikalelectronics.ru Git - kernel.git/commit
perf callchains: Ask for PERF_RECORD_MMAP for data mmaps for DWARF unwinding
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 16 Jan 2018 14:16:25 +0000 (11:16 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 17 Jan 2018 13:23:33 +0000 (10:23 -0300)
commit08efd4796d950311425e9a3a8b56b02270ea2883
tree77b07d043c01f16deac75c86b60f7dfc6e80deff
parent6d9a8ddd5e48705b833ae55fe1e198b56e10969b
perf callchains: Ask for PERF_RECORD_MMAP for data mmaps for DWARF unwinding

When we use a global DWARF setting as in:

perf record --call-graph dwarf

According to d98e2b1a36ce ("perf record: Store data mmaps for dwarf unwind") we need
to set up some extra perf_event_attr bits.

But when we instead do a per event dwarf setting:

perf record -e cycles/call-graph=dwarf/

This was not being done, make them equivalent.

This didn't produce any output changes in my tests while fixing up loose
ends in the per-event settings, I found it just by comparing the
perf_event_attr fields trying to find an explanation for those problems.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Hendrick Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Noel Grandin <noelgrandin@gmail.com>
Cc: Thomas Richter <tmricht@linux.vnet.ibm.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-6476r53h2o38skbs9qa4ust4@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c