debug.h 565 B

1234567891011121314151617181920
  1. /* For debugging general purposes */
  2. #ifndef __PERF_DEBUG_H
  3. #define __PERF_DEBUG_H
  4. #include <stdbool.h>
  5. #include "event.h"
  6. #include "../ui/helpline.h"
  7. #include "../ui/progress.h"
  8. #include "../ui/util.h"
  9. extern int verbose;
  10. extern bool quiet, dump_trace;
  11. int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
  12. void trace_event(union perf_event *event);
  13. int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2)));
  14. int ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2)));
  15. #endif /* __PERF_DEBUG_H */