summaryrefslogtreecommitdiffstats
path: root/trace-events
diff options
context:
space:
mode:
authorPaolo Bonzini2013-05-10 14:16:39 +0200
committerAnthony Liguori2013-05-13 16:52:06 +0200
commitfa131d94a5c00c6bbea39358d4bca7bf98f6c1f5 (patch)
treeb1d51ed6b9db06595c4313bca6fe572b68178049 /trace-events
parentqom: pass file/line/function to asserting casts (diff)
downloadqemu-fa131d94a5c00c6bbea39358d4bca7bf98f6c1f5.tar.gz
qemu-fa131d94a5c00c6bbea39358d4bca7bf98f6c1f5.tar.xz
qemu-fa131d94a5c00c6bbea39358d4bca7bf98f6c1f5.zip
qom: trace asserting casts
This provides a way to detect the cast that leads to a (reproducible) crash even when QOM cast debugging is disabled. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 1368188203-3407-6-git-send-email-pbonzini@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'trace-events')
-rw-r--r--trace-events3
1 files changed, 3 insertions, 0 deletions
diff --git a/trace-events b/trace-events
index 17d75abfe8..4413beb99e 100644
--- a/trace-events
+++ b/trace-events
@@ -1160,3 +1160,6 @@ kvm_vm_ioctl(int type, void *arg) "type %d, arg %p"
kvm_vcpu_ioctl(int cpu_index, int type, void *arg) "cpu_index %d, type %d, arg %p"
kvm_run_exit(int cpu_index, uint32_t reason) "cpu_index %d, reason %d"
+# qom/object.c
+object_dynamic_cast_assert(const char *type, const char *target, const char *file, int line, const char *func) "%s->%s (%s:%d:%s)"
+object_class_dynamic_cast_assert(const char *type, const char *target, const char *file, int line, const char *func) "%s->%s (%s:%d:%s)"