diff options
| author | Hitoshi Mitake <[email protected]> | 2010-01-16 21:31:16 +0900 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2010-01-17 07:55:19 +0100 |
| commit | 0eda7385db1f30271ade830a231006938a76fb53 (patch) | |
| tree | 8b9bf7f38c631907125f7353806be72b14f24978 /tools/perf/scripts/python/flamegraph.py | |
| parent | 69e3f52d1b1a3ed4390bb8a09bb1324265af7fbf (diff) | |
perf probe: Fix build error of builtin-probe.c
I got this build error when building tip tree:
| cc1: warnings being treated as errors
| builtin-probe.c:123: error: 'opt_show_lines' defined but not used
This error is caused by:
| #ifndef NO_LIBDWARF
| OPT_CALLBACK('L', "line", NULL,
| "FUNC[:RLN[+NUM|:RLN2]]|SRC:ALN[+NUM|:ALN2]",
| "Show source code lines.", opt_show_lines),
| #endif
My environment defines NO_LIBDWARF, so gcc treated
opt_show_lines() as garbage. So I moved opt_show_lines() into
#ifndef NO_LIBDWARF ... #endif block.
Signed-off-by: Hitoshi Mitake <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Mike Galbraith <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions