]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - tools/perf/util/debug.h
perf tools: Rename 'struct sample_data' to 'struct perf_sample'
[mirror_ubuntu-zesty-kernel.git] / tools / perf / util / debug.h
CommitLineData
cd84c2ac 1/* For debugging general purposes */
8b40f521
JK
2#ifndef __PERF_DEBUG_H
3#define __PERF_DEBUG_H
cd84c2ac 4
c0555642 5#include <stdbool.h>
8f41146a
ACM
6#include "event.h"
7
cd84c2ac 8extern int verbose;
b44308f5 9extern bool quiet, dump_trace;
cd84c2ac 10
2cec19d9 11int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
8f28827a 12void trace_event(event_t *event);
567e5479 13
5f4d3f88
ACM
14struct ui_progress;
15
567e5479 16#ifdef NO_NEWT_SUPPORT
1e6dd077 17static inline int ui_helpline__show_help(const char *format __used, va_list ap __used)
567e5479
ACM
18{
19 return 0;
20}
5f4d3f88
ACM
21
22static inline struct ui_progress *ui_progress__new(const char *title __used,
23 u64 total __used)
24{
25 return (struct ui_progress *)1;
26}
27
28static inline void ui_progress__update(struct ui_progress *self __used,
29 u64 curr __used) {}
30
31static inline void ui_progress__delete(struct ui_progress *self __used) {}
567e5479 32#else
1e6dd077
ACM
33extern char ui_helpline__last_msg[];
34int ui_helpline__show_help(const char *format, va_list ap);
34cea7f7 35#include "ui/progress.h"
567e5479 36#endif
8b40f521 37
068ffaa8
ACM
38void ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2)));
39
8b40f521 40#endif /* __PERF_DEBUG_H */