aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/xenoprof.h
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-04-07 11:00:28 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-04-07 11:00:28 +0100
commit2ec558319c08c178032bb1fe5ae7d10ff680c56f (patch)
treec5a013ebae04238d571b843872f56a1ad03153e2 /xen/include/xen/xenoprof.h
parentfa6aa0c4a4b046794a6e3fd47bc1b81e1c12783c (diff)
downloadxen-2ec558319c08c178032bb1fe5ae7d10ff680c56f.tar.gz
xen-2ec558319c08c178032bb1fe5ae7d10ff680c56f.tar.bz2
xen-2ec558319c08c178032bb1fe5ae7d10ff680c56f.zip
Clean up xenoprof code a bit. The main remaining TODO is to
clean up the xenoprof hypercall interface. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/include/xen/xenoprof.h')
-rw-r--r--xen/include/xen/xenoprof.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/xen/include/xen/xenoprof.h b/xen/include/xen/xenoprof.h
index f763eb1077..5ecb755f42 100644
--- a/xen/include/xen/xenoprof.h
+++ b/xen/include/xen/xenoprof.h
@@ -20,13 +20,12 @@
#define XENOPROF_READY 2
#define XENOPROF_PROFILING 3
-
-typedef struct xenoprof_vcpu {
+struct xenoprof_vcpu {
int event_size;
- xenoprof_buf_t *buffer;
-} xenoprof_vcpu_t;
+ struct xenoprof_buf *buffer;
+};
-typedef struct xenoprof {
+struct xenoprof {
char* rawbuf;
int npages;
int nbuf;
@@ -34,7 +33,10 @@ typedef struct xenoprof {
int domain_type;
int domain_ready;
int is_primary;
- xenoprof_vcpu_t vcpu [MAX_VIRT_CPUS];
-} xenoprof_t;
+ struct xenoprof_vcpu vcpu [MAX_VIRT_CPUS];
+};
+
+struct domain;
+void free_xenoprof_pages(struct domain *d);
#endif /* __XEN__XENOPROF_H__ */