diff options
| author | Irina Tirdea <[email protected]> | 2012-09-08 00:43:23 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-09-08 01:12:30 +0000 |
| commit | c9f08bee50c71b06685ccff8110e56a7c05662b7 (patch) | |
| tree | 5a4fd1448bef4204e0dc0e99f8bf925a18fb6f61 /arch/powerpc/lib/code-patching.c | |
| parent | tools lib traceevent: replace mempcpy with memcpy (diff) | |
| download | kernel-c9f08bee50c71b06685ccff8110e56a7c05662b7.tar.gz kernel-c9f08bee50c71b06685ccff8110e56a7c05662b7.zip | |
perf tools: add NO_BACKTRACE for application self-debugging
perf has support for self-debugging by defining dump_stack function.
This function uses backtrace and backtrace_symbols functions defined as
GNU extensions.
In Android, bionic does not offer support for these functions and
compilation will fail with the following error:
target C: libperf <= tools/perf/util/util.c
tools/perf/util/util.c:4:22: fatal error: execinfo.h: No such file or directory
compilation terminated.
Add a compile-time option (NO_BACKTRACE) to enable or disable
self-debugging functionality in perf. This can also help in debugging
since it offers the possibility to turn on/off printing the backtrace.
Signed-off-by: Irina Tirdea <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Steven Rostedt <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions
