opd_printf.h revision cc2ee177dbb3befca43e36cfc56778b006c3d050
1/**
2 * @file daemon/opd_printf.h
3 * Output routines
4 *
5 * @remark Copyright 2002 OProfile authors
6 * @remark Read the file COPYING
7 *
8 * @author John Levon
9 * @author Philippe Elie
10 */
11
12#ifndef OPD_PRINTF_H
13#define OPD_PRINTF_H
14
15/// log all sample file name manipulation; sample files open, close,
16/// sfile LRU etc. voluminous. FIXME need to be splitted (filename manip, files
17/// handling) ?
18extern int vsfile;
19/// log samples, voluminous.
20extern int vsamples;
21/// log arc, very voluminous.
22extern int varcs;
23/// kernel module handling
24extern int vmodule;
25/// all others not fitting in above category, not voluminous.
26extern int vmisc;
27
28#define verbprintf(x, args...) \
29	do { \
30		/* look like fragile but we must catch verbrintf("%s", "") */ \
31		if (x == 1) \
32			printf(args); \
33	} while (0)
34
35#endif /* OPD_PRINTF_H */
36