perf tools: Disable user-space callchain/stack dumps for function trace events
authorJiri Olsa <jolsa@redhat.com>
Sun, 2 Mar 2014 15:56:40 +0000 (16:56 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Mar 2014 10:57:59 +0000 (11:57 +0100)
commit6bedfab68666afac1b03f8d62ee037c6ab82fbc5
tree900b063d69014b93d04abf5883cf73c729d2e98f
parent63c45f4ba533e9749da16298db53e491c25d805b
perf tools: Disable user-space callchain/stack dumps for function trace events

User space callchains and user space stack dump were disabled
for function trace event. Mailing list discussions:

  http://marc.info/?t=139302086500001&r=1&w=2
  http://marc.info/?t=139301437300003&r=1&w=2

Catching up with perf and disabling user space callchains and
DWARF unwind (uses user stack dump) for function trace event.

Adding following warnings when callchains are used
for function trace event:

  # perf record -g -e ftrace:function ...
  Disabling user space callchains for function trace event.
  ...

  # ./perf record --call-graph=dwarf -e ftrace:function ...
  Cannot use DWARF unwind for function trace event, falling back to framepointers.
  Disabling user space callchains for function trace event.
  ...

Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1393775800-13524-4-git-send-email-jolsa@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/perf/util/evsel.c
tools/perf/util/evsel.h