xref: /openbmc/linux/tools/perf/util/debug.h (revision b34e08d5)
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 #include "../ui/helpline.h"
8 #include "../ui/progress.h"
9 #include "../ui/util.h"
10 
11 extern int verbose;
12 extern bool quiet, dump_trace;
13 
14 int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
15 void trace_event(union perf_event *event);
16 
17 int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2)));
18 int ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2)));
19 
20 void pr_stat(const char *fmt, ...);
21 
22 #endif	/* __PERF_DEBUG_H */
23