aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2011-10-12 08:03:28 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-10-13 07:48:58 -0400
commit33e27312aeb05798572ccc456a76321125e8d7cb (patch)
treef06cd938f09edee04cbacf8e68a4d02b0dcd352d
parentdf71d95f86ec7310722f96b6902699f3fe30b439 (diff)
perf hists: Fix compilation when NO_NEWT_SUPPORT is set
This patch, relative to tip/master, makes perf compile when NO_NEWT_SUPPORT is set. It also fixes the line formatting to fit 80 columns. Please test with NO_NEWT. Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20111012120328.GA1619@quad Signed-off-by: Stephane Eranian <eranian@google.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--tools/perf/util/hist.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 7ea1e560e008..7416521f7fea 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -103,16 +103,20 @@ struct perf_evlist;
103#ifdef NO_NEWT_SUPPORT 103#ifdef NO_NEWT_SUPPORT
104static inline 104static inline
105int perf_evlist__tui_browse_hists(struct perf_evlist *evlist __used, 105int perf_evlist__tui_browse_hists(struct perf_evlist *evlist __used,
106 const char *help __used, void(*timer)(void *arg) __used, void *arg, 106 const char *help __used,
107 void(*timer)(void *arg) __used,
108 void *arg __used,
107 int refresh __used) 109 int refresh __used)
108{ 110{
109 return 0; 111 return 0;
110} 112}
111 113
112static inline int hist_entry__tui_annotate(struct hist_entry *self __used, 114static inline int hist_entry__tui_annotate(struct hist_entry *self __used,
113 int evidx __used, int nr_events __used, 115 int evidx __used,
116 int nr_events __used,
114 void(*timer)(void *arg) __used, 117 void(*timer)(void *arg) __used,
115 void *arg __used, int delay_secs __used); 118 void *arg __used,
119 int delay_secs __used)
116{ 120{
117 return 0; 121 return 0;
118} 122}