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>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-11-24 15:08:27 +01:00
1 parent 0d79c5a9ec
commit 0b7989bf3d
2 files changed
-2

No files matched your search

-1
View File
@@ -89,7 +89,6 @@ static int alloc_trace_bufs(void)
{
buf = t_bufs[i] = (struct t_buf *)&rawbuf[i*opt_tbuf_size*PAGE_SIZE];
buf->cons = buf->prod = 0;
buf->nr_recs = nr_recs;
t_recs[i] = (struct t_rec *)(buf + 1);
}
-1
View File
@@ -74,7 +74,6 @@ struct t_rec {
struct t_buf {
unsigned int cons; /* Next item to be consumed by control tools. */
unsigned int prod; /* Next item to be produced by Xen. */
unsigned int nr_recs; /* Number of records in this trace buffer. */
/* 'nr_recs' records follow immediately after the meta-data header. */
};
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.