From f9de698acfe896141093fac1dc9c12b65080d655 Mon Sep 17 00:00:00 2001 From: schodet Date: Wed, 4 Nov 2009 07:57:20 +0000 Subject: 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 --- cesar/lib/trace.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cesar/lib/trace.h') 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; }; /** -- cgit v1.2.3