direct-io.hg

view xen/include/public/trace.h @ 3280:dda5ab69e74a

bitkeeper revision 1.1159.1.477 (41bf20d2wgoxIqhcE0nzBC8W-yFPhg)

sync w/ head.
author cl349@arcadians.cl.cam.ac.uk
date Tue Dec 14 17:20:18 2004 +0000 (2004-12-14)
parents 3f929065a1d1 577e6187b311
children 0a4b76b6b5a0
line source
1 /******************************************************************************
2 * trace.h
3 *
4 * Mark Williamson, (C) 2004 Intel Research Cambridge
5 */
7 #ifndef __XEN_PUBLIC_TRACE_H__
8 #define __XEN_PUBLIC_TRACE_H__
10 /* This structure represents a single trace buffer record. */
11 struct t_rec {
12 u64 cycles; /* 64 bit cycle counter timestamp */
13 u32 event; /* 32 bit event ID */
14 u32 d1, d2, d3, d4, d5; /* event data items */
15 };
17 /*
18 * This structure contains the metadata for a single trace buffer. The head
19 * field, indexes into an array of struct t_rec's.
20 */
21 struct t_buf {
22 unsigned long data; /* pointer to data area. machine address
23 * for convenience in user space code */
25 unsigned long size; /* size of the data area, in t_recs */
26 unsigned long head; /* array index of the most recent record */
28 /* Xen-private elements follow... */
29 struct t_rec *head_ptr; /* pointer to the head record */
30 struct t_rec *vdata; /* virtual address pointer to data */
31 };
33 #endif /* __XEN_PUBLIC_TRACE_H__ */