qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

ui/sdl2-input: use trace-events to debug key events

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-id: 20200516072014.7766-8-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

authored by

Volker Rümelin and committed by
Gerd Hoffmann
20a37f2f 7dafc679

+6
+3
ui/sdl2-input.c
··· 27 27 #include "ui/console.h" 28 28 #include "ui/input.h" 29 29 #include "ui/sdl2.h" 30 + #include "trace.h" 30 31 31 32 void sdl2_process_key(struct sdl2_console *scon, 32 33 SDL_KeyboardEvent *ev) ··· 38 39 return; 39 40 } 40 41 qcode = qemu_input_map_usb_to_qcode[ev->keysym.scancode]; 42 + trace_sdl2_process_key(ev->keysym.scancode, qcode, 43 + ev->type == SDL_KEYDOWN ? "down" : "up"); 41 44 qkbd_state_key_event(scon->kbd, qcode, ev->type == SDL_KEYDOWN); 42 45 43 46 if (!qemu_console_is_graphic(con)) {
+3
ui/trace-events
··· 75 75 input_event_sync(void) "" 76 76 input_mouse_mode(int absolute) "absolute %d" 77 77 78 + # sdl2-input.c 79 + sdl2_process_key(int sdl_scancode, int qcode, const char *action) "translated SDL scancode %d to QKeyCode %d (%s)" 80 + 78 81 # spice-display.c 79 82 qemu_spice_add_memslot(int qid, uint32_t slot_id, unsigned long virt_start, unsigned long virt_end, int async) "%d %u: host virt 0x%lx - 0x%lx async=%d" 80 83 qemu_spice_del_memslot(int qid, uint32_t gid, uint32_t slot_id) "%d gid=%u sid=%u"