blob: 09df07fafe09b34e015a0e890f95deedc0cb5af9 [file] [log] [blame]
The Android Open Source Project10e23ee2009-03-03 19:30:30 -08001/**
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;
Ben Cheng5a4eb4e2009-09-14 16:00:41 -070025/// extended feature
26extern int vext;
The Android Open Source Project10e23ee2009-03-03 19:30:30 -080027/// all others not fitting in above category, not voluminous.
28extern 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 */