linux/tools/perf
Hitoshi Mitake 0eda7385db 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 <mitake@dcl.info.waseda.ac.jp>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1263645076-9993-1-git-send-email-mitake@dcl.info.waseda.ac.jp>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2010-01-17 07:55:19 +01:00
..
bench perf sched: Fix build failure on sparc 2009-12-14 08:59:12 +01:00
Documentation perf: Fix few typos + cosmetics 2010-01-13 17:39:44 +01:00
scripts/perl perf trace/scripting: List available scripts 2009-12-15 10:31:32 +01:00
util perf: Fix implicit declaration of getline in util.c 2010-01-17 07:53:09 +01:00
.gitignore perf tools: Add perf.data to .gitignore 2009-11-24 16:37:01 +01:00
builtin-annotate.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin-bench.c perf bench: Add "all" pseudo subsystem and "all" pseudo suite 2009-12-14 08:51:19 +01:00
builtin-buildid-list.c perf buildid-list: Introduce --with-hits option 2010-01-16 10:58:49 +01:00
builtin-diff.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin-help.c perf: Make cmd_to_page() function more compact 2010-01-13 10:53:51 +01:00
builtin-kmem.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin-list.c perf list: Fix large list output by using the pager 2009-08-13 09:05:48 +02:00
builtin-probe.c perf probe: Fix build error of builtin-probe.c 2010-01-17 07:55:19 +01:00
builtin-record.c perf record: Intercept all events 2010-01-16 10:58:50 +01:00
builtin-report.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin-sched.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin-stat.c perf tools: Fix --pid option for stat 2010-01-13 10:09:08 +01:00
builtin-timechart.c perf session: Remove redundant prefix & suffix from perf_event_ops 2009-12-28 09:03:35 +01:00
builtin-top.c perf top: Fix code typo in prompt_symbol() 2010-01-13 17:39:44 +01:00
builtin-trace.c perf tools: Don't cast RIP to pointers 2010-01-16 10:58:45 +01:00
builtin.h perf diff: Introduce tool to show performance difference 2009-12-15 08:50:29 +01:00
command-list.txt perf archive: Add helper script to package files needed to do analysis 2010-01-16 10:58:49 +01:00
CREDITS
design.txt perf: Fix few typos + cosmetics 2010-01-13 17:39:44 +01:00
Makefile perf archive: Add helper script to package files needed to do analysis 2010-01-16 10:58:49 +01:00
perf-archive.sh perf archive: Add helper script to package files needed to do analysis 2010-01-16 10:58:49 +01:00
perf.c perf tools: Mount debugfs automatically 2009-12-28 10:36:36 +01:00
perf.h perf tools: Allow building for ARM 2009-12-11 13:50:21 +01:00