diff options
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r-- | tools/perf/util/hist.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 6f17dcd8412c..83fa33a7b38b 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -98,12 +98,32 @@ void hists__filter_by_thread(struct hists *self, const struct thread *thread); | |||
98 | #ifdef NO_NEWT_SUPPORT | 98 | #ifdef NO_NEWT_SUPPORT |
99 | static inline int hists__browse(struct hists *self __used, | 99 | static inline int hists__browse(struct hists *self __used, |
100 | const char *helpline __used, | 100 | const char *helpline __used, |
101 | const char *input_name __used) | 101 | const char *ev_name __used) |
102 | { | 102 | { |
103 | return 0; | 103 | return 0; |
104 | } | 104 | } |
105 | |||
106 | static inline int hists__tui_browse_tree(struct rb_root *self __used, | ||
107 | const char *help __used) | ||
108 | { | ||
109 | return 0; | ||
110 | } | ||
111 | |||
112 | static inline int hist_entry__tui_annotate(struct hist_entry *self __used) | ||
113 | { | ||
114 | return 0; | ||
115 | } | ||
116 | #define KEY_LEFT -1 | ||
117 | #define KEY_RIGHT -2 | ||
105 | #else | 118 | #else |
119 | #include <newt.h> | ||
106 | int hists__browse(struct hists *self, const char *helpline, | 120 | int hists__browse(struct hists *self, const char *helpline, |
107 | const char *input_name); | 121 | const char *ev_name); |
122 | int hist_entry__tui_annotate(struct hist_entry *self); | ||
123 | |||
124 | #define KEY_LEFT NEWT_KEY_LEFT | ||
125 | #define KEY_RIGHT NEWT_KEY_RIGHT | ||
126 | |||
127 | int hists__tui_browse_tree(struct rb_root *self, const char *help); | ||
108 | #endif | 128 | #endif |
109 | #endif /* __PERF_HIST_H */ | 129 | #endif /* __PERF_HIST_H */ |