summaryrefslogtreecommitdiffstats
path: root/trace-events
diff options
context:
space:
mode:
authorHollis Blanchard2016-02-09 01:03:05 +0100
committerStefan Hajnoczi2016-03-01 14:20:15 +0100
commit4779dc1d19f0e3e20d2d4843b988c72b9235bbe0 (patch)
tree3784536bc3470bf5b0fa14b47ad73284f13f2c75 /trace-events
parenttrace: split subpage MMIOs into their own trace events. (diff)
downloadqemu-4779dc1d19f0e3e20d2d4843b988c72b9235bbe0.tar.gz
qemu-4779dc1d19f0e3e20d2d4843b988c72b9235bbe0.tar.xz
qemu-4779dc1d19f0e3e20d2d4843b988c72b9235bbe0.zip
trace: use addresses instead of offsets in memory tracepoints
When memory_region_ops tracepoints are enabled, calculate and record the absolute address being accessed. Otherwise, we only get offsets into the memory region instead of addresses. [Fixed "offset" -> "addr" in trace event format strings. --Stefan] Signed-off-by: Hollis Blanchard <hollis_blanchard@mentor.com> Message-id: 1454976185-30095-3-git-send-email-hollis_blanchard@mentor.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'trace-events')
-rw-r--r--trace-events4
1 files changed, 2 insertions, 2 deletions
diff --git a/trace-events b/trace-events
index 021211dfff..6fba6cc474 100644
--- a/trace-events
+++ b/trace-events
@@ -1620,8 +1620,8 @@ disable exec_tb_exit(void *next_tb, unsigned int flags) "tb:%p flags=%x"
translate_block(void *tb, uintptr_t pc, uint8_t *tb_code) "tb:%p, pc:0x%"PRIxPTR", tb_code:%p"
# memory.c
-memory_region_ops_read(void *mr, uint64_t offset, uint64_t value, unsigned size) "mr %p offset %#"PRIx64" value %#"PRIx64" size %u"
-memory_region_ops_write(void *mr, uint64_t offset, uint64_t value, unsigned size) "mr %p offset %#"PRIx64" value %#"PRIx64" size %u"
+memory_region_ops_read(void *mr, uint64_t addr, uint64_t value, unsigned size) "mr %p addr %#"PRIx64" value %#"PRIx64" size %u"
+memory_region_ops_write(void *mr, uint64_t addr, uint64_t value, unsigned size) "mr %p addr %#"PRIx64" value %#"PRIx64" size %u"
memory_region_subpage_read(void *mr, uint64_t offset, uint64_t value, unsigned size) "mr %p offset %#"PRIx64" value %#"PRIx64" size %u"
memory_region_subpage_write(void *mr, uint64_t offset, uint64_t value, unsigned size) "mr %p offset %#"PRIx64" value %#"PRIx64" size %u"