[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v2 1/2] vl: add trace_runstate_set()
From: |
Kazuya Saito |
Subject: |
[Qemu-devel] [PATCH v2 1/2] vl: add trace_runstate_set() |
Date: |
Wed, 20 Feb 2013 15:31:02 +0900 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 |
Signed-off-by: Kazuya Saito <address@hidden>
---
trace-events | 1 +
vl.c | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/trace-events b/trace-events
index 1011f27..bf508f0 100644
--- a/trace-events
+++ b/trace-events
@@ -472,6 +472,7 @@ scsi_request_sense(int target, int lun, int tag)
"target %d lun %d tag %d"
# vl.c
vm_state_notify(int running, int reason) "running %d reason %d"
+runstate_set(int new_state) "new state %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 c5b0eea..30d8b46 100644
--- a/vl.c
+++ b/vl.c
@@ -612,7 +612,7 @@ void runstate_set(RunState new_state)
RunState_lookup[new_state]);
abort();
}
-
+ trace_runstate_set(new_state);
current_run_state = new_state;
}
--
1.7.1