00001 /** 00002 * @file daemon/opd_printf.h 00003 * Output routines 00004 * 00005 * @remark Copyright 2002 OProfile authors 00006 * @remark Read the file COPYING 00007 * 00008 * @author John Levon 00009 * @author Philippe Elie 00010 */ 00011 00012 #ifndef OPD_PRINTF_H 00013 #define OPD_PRINTF_H 00014 00015 /// log all sample file name manipulation; sample files open, close, 00016 /// sfile LRU etc. voluminous. FIXME need to be splitted (filename manip, files 00017 /// handling) ? 00018 extern int vsfile; 00019 /// log samples, voluminous. 00020 extern int vsamples; 00021 /// log arc, very voluminous. 00022 extern int varcs; 00023 /// kernel module handling 00024 extern int vmodule; 00025 /// extended feature 00026 extern int vext; 00027 /// all others not fitting in above category, not voluminous. 00028 extern int vmisc; 00029 00030 #define verbprintf(x, args...) \ 00031 do { \ 00032 /* look like fragile but we must catch verbrintf("%s", "") */ \ 00033 if (x == 1) \ 00034 printf(args); \ 00035 } while (0) 00036 00037 #endif /* OPD_PRINTF_H */
1.6.1