diff mbox series

[5/5] log: Add logs during qemu start

Message ID 20200806093720.2355692-6-liangpeng10@huawei.com (mailing list archive)
State New, archived
Headers show
Series log: Add logs for some modules | expand

Commit Message

Peng Liang Aug. 6, 2020, 9:37 a.m. UTC
Add logs during qemu start.

Signed-off-by: Peng Liang <liangpeng10@huawei.com>
---
 blockdev.c         | 2 ++
 softmmu/vl.c       | 2 ++
 util/oslib-posix.c | 3 +--
 3 files changed, 5 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/blockdev.c b/blockdev.c
index 3848a9c8ab..8e3ab8a9b2 100644
--- a/blockdev.c
+++ b/blockdev.c
@@ -1001,6 +1001,8 @@  DriveInfo *drive_new(QemuOpts *all_opts, BlockInterfaceType block_default_type,
         qdict_put_str(bs_opts, "rerror", rerror);
     }
 
+    info_report("blockdev init(%s).", filename ? filename : "");
+
     /* Actual block device init: Functionality shared with blockdev-add */
     blk = blockdev_init(filename, bs_opts, errp);
     bs_opts = NULL;
diff --git a/softmmu/vl.c b/softmmu/vl.c
index a9f06111b3..493518de66 100644
--- a/softmmu/vl.c
+++ b/softmmu/vl.c
@@ -1070,6 +1070,8 @@  static void configure_blockdev(BlockdevOptionsQueue *bdo_queue,
         exit(0);
     }
 
+    info_report("Finish drive init.");
+
     default_drive(default_cdrom, snapshot, machine_class->block_default_type, 2,
                   CDROM_OPTS);
     default_drive(default_floppy, snapshot, IF_FLOPPY, 0, FD_OPTS);
diff --git a/util/oslib-posix.c b/util/oslib-posix.c
index ad8001a4ad..87c1c8569e 100644
--- a/util/oslib-posix.c
+++ b/util/oslib-posix.c
@@ -66,9 +66,7 @@ 
 
 #include "qemu/mmap-alloc.h"
 
-#ifdef CONFIG_DEBUG_STACK_USAGE
 #include "qemu/error-report.h"
-#endif
 
 #define MAX_MEM_PREALLOC_THREAD_COUNT 16
 
@@ -558,6 +556,7 @@  static bool touch_all_pages(char *area, size_t hpagesize, size_t numpages,
     g_free(memset_thread);
     memset_thread = NULL;
 
+    info_report("Finish touching all pages.");
     return memset_thread_failed;
 }