Linux Audio

Check our new training course

Loading...
v3.1
 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
 8extern int verbose;
 9extern bool quiet, dump_trace;
10
11int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
12void trace_event(union perf_event *event);
13
14struct ui_progress;
15
16#ifdef NO_NEWT_SUPPORT
17static inline int ui_helpline__show_help(const char *format __used, va_list ap __used)
18{
19	return 0;
20}
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) {}
32#else
33extern char ui_helpline__last_msg[];
34int ui_helpline__show_help(const char *format, va_list ap);
35#include "ui/progress.h"
 
36#endif
37
38void ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2)));
39void ui__warning_paranoid(void);
40
41#endif	/* __PERF_DEBUG_H */
v3.5.6
 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
 8extern int verbose;
 9extern bool quiet, dump_trace;
10
11int dump_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2)));
12void trace_event(union perf_event *event);
13
14struct ui_progress;
15
16#ifdef NO_NEWT_SUPPORT
17static inline int ui_helpline__show_help(const char *format __used, va_list ap __used)
18{
19	return 0;
20}
21
22static inline void ui_progress__update(u64 curr __used, u64 total __used,
23				       const char *title __used) {}
 
 
 
24
25#define ui__error(format, arg...) ui__warning(format, ##arg)
 
 
 
26#else
27extern char ui_helpline__last_msg[];
28int ui_helpline__show_help(const char *format, va_list ap);
29#include "../ui/progress.h"
30int ui__error(const char *format, ...) __attribute__((format(printf, 1, 2)));
31#endif
32
33int ui__warning(const char *format, ...) __attribute__((format(printf, 1, 2)));
34int ui__error_paranoid(void);
35
36#endif	/* __PERF_DEBUG_H */