summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-12-05 11:24:14 +0100
committerGerd Hoffmann <kraxel@redhat.com>2014-03-05 09:52:04 +0100
commita8dfb1c34ffc17d16eebd46442be93d5e8fad44f (patch)
tree91786abb6c4a19267c48c48c47b975b979439abc
parent4a33f45e2e4c773b47963baf5a8251963bd01e38 (diff)
downloadqemu-a8dfb1c34ffc17d16eebd46442be93d5e8fad44f.tar.gz
input: add input_mouse_mode tracepoint
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--trace-events1
-rw-r--r--ui/input.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/trace-events b/trace-events
index fcdd570096..744563cfd3 100644
--- a/trace-events
+++ b/trace-events
@@ -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"
diff --git a/ui/input.c b/ui/input.c
index b8fc6818d2..afc037c3e9 100644
--- a/ui/input.c
+++ b/ui/input.c
@@ -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);
}