From: Juan Quintela <quintela@redhat.com>
To: qemu-devel@nongnu.org
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>, Amit Shah <amit.shah@redhat.com>
Subject: [Qemu-devel] [PATCH 3/5] vl: add system_wakeup_request tracepoint
Date: Sat, 8 Mar 2014 02:23:35 +0100 [thread overview]
Message-ID: <1394241817-23234-4-git-send-email-quintela@redhat.com> (raw)
In-Reply-To: <1394241817-23234-1-git-send-email-quintela@redhat.com>
From: Alexey Kardashevskiy <aik@ozlabs.ru>
It might be useful for tracing migration.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
trace-events | 1 +
vl.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/trace-events b/trace-events
index aec4202..466c27e 100644
--- a/trace-events
+++ b/trace-events
@@ -486,6 +486,7 @@ runstate_set(int new_state) "new state %d"
g_malloc(size_t size, void *ptr) "size %zu ptr %p"
g_realloc(void *ptr, size_t size, void *newptr) "ptr %p size %zu newptr %p"
g_free(void *ptr) "ptr %p"
+system_wakeup_request(int reason) "reason=%d"
# block/qcow2.c
qcow2_writev_start_req(void *co, int64_t sector, int nb_sectors) "co %p sector %" PRIx64 " nb_sectors %d"
diff --git a/vl.c b/vl.c
index 41581c1..50693e6 100644
--- a/vl.c
+++ b/vl.c
@@ -1837,6 +1837,8 @@ void qemu_register_suspend_notifier(Notifier *notifier)
void qemu_system_wakeup_request(WakeupReason reason)
{
+ trace_system_wakeup_request(reason);
+
if (!runstate_check(RUN_STATE_SUSPENDED)) {
return;
}
--
1.8.5.3
next prev parent reply other threads:[~2014-03-08 1:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-08 1:23 [Qemu-devel] [PULL 0/5] migration queue Juan Quintela
2014-03-08 1:23 ` [Qemu-devel] [PATCH 1/5] XBZRLE: Fix qemu crash when resize the xbzrle cache Juan Quintela
2014-03-08 1:23 ` [Qemu-devel] [PATCH 2/5] qemu_file: Fix mismerge of "use fwrite() correctly" Juan Quintela
2014-03-08 1:23 ` Juan Quintela [this message]
2014-03-08 1:23 ` [Qemu-devel] [PATCH 4/5] migration: extend section_start/end traces Juan Quintela
2014-03-08 1:23 ` [Qemu-devel] [PATCH 5/5] migration: add more traces Juan Quintela
2014-03-08 13:23 ` [Qemu-devel] [PULL 0/5] migration queue Peter Maydell
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=1394241817-23234-4-git-send-email-quintela@redhat.com \
--to=quintela@redhat.com \
--cc=aik@ozlabs.ru \
--cc=amit.shah@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).