diff options
Diffstat (limited to 'tools/perf/util/debug.h')
-rw-r--r-- | tools/perf/util/debug.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/tools/perf/util/debug.h b/tools/perf/util/debug.h index 015c91dbc096..bb2e7d1007ab 100644 --- a/tools/perf/util/debug.h +++ b/tools/perf/util/debug.h | |||
@@ -4,6 +4,7 @@ | |||
4 | 4 | ||
5 | #include <stdbool.h> | 5 | #include <stdbool.h> |
6 | #include "event.h" | 6 | #include "event.h" |
7 | #include "../ui/helpline.h" | ||
7 | 8 | ||
8 | extern int verbose; | 9 | extern int verbose; |
9 | extern bool quiet, dump_trace; | 10 | extern bool quiet, dump_trace; |
@@ -15,32 +16,26 @@ struct ui_progress; | |||
15 | struct perf_error_ops; | 16 | struct perf_error_ops; |
16 | 17 | ||
17 | #if defined(NO_NEWT_SUPPORT) && defined(NO_GTK2_SUPPORT) | 18 | #if defined(NO_NEWT_SUPPORT) && defined(NO_GTK2_SUPPORT) |
18 | static inline int ui_helpline__show_help(const char *format __used, va_list ap __used) | 19 | static inline void ui_progress__update(u64 curr __maybe_unused, |
19 | { | 20 | u64 total __maybe_unused, |
20 | return 0; | 21 | const char *title __maybe_unused) {} |
21 | } | ||
22 | |||
23 | static inline void ui_progress__update(u64 curr __used, u64 total __used, | ||
24 | const char *title __used) {} | ||
25 | 22 | ||
26 | #define ui__error(format, arg...) ui__warning(format, ##arg) | 23 | #define ui__error(format, arg...) ui__warning(format, ##arg) |
27 | 24 | ||
28 | static inline int | 25 | static inline int |
29 | perf_error__register(struct perf_error_ops *eops __used) | 26 | perf_error__register(struct perf_error_ops *eops __maybe_unused) |
30 | { | 27 | { |
31 | return 0; | 28 | return 0; |
32 | } | 29 | } |
33 | 30 | ||
34 | static inline int | 31 | static inline int |
35 | perf_error__unregister(struct perf_error_ops *eops __used) | 32 | perf_error__unregister(struct perf_error_ops *eops __maybe_unused) |
36 | { | 33 | { |
37 | return 0; | 34 | return 0; |
38 | } | 35 | } |
39 | 36 | ||
40 | #else /* NO_NEWT_SUPPORT && NO_GTK2_SUPPORT */ | 37 | #else /* NO_NEWT_SUPPORT && NO_GTK2_SUPPORT */ |
41 | 38 | ||
42 | extern char ui_helpline__last_msg[]; | ||
43 | int ui_helpline__show_help(const char *format, va_list ap); | ||
44 | #include "../ui/progress.h" | 39 | #include "../ui/progress.h" |
45 | int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2))); | 40 | int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2))); |
46 | #include "../ui/util.h" | 41 | #include "../ui/util.h" |