Root/
1 | /* For debugging general purposes */ |
2 | #ifndef __PERF_DEBUG_H |
3 | #define __PERF_DEBUG_H |
4 | |
5 | #include <stdbool.h> |
6 | #include "event.h" |
7 | |
8 | extern int verbose; |
9 | extern bool quiet, dump_trace; |
10 | |
11 | int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2))); |
12 | void trace_event(union perf_event *event); |
13 | |
14 | struct ui_progress; |
15 | |
16 | #ifdef NO_NEWT_SUPPORT |
17 | static inline int ui_helpline__show_help(const char *format __used, va_list ap __used) |
18 | { |
19 | return 0; |
20 | } |
21 | |
22 | static inline void ui_progress__update(u64 curr __used, u64 total __used, |
23 | const char *title __used) {} |
24 | |
25 | #define ui__error(format, arg...) ui__warning(format, ##arg) |
26 | #else |
27 | extern char ui_helpline__last_msg[]; |
28 | int ui_helpline__show_help(const char *format, va_list ap); |
29 | #include "../ui/progress.h" |
30 | int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2))); |
31 | #endif |
32 | |
33 | int ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2))); |
34 | int ui__error_paranoid(void); |
35 | |
36 | #endif /* __PERF_DEBUG_H */ |
37 |
Branches:
ben-wpan
ben-wpan-stefan
javiroman/ks7010
jz-2.6.34
jz-2.6.34-rc5
jz-2.6.34-rc6
jz-2.6.34-rc7
jz-2.6.35
jz-2.6.36
jz-2.6.37
jz-2.6.38
jz-2.6.39
jz-3.0
jz-3.1
jz-3.11
jz-3.12
jz-3.13
jz-3.15
jz-3.16
jz-3.18-dt
jz-3.2
jz-3.3
jz-3.4
jz-3.5
jz-3.6
jz-3.6-rc2-pwm
jz-3.9
jz-3.9-clk
jz-3.9-rc8
jz47xx
jz47xx-2.6.38
master
Tags:
od-2011-09-04
od-2011-09-18
v2.6.34-rc5
v2.6.34-rc6
v2.6.34-rc7
v3.9