Loading...
Searching...
No Matches
Go to the documentation of this file. 1#ifndef ___OFS_TRACE_H___
2#define ___OFS_TRACE_H___
39#define GTRACE(act) OfsTrace.What & TRACE_ ## act
41#define TRACES(x) {SYSTRACE(OfsTrace.,tident,epname,0,x)}
43#define FTRACE(act, x) \
45 TRACES(x <<" fn=" << (oh->Name()))
47#define XTRACE(act, target, x) \
48 if (GTRACE(act)) TRACES(x <<" fn=" <<target)
50#define ZTRACE(act, x) if (GTRACE(act)) TRACES(x)
52#define DEBUG(x) if (GTRACE(debug)) TRACES(x)
54#define EPNAME(x) static const char *epname = x;
61#define XTRACE(x, y, a1)
62#define YTRACE(x, y, a1, a2, a3, a4, a5)
71#define TRACE_MOST 0x3fcd
72#define TRACE_ALL 0xffff
73#define TRACE_opendir 0x0001
74#define TRACE_readdir 0x0002
75#define TRACE_closedir TRACE_opendir
76#define TRACE_delay 0x0400
77#define TRACE_dir TRACE_opendir | TRACE_readdir | TRACE_closedir
78#define TRACE_open 0x0004
79#define TRACE_qscan 0x0008
80#define TRACE_close TRACE_open
81#define TRACE_read 0x0010
82#define TRACE_redirect 0x0800
83#define TRACE_write 0x0020
84#define TRACE_IO TRACE_read | TRACE_write | TRACE_aio
85#define TRACE_exists 0x0040
86#define TRACE_chmod TRACE_exists
87#define TRACE_getmode TRACE_exists
88#define TRACE_getsize TRACE_exists
89#define TRACE_remove 0x0080
90#define TRACE_rename TRACE_remove
91#define TRACE_sync 0x0100
92#define TRACE_truncate 0x0200
93#define TRACE_fsctl 0x0400
94#define TRACE_getstats 0x0800
95#define TRACE_mkdir 0x1000
96#define TRACE_stat 0x2000
97#define TRACE_aio 0x4000
98#define TRACE_debug 0x008000
99#define TRACE_chkpnt 0x010000