summaryrefslogtreecommitdiff
path: root/cesar/lib/trace.h
diff options
context:
space:
mode:
authorschodet2009-11-04 07:57:20 +0000
committerschodet2009-11-04 07:57:20 +0000
commitf9de698acfe896141093fac1dc9c12b65080d655 (patch)
tree4c74a43ef8e2f40b656bb5fb41c703be90b969ad /cesar/lib/trace.h
parent20c914bcd765b4bb5e565e04b5f16d5dd13a9fc9 (diff)
cesar/lib/trace: use tail/commit instead of data_end/chunk_end
This is a preparation for safe trace. The tail_index field points to the last reserved memory in a trace chunk. The commit_index field points to the last completed memory. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@6318 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'cesar/lib/trace.h')
-rw-r--r--cesar/lib/trace.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cesar/lib/trace.h b/cesar/lib/trace.h
index 49c6d860cb..9fb32cb756 100644
--- a/cesar/lib/trace.h
+++ b/cesar/lib/trace.h
@@ -102,10 +102,10 @@ struct trace_chunk_t
trace_chunk_t *next;
/** Data in this chunk. */
u32 *data;
- /** Number of data words in this chunk. */
- u32 *data_end;
- /** Maximum usable data words. */
- u32 *chunk_end;
+ /** Number of committed words in this chunk. */
+ uint commit_index;
+ /** Number of reserved words in this chunk. */
+ uint tail_index;
};
/**