[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 5/5] qdev-monitor: add device_add tracepoint
From: |
Kazuya Saito |
Subject: |
[Qemu-devel] [PATCH 5/5] qdev-monitor: add device_add tracepoint |
Date: |
Fri, 22 Mar 2013 17:29:47 +0900 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 |
This patch adds tracepoints at device-add command. It enables us to
clarify whether the trouble is caused by hot-plug through commands of
virsh (libvirt).
Signed-off-by: Kazuya Saito <address@hidden>
---
qdev-monitor.c | 2 ++
trace-events | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/qdev-monitor.c b/qdev-monitor.c
index 9a78ccf..80881f5 100644
--- a/qdev-monitor.c
+++ b/qdev-monitor.c
@@ -23,6 +23,7 @@
#include "qmp-commands.h"
#include "sysemu/arch_init.h"
#include "qemu/config-file.h"
+#include "trace.h"
/*
* Aliases were a bad idea from the start. Let's keep them
@@ -473,6 +474,7 @@ DeviceState *qdev_device_add(QemuOpts *opts)
/* create device, set properties */
qdev = DEVICE(object_new(driver));
qdev_set_parent_bus(qdev, bus);
+ trace_device_add(qdev, bus);
id = qemu_opts_id(opts);
if (id) {
diff --git a/trace-events b/trace-events
index 235b978..f23b820 100644
--- a/trace-events
+++ b/trace-events
@@ -1106,3 +1106,6 @@ kvm_run_exit(uint32_t reason) "reason %d"
# qdev.c
qdev_create(void *dev, void *bus) "dev %p, bus %p"
qdev_free(void *dev, void *bus) "dev %p, bus %p"
+
+# qdev-monitor.c
+device_add(void *dev, void *bus) "dev %p, bus %p"
--
1.7.1
- [Qemu-devel] [PATCH 1/5] vl: add runstate_set tracepoint, (continued)
- [Qemu-devel] [PATCH 1/5] vl: add runstate_set tracepoint, Kazuya Saito, 2013/03/22
- [Qemu-devel] [PATCH 2/5] kvm-all: add kvm_ioctl, kvm_vm_ioctl, kvm_vcpu_ioctl tracepoints, Kazuya Saito, 2013/03/22
- [Qemu-devel] [PATCH 3/5] kvm-all: add kvm_run_exit tracepoint, Kazuya Saito, 2013/03/22
- [Qemu-devel] [PATCH 4/5] qdev: add qdev_{create,free} tracepoints, Kazuya Saito, 2013/03/22
- [Qemu-devel] [PATCH 5/5] qdev-monitor: add device_add tracepoint,
Kazuya Saito <=
- Re: [Qemu-devel] [PATCH 0/5] Add some tracepoints for clarification of the cause of troubles, Paolo Bonzini, 2013/03/22
- Re: [Qemu-devel] [PATCH 0/5] Add some tracepoints for clarification of the cause of troubles, Kazuya Saito, 2013/03/26
- Re: [Qemu-devel] [PATCH 0/5] Add some tracepoints for clarification of the cause of troubles, Paolo Bonzini, 2013/03/26
- Re: [Qemu-devel] [PATCH 0/5] Add some tracepoints for clarification of the cause of troubles, Kazuya Saito, 2013/03/27
- Re: [Qemu-devel] [PATCH 0/5] Add some tracepoints for clarification of the cause of troubles, Paolo Bonzini, 2013/03/27
- Re: [Qemu-devel] [PATCH 0/5] Add some tracepoints for clarification of the cause of troubles, Kazuya Saito, 2013/03/28
- Re: [Qemu-devel] [PATCH 0/5] Add some tracepoints for clarification of the cause of troubles, Paolo Bonzini, 2013/03/28
- Re: [Qemu-devel] [PATCH 0/5] Add some tracepoints for clarification of the cause of troubles, Anthony Liguori, 2013/03/28
- Re: [Qemu-devel] [PATCH 0/5] Add some tracepoints for clarification of the cause of troubles, Stefan Hajnoczi, 2013/03/28