From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=47929 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsdPR-00055K-Cy for qemu-devel@nongnu.org; Mon, 06 Sep 2010 11:15:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsdPN-0003yf-T9 for qemu-devel@nongnu.org; Mon, 06 Sep 2010 11:15:01 -0400 Received: from mtagate5.de.ibm.com ([195.212.17.165]:55769) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsdPN-0003xu-GY for qemu-devel@nongnu.org; Mon, 06 Sep 2010 11:14:57 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate5.de.ibm.com (8.13.1/8.13.1) with ESMTP id o86FEuTC005367 for ; Mon, 6 Sep 2010 15:14:56 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o86FEuxf3887144 for ; Mon, 6 Sep 2010 17:14:56 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o86FEuf0018253 for ; Mon, 6 Sep 2010 17:14:56 +0200 From: Stefan Hajnoczi Date: Mon, 6 Sep 2010 16:14:11 +0100 Message-Id: <1283786051-29530-15-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1283786051-29530-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1283786051-29530-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 14/14] trace: Trace entry point of balloon request handler List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Blue Swirl , Anthony Liguori , "Michael S. Tsirkin" , Stefan Hajnoczi , Prerna Saxena From: Prerna Saxena Signed-off-by: Prerna Saxena Signed-off-by: Stefan Hajnoczi --- balloon.c | 2 ++ trace-events | 4 ++++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/balloon.c b/balloon.c index 8e0b7f1..0021fef 100644 --- a/balloon.c +++ b/balloon.c @@ -29,6 +29,7 @@ #include "cpu-common.h" #include "kvm.h" #include "balloon.h" +#include "trace.h" static QEMUBalloonEvent *qemu_balloon_event; @@ -43,6 +44,7 @@ void qemu_add_balloon_handler(QEMUBalloonEvent *func, void *opaque) int qemu_balloon(ram_addr_t target, MonitorCompletion cb, void *opaque) { if (qemu_balloon_event) { + trace_balloon_event(qemu_balloon_event_opaque, target); qemu_balloon_event(qemu_balloon_event_opaque, target, cb, opaque); return 1; } else { diff --git a/trace-events b/trace-events index b2c7f10..c5fa0aa 100644 --- a/trace-events +++ b/trace-events @@ -63,3 +63,7 @@ disable paio_submit(void *acb, void *opaque, unsigned long sector_num, unsigned # ioport.c disable cpu_in(unsigned int addr, unsigned int val) "addr %#x value %u" disable cpu_out(unsigned int addr, unsigned int val) "addr %#x value %u" + +# balloon.c +# Since requests are raised via monitor, not many tracepoints are needed. +disable balloon_event(void *opaque, unsigned long addr) "opaque %p addr %lu" -- 1.7.1