RT-AC56 3.0.0.4.374.37 core
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / tools / perf / util / debug.h
blob7a17ee061bcbd4c80ed42084e12bc61b834fa8b3
1 /* For debugging general purposes */
2 #ifndef __PERF_DEBUG_H
3 #define __PERF_DEBUG_H
5 #include <stdbool.h>
6 #include "event.h"
8 extern int verbose;
9 extern bool dump_trace;
11 int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
12 void trace_event(event_t *event);
14 struct ui_progress;
16 #ifdef NO_NEWT_SUPPORT
17 static inline int ui_helpline__show_help(const char *format __used, va_list ap __used)
19 return 0;
22 static inline struct ui_progress *ui_progress__new(const char *title __used,
23 u64 total __used)
25 return (struct ui_progress *)1;
28 static inline void ui_progress__update(struct ui_progress *self __used,
29 u64 curr __used) {}
31 static inline void ui_progress__delete(struct ui_progress *self __used) {}
32 #else
33 extern char ui_helpline__last_msg[];
34 int ui_helpline__show_help(const char *format, va_list ap);
35 #include "ui/progress.h"
36 #endif
38 #endif /* __PERF_DEBUG_H */