diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-04-22 15:45:51 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@redhat.com> | 2019-05-23 14:10:31 +0200 |
commit | 1f80b0d67e86f0180c72e9e943046d79a63c83f6 (patch) | |
tree | ed40dba10e59bb5cf9a37dabbaa3b8c9b70e9099 /hw/nvram/trace-events | |
parent | c4600d5d417ea13e0f1cc047b227a2b5b0e694f5 (diff) | |
download | qemu-1f80b0d67e86f0180c72e9e943046d79a63c83f6.zip qemu-1f80b0d67e86f0180c72e9e943046d79a63c83f6.tar.gz qemu-1f80b0d67e86f0180c72e9e943046d79a63c83f6.tar.bz2 |
hw/nvram/fw_cfg: Add trace events
Add trace events to dump the key content.
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20190422195020.1494-2-philmd@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/nvram/trace-events')
-rw-r--r-- | hw/nvram/trace-events | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hw/nvram/trace-events b/hw/nvram/trace-events index e191991..0dea926 100644 --- a/hw/nvram/trace-events +++ b/hw/nvram/trace-events @@ -5,6 +5,11 @@ nvram_read(uint32_t addr, uint32_t ret) "read addr %d: 0x%02x" nvram_write(uint32_t addr, uint32_t old, uint32_t val) "write addr %d: 0x%02x -> 0x%02x" # fw_cfg.c -fw_cfg_select(void *s, uint16_t key, int ret) "%p key %d = %d" +fw_cfg_select(void *s, uint16_t key_value, const char *key_name, int ret) "%p key 0x%04" PRIx16 " '%s', ret: %d" fw_cfg_read(void *s, uint64_t ret) "%p = 0x%"PRIx64 +fw_cfg_add_bytes(uint16_t key_value, const char *key_name, size_t len) "key 0x%04" PRIx16 " '%s', %zu bytes" fw_cfg_add_file(void *s, int index, char *name, size_t len) "%p #%d: %s (%zd bytes)" +fw_cfg_add_string(uint16_t key_value, const char *key_name, const char *value) "key 0x%04" PRIx16 " '%s', value '%s'" +fw_cfg_add_i16(uint16_t key_value, const char *key_name, uint16_t value) "key 0x%04" PRIx16 " '%s', value 0x%" PRIx16 +fw_cfg_add_i32(uint16_t key_value, const char *key_name, uint32_t value) "key 0x%04" PRIx16 " '%s', value 0x%" PRIx32 +fw_cfg_add_i64(uint16_t key_value, const char *key_name, uint64_t value) "key 0x%04" PRIx16 " '%s', value 0x%" PRIx64 |