aboutsummaryrefslogtreecommitdiff
path: root/contrib/plugins/hwprofile.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/plugins/hwprofile.c')
-rw-r--r--contrib/plugins/hwprofile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/plugins/hwprofile.c b/contrib/plugins/hwprofile.c
index 6dac1d5..faf216a 100644
--- a/contrib/plugins/hwprofile.c
+++ b/contrib/plugins/hwprofile.c
@@ -201,7 +201,7 @@ static void vcpu_haddr(unsigned int cpu_index, qemu_plugin_meminfo_t meminfo,
return;
} else {
const char *name = qemu_plugin_hwaddr_device_name(hwaddr);
- uint64_t off = qemu_plugin_hwaddr_device_offset(hwaddr);
+ uint64_t off = qemu_plugin_hwaddr_phys_addr(hwaddr);
bool is_write = qemu_plugin_mem_is_store(meminfo);
DeviceCounts *counts;