From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIxMX-0003fs-P6 for qemu-devel@nongnu.org; Fri, 22 Mar 2013 04:30:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIxMP-0006JS-7E for qemu-devel@nongnu.org; Fri, 22 Mar 2013 04:30:09 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:38782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIxMO-0006Iu-Nd for qemu-devel@nongnu.org; Fri, 22 Mar 2013 04:30:01 -0400 Received: from m1.gw.fujitsu.co.jp (unknown [10.0.50.71]) by fgwmail5.fujitsu.co.jp (Postfix) with ESMTP id 6E7FB3EE0C1 for ; Fri, 22 Mar 2013 17:29:59 +0900 (JST) Received: from smail (m1 [127.0.0.1]) by outgoing.m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 53E8545DE56 for ; Fri, 22 Mar 2013 17:29:59 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (s1.gw.fujitsu.co.jp [10.0.50.91]) by m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 3944B45DE55 for ; Fri, 22 Mar 2013 17:29:59 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id 2D33AE08002 for ; Fri, 22 Mar 2013 17:29:59 +0900 (JST) Received: from g01jpexchyt28.g01.fujitsu.local (g01jpexchyt28.g01.fujitsu.local [10.128.193.111]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id D65831DB8042 for ; Fri, 22 Mar 2013 17:29:58 +0900 (JST) Message-ID: <514C167B.8050605@jp.fujitsu.com> Date: Fri, 22 Mar 2013 17:29:47 +0900 From: Kazuya Saito MIME-Version: 1.0 References: <514C1560.1020406@jp.fujitsu.com> In-Reply-To: <514C1560.1020406@jp.fujitsu.com> Content-Type: text/plain; charset="ISO-2022-JP" Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH 5/5] qdev-monitor: add device_add tracepoint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- 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