From: Prerna Saxena <prerna@linux.vnet.ibm.com>
To: qemu-devel <qemu-devel@nongnu.org>
Cc: Mahesh <mahesh@linux.vnet.ibm.com>,
Ananth Narayan <ananth@linux.vnet.ibm.com>,
Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Subject: [Qemu-devel] [Tracing][PATCH 2/2] More Trace events
Date: Wed, 11 Aug 2010 17:16:03 +0530 [thread overview]
Message-ID: <20100811171603.60e79c96@zephyr> (raw)
In-Reply-To: <20100811101427.GA2262@stefan-thinkpad.transitives.com>
[PATCH 2/2] Trace event for tracking entry point of balloon request handler.
Signed-off-by: Prerna Saxena <prerna@linux.vnet.ibm.com>
---
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 7dbd08f..d0d9f50 100644
--- a/trace-events
+++ b/trace-events
@@ -63,3 +63,7 @@ paio_submit(void *acb, void *opaque, unsigned long sector_num, unsigned long nb_
# ioport.c
cpu_in(unsigned int addr, unsigned int val) "addr %u value %u"
cpu_out(unsigned int addr, unsigned int val) "addr %u value %u"
+
+# balloon.c
+# # Since requests are raised via monitor, not many tracepoints are needed.
+balloon_event(void *opaque, unsigned long addr) "opaque %p addr %lu"
--
1.6.2.5
--
Prerna Saxena
Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India
prev parent reply other threads:[~2010-08-11 11:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 8:25 [Qemu-devel] [Tracing] More Trace events Prerna Saxena
2010-08-11 10:14 ` [Qemu-devel] " Stefan Hajnoczi
2010-08-11 11:43 ` [Qemu-devel] [Tracing][PATCH 0/2] " Prerna Saxena
2010-08-11 14:27 ` Stefan Hajnoczi
2010-08-11 11:45 ` [Qemu-devel] [Tracing][PATCH 1/2] " Prerna Saxena
2010-08-11 11:46 ` Prerna Saxena [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100811171603.60e79c96@zephyr \
--to=prerna@linux.vnet.ibm.com \
--cc=ananth@linux.vnet.ibm.com \
--cc=mahesh@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).