[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 14/14] trace: Trace entry point of balloon request h
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 14/14] trace: Trace entry point of balloon request handler |
Date: |
Mon, 30 Aug 2010 14:27:16 +0100 |
From: Prerna Saxena <address@hidden>
Signed-off-by: Prerna Saxena <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
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
- [Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events, (continued)
- [Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events, Blue Swirl, 2010/08/30
- [Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events, malc, 2010/08/30
- [Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events, Blue Swirl, 2010/08/30
- [Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events, Blue Swirl, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events, Stefan Hajnoczi, 2010/08/31
- Re: [Qemu-devel] Re: [PATCH 01/14] trace: Add trace-events file for declaring trace events, Blue Swirl, 2010/08/31
[Qemu-devel] [PATCH 05/14] trace: Specify trace file name, Stefan Hajnoczi, 2010/08/30
[Qemu-devel] [PATCH 09/14] trace: Add user documentation, Stefan Hajnoczi, 2010/08/30
[Qemu-devel] [PATCH 04/14] trace: Support disabled events in trace-events, Stefan Hajnoczi, 2010/08/30
[Qemu-devel] [PATCH 13/14] trace: Trace port IO, Stefan Hajnoczi, 2010/08/30
[Qemu-devel] [PATCH 14/14] trace: Trace entry point of balloon request handler,
Stefan Hajnoczi <=