1 /* For debugging general purposes */
7 #include "../ui/helpline.h"
10 extern bool quiet, dump_trace;
12 int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
13 void trace_event(union perf_event *event);
16 struct perf_error_ops;
18 #if defined(NEWT_SUPPORT) || defined(GTK2_SUPPORT)
20 #include "../ui/progress.h"
21 int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2)));
22 #include "../ui/util.h"
26 static inline void ui_progress__update(u64 curr __maybe_unused,
27 u64 total __maybe_unused,
28 const char *title __maybe_unused) {}
30 #define ui__error(format, arg...) ui__warning(format, ##arg)
33 perf_error__register(struct perf_error_ops *eops __maybe_unused)
39 perf_error__unregister(struct perf_error_ops *eops __maybe_unused)
44 #endif /* NEWT_SUPPORT || GTK2_SUPPORT */
46 int ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2)));
47 int ui__error_paranoid(void);
49 #endif /* __PERF_DEBUG_H */