diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2019-06-13 15:09:37 +1000 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2019-09-18 10:18:51 +0100 |
commit | 26b8e6dc42b9e46b76295f5613c7f7d61a78ccf0 (patch) | |
tree | 50c7fa2ea4c7e21b7e3b48990c92d47a1849d1d2 /hw | |
parent | f8c3db33a5e863291182f8862ddf81618a7c6194 (diff) | |
download | qemu-26b8e6dc42b9e46b76295f5613c7f7d61a78ccf0.zip qemu-26b8e6dc42b9e46b76295f5613c7f7d61a78ccf0.tar.gz qemu-26b8e6dc42b9e46b76295f5613c7f7d61a78ccf0.tar.bz2 |
loader: Trace loaded images
This adds a trace point which prints every loaded image. This includes
bios/firmware/kernel/initradmdisk/pcirom.
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190613050937.124903-1-aik@ozlabs.ru>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/core/loader.c | 3 | ||||
-rw-r--r-- | hw/core/trace-events | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/hw/core/loader.c b/hw/core/loader.c index 75eb56d..0d60219 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -45,6 +45,7 @@ #include "qemu/osdep.h" #include "qemu-common.h" #include "qapi/error.h" +#include "trace.h" #include "hw/hw.h" #include "disas/disas.h" #include "migration/vmstate.h" @@ -1151,6 +1152,8 @@ static void rom_reset(void *unused) * CPU definitely fetches its instructions from the just written data. */ cpu_flush_icache_range(rom->addr, rom->datasize); + + trace_loader_write_rom(rom->name, rom->addr, rom->datasize, rom->isrom); } } diff --git a/hw/core/trace-events b/hw/core/trace-events new file mode 100644 index 0000000..fe47a9c --- /dev/null +++ b/hw/core/trace-events @@ -0,0 +1,2 @@ +# loader.c +loader_write_rom(const char *name, uint64_t gpa, uint64_t size, bool isrom) "%s: @0x%"PRIx64" size=0x%"PRIx64" ROM=%d" |