aboutsummaryrefslogtreecommitdiffstats
path: root/trace.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2018-09-26 19:09:25 -0700
committerH. Peter Anvin <hpa@zytor.com>2018-09-26 19:09:25 -0700
commit61f836299b17612e4bfa05c23b72b5b587ea472f (patch)
treeb5006d3471c7f542edb9a8a1b3e9cf6fbb44f75b /trace.h
parent1bf7d072f128b0c23a5cbbdd4c15bebaea0ae53b (diff)
downloadabc80sim-61f836299b17612e4bfa05c23b72b5b587ea472f.tar.gz
abc80sim-61f836299b17612e4bfa05c23b72b5b587ea472f.tar.xz
abc80sim-61f836299b17612e4bfa05c23b72b5b587ea472f.zip
trace, fileop: fix fileop bug, move tracing to trace.h, fileop trace
Diffstat (limited to 'trace.h')
-rw-r--r--trace.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/trace.h b/trace.h
new file mode 100644
index 0000000..1d9dd11
--- /dev/null
+++ b/trace.h
@@ -0,0 +1,20 @@
+#ifndef TRACE_H
+#define TRACE_H
+
+#include "compiler.h"
+
+extern FILE *tracef;
+
+enum tracing {
+ TRACE_NONE = 0x00,
+ TRACE_CPU = 0x01,
+ TRACE_IO = 0x02,
+ TRACE_DISK = 0x04,
+ TRACE_CAS = 0x08,
+ TRACE_PR = 0x10,
+ TRACE_ALL = 0x1f
+};
+
+extern enum tracing tracing;
+
+#endif /* TRACE_H */