[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 1/3] vl: add system_wakeup_request tracepoint
From: |
Alexey Kardashevskiy |
Subject: |
[Qemu-devel] [PATCH v2 1/3] vl: add system_wakeup_request tracepoint |
Date: |
Tue, 4 Mar 2014 15:10:39 +1100 |
It might be useful for tracing migration.
Signed-off-by: Alexey Kardashevskiy <address@hidden>
---
trace-events | 1 +
vl.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/trace-events b/trace-events
index 3713063..dbbaa04 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
- [Qemu-devel] [PATCH v2 0/3] migration: add more traces, Alexey Kardashevskiy, 2014/03/03
- [Qemu-devel] [PATCH v2 1/3] vl: add system_wakeup_request tracepoint,
Alexey Kardashevskiy <=
- [Qemu-devel] [PATCH v2 2/3] migration: extend section_start/end traces, Alexey Kardashevskiy, 2014/03/03
- [Qemu-devel] [PATCH v2 3/3] migration: add more traces, Alexey Kardashevskiy, 2014/03/03
- Re: [Qemu-devel] [PATCH v2 3/3] migration: add more traces, Paolo Bonzini, 2014/03/04
- [Qemu-devel] [PATCH v3] migration: add more traces, Alexey Kardashevskiy, 2014/03/04
- Re: [Qemu-devel] [PATCH v3] migration: add more traces, Amit Shah, 2014/03/06
- Re: [Qemu-devel] [PATCH v3] migration: add more traces, Amit Shah, 2014/03/10
- Re: [Qemu-devel] [PATCH v3] migration: add more traces, Alexey Kardashevskiy, 2014/03/10
- Re: [Qemu-devel] [PATCH v3] migration: add more traces, Juan Quintela, 2014/03/10
- Re: [Qemu-devel] [PATCH v2 0/3] migration: add more traces, Paolo Bonzini, 2014/03/04