input: add input_mouse_mode tracepoint
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 5 Dec 2013 10:24:14 +0000 (11:24 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 5 Mar 2014 08:52:04 +0000 (09:52 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
trace-events
ui/input.c

index fcdd570..744563c 100644 (file)
@@ -1027,6 +1027,7 @@ input_event_btn(int conidx, const char *btn, bool down) "con %d, button %s, down
 input_event_rel(int conidx, const char *axis, int value) "con %d, axis %s, value %d"
 input_event_abs(int conidx, const char *axis, int value) "con %d, axis %s, value 0x%x"
 input_event_sync(void) ""
+input_mouse_mode(int absolute) "absolute %d"
 
 # hw/display/vmware_vga.c
 vmware_value_read(uint32_t index, uint32_t value) "index %d, value 0x%x"
index b8fc681..afc037c 100644 (file)
@@ -289,6 +289,7 @@ void qemu_input_check_mode_change(void)
     is_absolute = qemu_input_is_absolute();
 
     if (is_absolute != current_is_absolute) {
+        trace_input_mouse_mode(is_absolute);
         notifier_list_notify(&mouse_mode_notifiers, NULL);
     }