qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: qemu-devel@nongnu.org
Cc: Alexey Kardashevskiy <aik@ozlabs.ru>,
	Amit Shah <amit.shah@redhat.com>,
	Juan Quintela <quintela@redhat.com>
Subject: [Qemu-devel] [PATCH v4 2/4] vl: add system_wakeup_request tracepoint
Date: Tue, 11 Mar 2014 10:42:27 +1100	[thread overview]
Message-ID: <1394494949-9306-3-git-send-email-aik@ozlabs.ru> (raw)
In-Reply-To: <1394494949-9306-1-git-send-email-aik@ozlabs.ru>

It might be useful for tracing migration.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
---
 trace-events | 1 +
 vl.c         | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/trace-events b/trace-events
index 580281d..91a2edc 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 1d27b34..179f14e 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.4.rc4

  parent reply	other threads:[~2014-03-10 23:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-10 23:42 [Qemu-devel] [PATCH v4 0/4] migration: add more traces Alexey Kardashevskiy
2014-03-10 23:42 ` [Qemu-devel] [PATCH v4 1/4] util: add qemu_ether_ntoa Alexey Kardashevskiy
2014-03-11 19:36   ` Juan Quintela
2014-03-27  3:43     ` Alexey Kardashevskiy
2014-03-27 10:50       ` Amit Shah
2014-03-27 11:17         ` Alexey Kardashevskiy
2014-03-10 23:42 ` Alexey Kardashevskiy [this message]
2014-03-11 19:38   ` [Qemu-devel] [PATCH v4 2/4] vl: add system_wakeup_request tracepoint Juan Quintela
2014-03-10 23:42 ` [Qemu-devel] [PATCH v4 3/4] migration: extend section_start/end traces Alexey Kardashevskiy
2014-03-11 19:38   ` Juan Quintela
2014-03-10 23:42 ` [Qemu-devel] [PATCH v4 4/4] migration: add more traces Alexey Kardashevskiy
2014-03-11 19:38   ` Juan Quintela

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=1394494949-9306-3-git-send-email-aik@ozlabs.ru \
    --to=aik@ozlabs.ru \
    --cc=amit.shah@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=quintela@redhat.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).