summaryrefslogtreecommitdiff
path: root/ui/trace-events
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-06-06 15:47:36 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-06-23 11:47:59 +0200
commitd3b787fa7ddea1c66ee59eb332d1523c67db8cf6 (patch)
tree933d09cb5463aa2d32e988e1eaa6e5d313182380 /ui/trace-events
parente18a639164e162b3a4f078ab60606cd2f163d934 (diff)
downloadqemu-d3b787fa7ddea1c66ee59eb332d1523c67db8cf6.tar.gz
keymaps: add tracing
Drop commented debug logging, add trace points instead. Also cleanup parser code a bit, the key name is copied into a new variable instead of patching the input line, that way we can log the unmodified line. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20170606134736.26080-1-kraxel@redhat.com
Diffstat (limited to 'ui/trace-events')
-rw-r--r--ui/trace-events5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/trace-events b/ui/trace-events
index 93fe5482e6..19ce5f85f6 100644
--- a/ui/trace-events
+++ b/ui/trace-events
@@ -46,3 +46,8 @@ qemu_spice_create_primary_surface(int qid, uint32_t sid, void *surface, int asyn
qemu_spice_destroy_primary_surface(int qid, uint32_t sid, int async) "%d sid=%u async=%d"
qemu_spice_wakeup(uint32_t qid) "%d"
qemu_spice_create_update(uint32_t left, uint32_t right, uint32_t top, uint32_t bottom) "lr %d -> %d, tb -> %d -> %d"
+
+# ui/keymaps.c
+keymap_parse(const char *file) "file %s"
+keymap_add(const char *type, int sym, int code, const char *line) "%-6s sym=0x%04x code=0x%04x (line: %s)"
+keymap_unmapped(int sym) "sym=0x%04x"