ia64/xen-unstable

changeset 8028:dca4893b0b9f

Remove unused 'nr_recs' field from trace-buffer header
structure. This also happens to ensure correct t_rec
alignment on ia64. A better layout for trace buffers
will be coming soon.

Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Nov 24 15:08:27 2005 +0100 (2005-11-24)
parents 188a4fb5ea1f
children ba50c9d1271e
files xen/common/trace.c xen/include/public/trace.h
line diff
     1.1 --- a/xen/common/trace.c	Thu Nov 24 12:06:07 2005 +0100
     1.2 +++ b/xen/common/trace.c	Thu Nov 24 15:08:27 2005 +0100
     1.3 @@ -89,7 +89,6 @@ static int alloc_trace_bufs(void)
     1.4      {
     1.5          buf = t_bufs[i] = (struct t_buf *)&rawbuf[i*opt_tbuf_size*PAGE_SIZE];
     1.6          buf->cons = buf->prod = 0;
     1.7 -        buf->nr_recs = nr_recs;
     1.8          t_recs[i] = (struct t_rec *)(buf + 1);
     1.9      }
    1.10  
     2.1 --- a/xen/include/public/trace.h	Thu Nov 24 12:06:07 2005 +0100
     2.2 +++ b/xen/include/public/trace.h	Thu Nov 24 15:08:27 2005 +0100
     2.3 @@ -74,7 +74,6 @@ struct t_rec {
     2.4  struct t_buf {
     2.5      unsigned int  cons;      /* Next item to be consumed by control tools. */
     2.6      unsigned int  prod;      /* Next item to be produced by Xen.           */
     2.7 -    unsigned int  nr_recs;   /* Number of records in this trace buffer.    */
     2.8      /* 'nr_recs' records follow immediately after the meta-data header.    */
     2.9  };
    2.10