From: George Dunlap <george.dunlap@eu.citrix.com>
To: xen-devel@lists.xensource.com
Cc: george.dunlap@eu.citrix.com
Subject: [PATCH 06 of 12] xenalyze: Relocate pio and mmio enumaration structs to their own sub-struct
Date: Mon, 28 Nov 2011 16:18:03 +0000 [thread overview]
Message-ID: <910605f7ade3e4100dbf.1322497083@elijah> (raw)
In-Reply-To: <patchbomb.1322497077@elijah>
In preparation for the next patch, which does some MMIO reorganizing.
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
diff -r 463ac7003722 -r 910605f7ade3 xenalyze.c
--- a/xenalyze.c Mon Nov 28 16:16:23 2011 +0000
+++ b/xenalyze.c Mon Nov 28 16:16:23 2011 +0000
@@ -1361,7 +1361,9 @@ struct hvm_data {
/* IPI Latency */
struct event_cycle_summary ipi_latency;
int ipi_count[256];
- struct io_address *mmio, *pio;
+ struct {
+ struct io_address *mmio, *pio;
+ } io;
} summary;
/* In-flight accumulation information */
@@ -3674,7 +3676,7 @@ void enumerate_mmio(struct hvm_data *h)
struct pf_xen_extra *e = &h->inflight.pf_xen;
if ( e->mmio_data_valid )
- update_io_address(&h->summary.mmio, e->gpa, e->mmio_is_write, h->arc_cycles, e->va);
+ update_io_address(&h->summary.io.mmio, e->gpa, e->mmio_is_write, h->arc_cycles, e->va);
}
void hvm_mmio_assist_postprocess(struct hvm_data *h)
@@ -3874,7 +3876,7 @@ void hvm_io_write_postprocess(struct hvm
h->inflight.io.val);
}
if(opt.with_pio_enumeration)
- update_io_address(&h->summary.pio, h->inflight.io.port, 1, h->arc_cycles, 0);
+ update_io_address(&h->summary.io.pio, h->inflight.io.port, 1, h->arc_cycles, 0);
}
void hvm_io_read_postprocess(struct hvm_data *h)
@@ -3886,7 +3888,7 @@ void hvm_io_read_postprocess(struct hvm_
h->inflight.io.val);
}
if(opt.with_pio_enumeration)
- update_io_address(&h->summary.pio, h->inflight.io.port, 0, h->arc_cycles, 0);
+ update_io_address(&h->summary.io.pio, h->inflight.io.port, 0, h->arc_cycles, 0);
if(opt.scatterplot_io && h->inflight.io.port == opt.scatterplot_io_port)
scatterplot_vs_time(h->exit_tsc, P.now - h->exit_tsc);
}
@@ -5492,8 +5494,8 @@ void hvm_summary(struct hvm_data *h) {
if(h->summary.ipi_count[i])
printf(" [%3d] %10d\n",
i, h->summary.ipi_count[i]);
- hvm_io_address_summary(h->summary.pio, "IO address summary:");
- hvm_io_address_summary(h->summary.mmio, "MMIO address summary:");
+ hvm_io_address_summary(h->summary.io.pio, "IO address summary:");
+ hvm_io_address_summary(h->summary.io.mmio, "MMIO address summary:");
}
/* ---- Shadow records ---- */
next prev parent reply other threads:[~2011-11-28 16:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 16:17 [PATCH 00 of 12] xenalyze: Lots of updates George Dunlap
2011-11-28 16:17 ` [PATCH 01 of 12] xenalyze: Allow several summary handlers to register on a single vmexit George Dunlap
2011-11-28 16:17 ` [PATCH 02 of 12] xenalyze: Reorganize cr trace handling George Dunlap
2011-11-28 16:18 ` [PATCH 03 of 12] xenalyze: Function-ize setting of h->post_process George Dunlap
2011-11-28 16:18 ` [PATCH 04 of 12] xenalyze: Introduce generic summary functionality George Dunlap
2011-11-28 16:18 ` [PATCH 05 of 12] xenalyze: Handle new hvm_event traces George Dunlap
2011-11-28 16:18 ` George Dunlap [this message]
2011-11-28 16:18 ` [PATCH 07 of 12] xenalyze: Handle MMIO records from different vmexits George Dunlap
2011-11-28 16:18 ` [PATCH 08 of 12] xenalyze: Add option to skip vga range in MMIO enumeration George Dunlap
2011-11-28 16:18 ` [PATCH 09 of 12] xenalyze: Sort cr3 enumerated values by start time George Dunlap
2011-11-28 16:18 ` [PATCH 10 of 12] xenalyze: Enable more cr3 output George Dunlap
2011-11-28 16:18 ` [PATCH 11 of 12] xenalyze: Optimize pcpu_string George Dunlap
2011-11-28 16:18 ` [PATCH 12 of 12] xenalyze: Make max_active_pcpu calculation smarter George Dunlap
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=910605f7ade3e4100dbf.1322497083@elijah \
--to=george.dunlap@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.