debug.h 479 B

12345678910111213141516171819202122
  1. /* For debugging general purposes */
  2. #ifndef __PERF_DEBUG_H
  3. #define __PERF_DEBUG_H
  4. #include "event.h"
  5. extern int verbose;
  6. extern int dump_trace;
  7. int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
  8. void trace_event(event_t *event);
  9. #ifdef NO_NEWT_SUPPORT
  10. static inline int browser__show_help(const char *format __used, va_list ap __used)
  11. {
  12. return 0;
  13. }
  14. #else
  15. int browser__show_help(const char *format, va_list ap);
  16. #endif
  17. #endif /* __PERF_DEBUG_H */