From patchwork Sun Sep 24 21:22:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 114157 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1958664qgf; Sun, 24 Sep 2017 15:48:24 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCiMZi6qgMeWVcop5vDKpYtDSiHP7pVyEx95TKOrP4S1cZ089e/Gh/I95iQkd/nJrsdXSoR X-Received: by 10.200.15.74 with SMTP id l10mr8831758qtk.159.1506293304165; Sun, 24 Sep 2017 15:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506293304; cv=none; d=google.com; s=arc-20160816; b=taPlDWf9VboYtDN4XGg9LbIm5znPCOfFmQkG4QvN46F8fmYJO/OKwsfcskit/r5gBO kLpZp3TpBuN+4r4b3b+iSshs+7LzKuHJnsX8M5gfdco/w5Tikyhi1pKP51szj9UCfJ5A 82NlRu55iAhCC6S1gvuXHQ3g7ZrQ9SufSYdDzY2HRD/rMkgYbU7KZkVKXv8e6s2dWC8F 5Hp74WCC9/EsQXWoSJKM0uwlimJSNe31SZjO+U4MC+S60uCFVW0wA1lfo0p6lw7YxKWe BNqgz+i20hs21u0bQAsCqQDVBQ+IxcEPb4ibyyxzNs4JQ89Q0uXVbQ/PSgH8dvAE9+M2 +3Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :references:in-reply-to:message-id:date:to:from :arc-authentication-results; bh=POFATsyyyU20WtCjaTmgdbk2KlXEfjYf3NMid6+4XeU=; b=F1vuu+VuQV0wT2ktz/NztOcXXu8EQJY0BD/YLXPNJ8yTURiztDTmYnPbcuMkwNb/H7 YmGJd8TLunOG9HFqEjIutf3xqknSuwUUBDdbweBZd4482kAa2giGHdb8zz0W7uIGEbbr uZxzzBl9pa4m/5P6MzZxLDIwRNIU9X+blQJ1tv63KNlst234olPjniloonBmmymW7l+7 dIbTS6uspuJLJDKZ3TcahmMnnc6w1A9jd6vzM0eilawVv6ux4X3koQEGMAoilsR3jA73 yGm/QkW4ZzW/0VwsLE9KsrOWOf2X+7ovs6KCNd/YukbOte7T6YUrxcVBqSg7JqykAtPH WwXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id d77si5039904qkh.149.2017.09.24.15.48.23 for (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 24 Sep 2017 15:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org Received: from localhost ([::1]:39746 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwFhG-0007sy-3r for patch@linaro.org; Sun, 24 Sep 2017 18:48:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwFbE-0002pP-0k for qemu-devel@nongnu.org; Sun, 24 Sep 2017 18:42:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dwFbA-000833-45 for qemu-devel@nongnu.org; Sun, 24 Sep 2017 18:42:08 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:34625) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dwFb9-00081d-Rw; Sun, 24 Sep 2017 18:42:04 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 721C941C98; Mon, 25 Sep 2017 01:42:00 +0300 (MSK) Received: from tls.msk.ru (mjt.vpn.tls.msk.ru [192.168.177.99]) by tsrv.corpit.ru (Postfix) with SMTP id E8630B70; Mon, 25 Sep 2017 00:22:54 +0300 (MSK) Received: (nullmailer pid 28280 invoked by uid 1000); Sun, 24 Sep 2017 21:22:52 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Date: Mon, 25 Sep 2017 00:22:38 +0300 Message-Id: <0302ff8504fef78c03da92c3defd59d4e3e4d9c5.1506288070.git.mjt@msgid.tls.msk.ru> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 86.62.121.231 Subject: [Qemu-devel] [PULL 20/31] hw/display/xenfb.c: Add trace_xenfb_key_event X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Liang Yan , qemu-trivial@nongnu.org, Michael Tokarev Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Liang Yan It may be better to add a trace event to monitor the last moment of a key event from QEMU to guest VM Signed-off-by: Liang Yan Signed-off-by: Michael Tokarev --- hw/display/trace-events | 1 + hw/display/xenfb.c | 1 + 2 files changed, 2 insertions(+) -- 2.11.0 diff --git a/hw/display/trace-events b/hw/display/trace-events index ed8cca0755..da498c1def 100644 --- a/hw/display/trace-events +++ b/hw/display/trace-events @@ -6,6 +6,7 @@ jazz_led_write(uint64_t addr, uint8_t new) "write addr=0x%"PRIx64": 0x%x" # hw/display/xenfb.c xenfb_mouse_event(void *opaque, int dx, int dy, int dz, int button_state, int abs_pointer_wanted) "%p x %d y %d z %d bs 0x%x abs %d" +xenfb_key_event(void *opaque, int scancode, int button_state) "%p scancode %d bs 0x%x" xenfb_input_connected(void *xendev, int abs_pointer_wanted) "%p abs %d" # hw/display/g364fb.c diff --git a/hw/display/xenfb.c b/hw/display/xenfb.c index df8b78f6f4..8e2547ac05 100644 --- a/hw/display/xenfb.c +++ b/hw/display/xenfb.c @@ -290,6 +290,7 @@ static void xenfb_key_event(void *opaque, int scancode) scancode |= 0x80; xenfb->extended = 0; } + trace_xenfb_key_event(opaque, scancode2linux[scancode], down); xenfb_send_key(xenfb, down, scancode2linux[scancode]); }