From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58516) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsVk8-0001D2-Qy for qemu-devel@nongnu.org; Mon, 16 Dec 2013 05:50:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsVjv-0000uo-JF for qemu-devel@nongnu.org; Mon, 16 Dec 2013 05:49:44 -0500 Received: from mx1.redhat.com ([209.132.183.28]:5375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsVjv-0000tg-Br for qemu-devel@nongnu.org; Mon, 16 Dec 2013 05:49:31 -0500 From: Gerd Hoffmann Date: Mon, 16 Dec 2013 11:49:13 +0100 Message-Id: <1387190958-19470-38-git-send-email-kraxel@redhat.com> In-Reply-To: <1387190958-19470-1-git-send-email-kraxel@redhat.com> References: <1387190958-19470-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 37/42] input: add input_mouse_mode tracepoint List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Anthony Liguori Signed-off-by: Gerd Hoffmann --- trace-events | 1 + ui/input.c | 1 + 2 files changed, 2 insertions(+) diff --git a/trace-events b/trace-events index a81d71e..322ad11 100644 --- a/trace-events +++ b/trace-events @@ -1026,6 +1026,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 a32bcff..55449dc 100644 --- a/ui/input.c +++ b/ui/input.c @@ -291,6 +291,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); } -- 1.8.3.1