aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-08-21 09:30:40 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-08-21 09:30:40 +0000
commit5e6ad6f90eaab923b2d949882751075c5e3291e0 (patch)
treef5629bf2a3f56b823c2a1c67625998791d576a7f
parentaa0629734011106231e02fca3c19e9e0e24c02be (diff)
downloadqemu-5e6ad6f90eaab923b2d949882751075c5e3291e0.zip
qemu-5e6ad6f90eaab923b2d949882751075c5e3291e0.tar.gz
qemu-5e6ad6f90eaab923b2d949882751075c5e3291e0.tar.bz2
kqemu profiling
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1546 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--monitor.c3
-rw-r--r--vl.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 297c0a4..1ff9bde 100644
--- a/monitor.c
+++ b/monitor.c
@@ -251,6 +251,9 @@ static void do_info_history (void)
static void do_quit(void)
{
+#ifdef USE_KQEMU
+ kqemu_record_dump();
+#endif
exit(0);
}
diff --git a/vl.h b/vl.h
index e0bc8b8..31d05b6 100644
--- a/vl.h
+++ b/vl.h
@@ -878,4 +878,6 @@ const char *readline_get_history(unsigned int index);
void readline_start(const char *prompt, int is_password,
ReadLineFunc *readline_func, void *opaque);
+void kqemu_record_dump(void);
+
#endif /* VL_H */