From patchwork Tue May 25 17:42:21 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: 447342 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp4490348jac; Tue, 25 May 2021 10:42:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO+TJBiejrPRB4m5HJhHkPDKitpLf3yD+1zUIj/fqwTnz+XHeTvwQqhiqZTtrBweZWekQp X-Received: by 2002:a1f:9909:: with SMTP id b9mr26515342vke.22.1621964573708; Tue, 25 May 2021 10:42:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621964573; cv=none; d=google.com; s=arc-20160816; b=e4Ww2pwc56kxPbMb7qtLFyK6OZEFE+XYzBOnAhglwpIm6mH9VzxmuY3Szu1CF6/XWR qKYZ7gof5jD2n5+Hg3sZPe6xivBGSadcN/zoYCL7tv2mZgfUH6NJPwlCKEM/6sXMXN8j qF0zWoze2ytzA0D5UtyWdCBZGL0TtJb9XPJyAyt9Kpjp+neop6yw7QKRkdePJgactuG3 4qszMuEPkT60LQ/IQQvU/I8Ztykoy5D/kGBZR//hse1ZyguvTO89KVuZjYJ+qtYHSrG4 5kXJVU6yCLOfdiNgC+z2OA/VO0oRK6JPCf6wLGG+RYNenuaGtKI7Om1GMXsIj+Lg+y+L GpjQ== 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=xRd9XsO+PDr6n4FeCOKrjoZ73C+wdSaKiGHr6cRSi/o=; b=omJGB4uclE3MDhxiY/xGxMD7o/daO0m85Ftn7oW8ejykFNR06T5HIKLG4w4kCX8pyG QrwO5g4GlErkmGS2/oVNS3ZwM5759IgjaKAQzV9iu8mXJzfqVfiMeC3rPhzZKg7ozyAc aA3NcuVPptFpt5AJXMA50fYLlGMJqvkEJQobz+7+4WtslcrQOhfeOcItQUWfYWVRMK0L mt5IsEoP/IMS5WThjyh518K3JWpCs/0M52TTwRhLk905FvPwPC/qAdyJnVdjRS15opXF HUgCkJc3yR86nPr8OMc1jefvTSbputBUdvNRT/AsF0VBZ8vgxAUGP6LHMdOUK1guWKTH seWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lcuvChzJ; 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=pass (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 x13si1125073vsj.254.2021.05.25.10.42.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 May 2021 10:42:53 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b=lcuvChzJ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:42980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1llb4v-0007vG-4s for patch@linaro.org; Tue, 25 May 2021 13:42:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1llb4f-0007qB-HA for qemu-devel@nongnu.org; Tue, 25 May 2021 13:42:37 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]:35757) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1llb4d-0004Vz-Sh for qemu-devel@nongnu.org; Tue, 25 May 2021 13:42:37 -0400 Received: by mail-wm1-x32f.google.com with SMTP id z19-20020a7bc7d30000b029017521c1fb75so3984865wmk.0 for ; Tue, 25 May 2021 10:42:35 -0700 (PDT) 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=xRd9XsO+PDr6n4FeCOKrjoZ73C+wdSaKiGHr6cRSi/o=; b=lcuvChzJ8BN2TYlPcmvvAZ5Q1xMlrBmS6r7ceo1rAACSz8yGjYpW+/iucHYFCQ0Wtd 6w0DRSeHgsM28X67c9WCerAUnRIiXLyA0Wi7Ni8yoZc7SJ+HtTx2oio0cOFQA6fzRa0B ApTF3w5tVirxlb7+AohSilHxlzQwyDv+MexiO+tDQGOcseSL09qetYIZS4pPRsmYGJMm N5WHGRY+kRtvDtApIvxHS0tn8Y8N1Rvc7YA4CWBuWvPEH4ctTCXt22B3tF8ft69JgPiI IgfwpdhDSf+t6Ai7635kgD4PE1ZBCb9vdU/puofaNvmoQaBY2eDAKLfR7qPbp9lMt0pH BmDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=xRd9XsO+PDr6n4FeCOKrjoZ73C+wdSaKiGHr6cRSi/o=; b=BomU84pyoVB6reY5/y1pvegCB7Ntab6M8gICOnPg9cfz9MRaBKNhvUSXCDgn/07Co7 b2mhGhRsqVr/dCGsUcj+ZTFPFIRSiwy6G9Y/nSzIE4lFfINv/yfRPWhMC/Yx7tIKWqla rEyCJCZd87iiFS2hsidooilfplIlW8ZVGlWd0GQdFfjP/Kf7QJxXlg9qh5fdZYM6kaHs cbczbm4nwBYOcXYkE9LW3QH3WvNTSMLDDYXWDOgwQNwlgJI4nSgWISsRtHv1nEpaBjvZ yrRHczYWYkQ9h5spHg87m0apqUdSOUaPmWBgth18iwPFxl2SQ2ia3faGUOBSyTrEVUKJ Hp/g== X-Gm-Message-State: AOAM530t7/S0VEVEG8jC3koNPRRvRMzPIBx/mluM4C0654NSuLYztJs/ Er7wSuVIa9JPXNmCZFt4WSAKNg== X-Received: by 2002:a1c:b646:: with SMTP id g67mr24639077wmf.117.1621964554306; Tue, 25 May 2021 10:42:34 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id d3sm16788921wrs.41.2021.05.25.10.42.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 10:42:32 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C4ADF1FF7E; Tue, 25 May 2021 18:42:31 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, christoffer.dall@arm.com, maz@kernel.org, qemu-arm@nongnu.org, qemu-devel@nongnu.org Subject: [kvm-unit-tests RFC PATCH] arm64: split pmu tests into tcg/kvm variants Date: Tue, 25 May 2021 18:42:21 +0100 Message-Id: <20210525174221.16987-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" QEMU is able to give a counter for instructions retired under TCG but you need to enable -icount for it to work. Split the tests into kvm/tcg variants to support this. [AJB: I wonder if the solution is to have a totally separate unittests.cfg for TCG mode here?] Signed-off-by: Alex Bennée --- arm/unittests.cfg | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) -- 2.20.1 diff --git a/arm/unittests.cfg b/arm/unittests.cfg index adc1bbf..2c4cf41 100644 --- a/arm/unittests.cfg +++ b/arm/unittests.cfg @@ -66,24 +66,40 @@ file = pmu.flat groups = pmu extra_params = -append 'cycle-counter 0' -[pmu-event-introspection] +[pmu-event-introspection-kvm] file = pmu.flat groups = pmu arch = arm64 +accel = kvm extra_params = -append 'pmu-event-introspection' +[pmu-event-introspection-tcg] +file = pmu.flat +groups = pmu +arch = arm64 +accel = tcg +extra_params = -append 'pmu-event-introspection' -icount shift=1 + [pmu-event-counter-config] file = pmu.flat groups = pmu arch = arm64 extra_params = -append 'pmu-event-counter-config' -[pmu-basic-event-count] +[pmu-basic-event-count-kvm] file = pmu.flat groups = pmu arch = arm64 +accel = kvm extra_params = -append 'pmu-basic-event-count' +[pmu-basic-event-count-tcg] +file = pmu.flat +groups = pmu +arch = arm64 +accel = tcg +extra_params = -append 'pmu-basic-event-count' -icount shift=1 + [pmu-mem-access] file = pmu.flat groups = pmu