From patchwork Fri Dec 3 14:44:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 520183 Delivered-To: patch@linaro.org Received: by 2002:a05:6e04:2287:0:0:0:0 with SMTP id bl7csp942356imb; Fri, 3 Dec 2021 06:46:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzcQbirbva82Wxls3LW0MomJ3PFOQ1dKLklcgTQ8vjjkyHIZdTHR9+lpje1ZuKA/2mJZl56 X-Received: by 2002:a67:60c2:: with SMTP id u185mr21054291vsb.73.1638542787019; Fri, 03 Dec 2021 06:46:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1638542787; cv=none; d=google.com; s=arc-20160816; b=lj8i498MEn7hpEH1H0mZmmkiugVIuMXfX6TvRrmFr0i/i1ZqOMZicTyhNpjsd6BW1a 2RpPbcojahux+ISnLnwDColi/r5qzq4X+/cuntAqrc5Wx/rtuLg3Ch9jVIQRGbqFdmXg +exBhpqetbBV0pkxfqQZbXVwK+07xPToEQNN4l7IEHNGr8NRAS5MIxnjta+kTta5LZpx PZqE8ZoDOJvbjOLGt/iuDxEjz0dR3x7yU58Z7pT8WtADEUpXAdg4uvMblnECdk3gvlzo h/ohjPDA+ZE45bPSWPNqRODwuOP2/LFyq+vYzqRsIpFtlNjfHv/MqLhLeSlm7VvVdkT7 r/mw== 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:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=n0E2zKB0IP6dBPB91yi7clgYPhuSx9WI6z7N00/mqtg=; b=T+sMEE5Jf1R1GIC9EufGsKsHwwtQUN4VjsX0OpMvy9Q46HfHqQKhoJhGMJVR9BMfKi f+tw+6w1SBYZDS6SUJe+OapW6y31oYIXCh1XtfbAn5q+hUGGiD9KQD0vdlr9wX39F90o tcBWQJVqDQfCYRUGr+IuN7zrvV3FDlJwAPBofzkYQCuJYpudrfWKkVuiDhwSx0r3WkWy HJQ1x6hPYW2RO+OuFOD97GAhp68ZmlwNLo83aOZpthdU01Ue/QEc5iZtA7LdAJNQ3kkJ clQPlDE+2RW2XpleQeafp2F+i++FBZtczmI+6yXwE2xGOnYZS5weXqUZaQme4xsEtbKx 8zfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="g03eNq/G"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u6si3290795uaw.243.2021.12.03.06.46.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Dec 2021 06:46:27 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b="g03eNq/G"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:46660 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mt9pS-00027a-FJ for patch@linaro.org; Fri, 03 Dec 2021 09:46:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55104) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mt9na-00026k-Gl for qemu-devel@nongnu.org; Fri, 03 Dec 2021 09:44:30 -0500 Received: from [2a00:1450:4864:20::32e] (port=40830 helo=mail-wm1-x32e.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mt9nY-00010P-O8 for qemu-devel@nongnu.org; Fri, 03 Dec 2021 09:44:30 -0500 Received: by mail-wm1-x32e.google.com with SMTP id j140-20020a1c2392000000b003399ae48f58so5045015wmj.5 for ; Fri, 03 Dec 2021 06:44:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=n0E2zKB0IP6dBPB91yi7clgYPhuSx9WI6z7N00/mqtg=; b=g03eNq/G6o0j+AYsGVNn0MRdc+h+xmYM7cDRmVc0IQPe/V0v7L/QAaZopjEpvuQjvS xyzDnzsDcY8PaJEdFQM+EqqkKXosCWEM74LkjF5OWKASjABP6uWDN90r/ToKRdZETa6f D+VtbsFw7YO7DlMldFqyAVP+YtmaQBX+N8R7TlH15nhL4rWNWzg8EDudq99bMzxXI13b Bw+qhf13K7SFUPGhm7r0KBKCh7HcySXQ1EJunsJZAPc7YahuhmHLXVyIeyHy3EDeJCgu cUKobg28vhCdDi6RMMXntIjDWo8XVeVI9+UZRVUFETK3BtEJWEZvEedXP1iAz92wmr2c 4tig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=n0E2zKB0IP6dBPB91yi7clgYPhuSx9WI6z7N00/mqtg=; b=W8LX9QwYihRj6SpJ4ahSuuYoztCteEXYrefCPAHT5JPYTBWs2Wf2KB0DuP+DexlLX6 oa3JKc3N6MzTGz9djDhCbg8uztl05FCCv8c19yAQNTBFyRMrKe4fsz3+YglXfoJn42sI e1Fx/Mo4laSSBmpWCc8WNCOQNF4i7vUgmFg3jkuhc4z2cNjfy22KjksgEGndZLiakDef HBThcgXisJWly+9om71XQvMmLKQmhgi7zXzULJY36dWvBHhdMGYicMncRr6DGYaZHKLq DDwiE5bIC/g8+Gh4z+323xtxKY05WkG4ZvQui2F/8tsUFvUNZtnrUoQCO0JaCvShatXn BWiw== X-Gm-Message-State: AOAM531aWYOPCvLqMHAT7xj82UjVSofU3uevjEvZyUxEOiwomskDzRgM bSd/RLjr5UEJfd1LpalxiP2maQ== X-Received: by 2002:a05:600c:1e27:: with SMTP id ay39mr15593679wmb.84.1638542663643; Fri, 03 Dec 2021 06:44:23 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f7sm3337530wri.74.2021.12.03.06.44.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Dec 2021 06:44:22 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E836C1FF96; Fri, 3 Dec 2021 14:44:21 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH 0/2] insn plugin tweaks for measuring frequency Date: Fri, 3 Dec 2021 14:44:19 +0000 Message-Id: <20211203144421.1445232-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::32e (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: minyihh@uci.edu, robhenry@microsoft.com, mahmoudabdalghany@outlook.com, aaron@os.amperecomputing.com, cota@braap.org, kuhn.chenqun@huawei.com, ma.mandourr@gmail.com, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hi, This series was prompted by yesterdays email thread: Subject: Suggestions for TCG performance improvements Date: Thu, 2 Dec 2021 09:47:13 +0000 Message-ID: which made me think if we could leverage the TCG plugins to measure how frequently we these flush events happen. My initial measurements with a Debian arm64 system indicate we do some sort of tlbi instruction every 47 thousand instructions. Alex Bennée (2): tests/plugin: allow libinsn.so per-CPU counts tests/plugins: add instruction matching to libinsn.so tests/plugin/insn.c | 125 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 117 insertions(+), 8 deletions(-)