trace: rename TraceRecordHeader to TraceLogHeader
authorHarsh Prateek Bora <harsh@linux.vnet.ibm.com>
Fri, 20 Jul 2012 13:22:12 +0000 (18:52 +0530)
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Tue, 14 Aug 2012 09:40:39 +0000 (10:40 +0100)
The TraceRecordHeader is really the header for the entire trace log
file.  It's not per-record header so make this obvious by renaming it.

Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
trace/simple.c

index b700ea317cfce211f628f58d31ae65eaa97268c5..5d929399ca756225b67f6ab6d3914c29379c4653 100644 (file)
@@ -70,7 +70,7 @@ typedef struct {
     uint64_t header_event_id; /* HEADER_EVENT_ID */
     uint64_t header_magic;    /* HEADER_MAGIC    */
     uint64_t header_version;  /* HEADER_VERSION  */
-} TraceRecordHeader;
+} TraceLogHeader;
 
 
 static void read_from_buffer(unsigned int idx, void *dataptr, size_t size);
@@ -295,7 +295,7 @@ void st_set_trace_file_enabled(bool enable)
     flush_trace_file(true);
 
     if (enable) {
-        static const TraceRecordHeader header = {
+        static const TraceLogHeader header = {
             .header_event_id = HEADER_EVENT_ID,
             .header_magic = HEADER_MAGIC,
             /* Older log readers will check for version at next location */