The Android Open Source Project | 10e23ee | 2009-03-03 19:30:30 -0800 | [diff] [blame^] | 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 | /// all others not fitting in above category, not voluminous. |
| 26 | extern 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 */ |