• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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) ?
18 extern int vsfile;
19 /// log samples, voluminous.
20 extern int vsamples;
21 /// log arc, very voluminous.
22 extern int varcs;
23 /// kernel module handling
24 extern int vmodule;
25 /// extended feature
26 extern int vext;
27 /// all others not fitting in above category, not voluminous.
28 extern int vmisc;
29 
30 #define verbprintf(x, args...) \
31 	do { \
32 		/* look like fragile but we must catch verbrintf("%s", "") */ \
33 		if (x == 1) \
34 			printf(args); \
35 	} while (0)
36 
37 #endif /* OPD_PRINTF_H */
38