blob: efbd98805ad0b0086996298b698122a2b0ceb018 [file] [log] [blame]
Frederic Weisbeckercd84c2a2009-08-12 10:03:49 +02001/* For debugging general purposes */
John Kacur8b40f522009-09-24 18:02:18 +02002#ifndef __PERF_DEBUG_H
3#define __PERF_DEBUG_H
Frederic Weisbeckercd84c2a2009-08-12 10:03:49 +02004
Ian Munsiec0555642010-04-13 18:37:33 +10005#include <stdbool.h>
Arnaldo Carvalho de Melo8f411462009-11-16 16:32:42 -02006#include "event.h"
Namhyung Kim0985a942012-08-16 17:14:54 +09007#include "../ui/helpline.h"
Namhyung Kim75291422012-11-15 01:47:40 +09008#include "../ui/progress.h"
9#include "../ui/util.h"
Arnaldo Carvalho de Melo8f411462009-11-16 16:32:42 -020010
Frederic Weisbeckercd84c2a2009-08-12 10:03:49 +020011extern int verbose;
Arnaldo Carvalho de Melob44308f2010-10-26 15:20:09 -020012extern bool quiet, dump_trace;
Frederic Weisbeckercd84c2a2009-08-12 10:03:49 +020013
Frederic Weisbecker2cec19d2009-08-16 19:24:21 +020014int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
Arnaldo Carvalho de Melo8115d602011-01-29 14:01:45 -020015void trace_event(union perf_event *event);
Arnaldo Carvalho de Melo567e5472010-03-12 21:05:10 -030016
Namhyung Kimf9f526e2012-09-28 18:32:03 +090017int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2)));
Arnaldo Carvalho de Melo4610e412011-10-26 12:04:37 -020018int ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2)));
Arnaldo Carvalho de Melo068ffaa2010-11-27 02:41:01 -020019
John Kacur8b40f522009-09-24 18:02:18 +020020#endif /* __PERF_DEBUG_H */