Go to the documentation of this file. 1 #ifndef ___OFS_TRACE_H___
2 #define ___OFS_TRACE_H___
20 #define GTRACE(act) OfsTrace.What & TRACE_ ## act
23 {OfsTrace.Beg(epname,tident); cerr <<x; OfsTrace.End();}
25 #define FTRACE(act, x) \
27 TRACES(x <<" fn=" << (oh->Name()))
29 #define XTRACE(act, target, x) \
30 if (GTRACE(act)) TRACES(x <<" fn=" <<target)
32 #define ZTRACE(act, x) if (GTRACE(act)) TRACES(x)
34 #define DEBUG(x) if (GTRACE(debug)) TRACES(x)
36 #define EPNAME(x) static const char *epname = x;
43 #define XTRACE(x, y, a1)
44 #define YTRACE(x, y, a1, a2, a3, a4, a5)
53 #define TRACE_MOST 0x3fcd
54 #define TRACE_ALL 0xffff
55 #define TRACE_opendir 0x0001
56 #define TRACE_readdir 0x0002
57 #define TRACE_closedir TRACE_opendir
58 #define TRACE_delay 0x0400
59 #define TRACE_dir TRACE_opendir | TRACE_readdir | TRACE_closedir
60 #define TRACE_open 0x0004
61 #define TRACE_qscan 0x0008
62 #define TRACE_close TRACE_open
63 #define TRACE_read 0x0010
64 #define TRACE_redirect 0x0800
65 #define TRACE_write 0x0020
66 #define TRACE_IO TRACE_read | TRACE_write | TRACE_aio
67 #define TRACE_exists 0x0040
68 #define TRACE_chmod TRACE_exists
69 #define TRACE_getmode TRACE_exists
70 #define TRACE_getsize TRACE_exists
71 #define TRACE_remove 0x0080
72 #define TRACE_rename TRACE_remove
73 #define TRACE_sync 0x0100
74 #define TRACE_truncate 0x0200
75 #define TRACE_fsctl 0x0400
76 #define TRACE_getstats 0x0800
77 #define TRACE_mkdir 0x1000
78 #define TRACE_stat 0x2000
79 #define TRACE_aio 0x4000
80 #define TRACE_debug 0x8000