Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp858238rdd; Wed, 10 Jan 2024 01:21:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcAx2R9XNGfmGBBliULLQoLbh9vsnr1WFIvnCtKyi6Q+oTrFGxBgswXw2QZiIVJbTtgAr4 X-Received: by 2002:a05:6512:6c1:b0:50e:9872:ae7e with SMTP id u1-20020a05651206c100b0050e9872ae7emr221008lff.120.1704878506171; Wed, 10 Jan 2024 01:21:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704878506; cv=none; d=google.com; s=arc-20160816; b=Qvjs24pKsK4YN5epU+chLxVovtiuBD6swUION+guz5jPIQEFAUeBKuILEcwzYdcNIG op4q/9hupX/bioVqrAChXU9PdZQO3ndb7oKFiMJUGJOAguH0PLpN8Nz/RC4t7+JbwgD9 48lfqBrrOM6MYfikkrt4fvTulZ0+3+RNBaSe5x9Crvg1DiqK6TnwPJnwDeeAivnT16UK /5dZruY34fCU6fUZy8sfxtKFEw2NpkZl+wfPVPNm0otffs+KyDC+PLoxIcsEu/7uC1c+ wFqqqWiogMT8b+/axVlu0C6eLLVAx/GFmCNL3UDu73IOm+/D/3iBOpbk6ZwNa2aldYJN u9sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7KdvnDVT3RerDcuyovlFeMJkh/Y6h3/FfvY1wG84drU=; fh=G59DpdDOmOKOZj+dBY1H01wVSAdjtP+qw6yVkLbHWb8=; b=YL5L5p7GaHBf5wWQ3jKZobYNE1Ekv6FB+RGGO83r5ON4K/5+/YqPBmMaW5a6ALM81z Le5nx2KzGz313f0dos3VeyTuSg0f+pjr1nZQCW95v2T29oVQgQhtygNldwzX1seRWaq+ Y2Ink5ZQZTpK9NvNFGl+jrc9bkmcsdEpsdaUG+sSMIj9dpAwFF9BK+m2u9OeqZM9XuPm e6a4vivx+HXxH9od6rqv+6sEP8vj/5qVL/TSSdMjKtYMOIHFNh1V/t8X7TaX/sjw/uE8 eNgnxQqeump5F4HZU2K4fdCo+XrT1ifMiFZVz6KAAOyTQql9UpAXuk8xy3z6WHn5jc02 2dQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=iFS0yr26; spf=pass (google.com: domain of linux-kernel+bounces-21894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21894-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id if15-20020a0564025d8f00b005573b380485si1552957edb.578.2024.01.10.01.21.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 01:21:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=iFS0yr26; spf=pass (google.com: domain of linux-kernel+bounces-21894-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21894-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E25991F2490F for ; Wed, 10 Jan 2024 09:21:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 91B363EA8E; Wed, 10 Jan 2024 09:21:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="iFS0yr26" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3D2FC3EA74 for ; Wed, 10 Jan 2024 09:21:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-55642663ac4so4372330a12.1 for ; Wed, 10 Jan 2024 01:21:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1704878489; x=1705483289; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=7KdvnDVT3RerDcuyovlFeMJkh/Y6h3/FfvY1wG84drU=; b=iFS0yr26NgnX5IVcTm9L6y6cDIJeOKcTHdGiMdlwKe7IFaWDfUW/qxAWONWQAjVikH Kx9E0DVzOgd29HAyW8o61+r1bd/BBqBP2yBdnVYLkWmunh/Zam7Tleahm8rFOS4oJ+sR SZYQyrqeqPALGqI6jt+kEUu6SLPQD56tWvSvTFmAa9K+3elZDOKN8t6euNM+//G16qMI 9JO66TB5GpL/m56CZW9ymiqr9sRBnl0ogpDCIlnvUJ23l0OonLNkoreKe1l+z8GuawWK Mg4jXZtcjpJhQ5aZxHB+Qdktan49Z6q8Z+cxK7Mre+R1KgKpEMCTZRH4t6QLaZ0soxcI eqFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704878489; x=1705483289; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=7KdvnDVT3RerDcuyovlFeMJkh/Y6h3/FfvY1wG84drU=; b=VxEPO1Fo+5KjDFZ5M6A2jrrzbKEYzYcg7NXKc2Pnqkfc+6mrYyPITTy+OqAi2AGga4 fhcL1epTToQJDWjjE4vEzvGI3QT9NwZN3qjawwGD++Cc1I+gWN9J+MphT6m/SgvcemyX tF/fsISQK+PjVSAyCUT2dOUwyvAfNAe69fC+BxxcOcwWB6U8h42iI8n7xq9dOGX9PHfl uLWkmKBp1DAFoIacHadaZ08rhaXig7timSxUqwG57DXZ9cX4y5C0WFhYde3D0lVexACA y3jGkgsbyKKltVe9UFQn5wtHgXay2XfFIcelTwg11QMUtdcxQs6KjB1o/FoTT82xAmkN /h4g== X-Gm-Message-State: AOJu0Ywu5nfAia41wO3IpzT8YLlOH6mUhvOxk77Ll5P+86Ot4G2A7UU4 O60aDVTWL3TNP+6EcPgS3F69HHsDKbiW+A== X-Received: by 2002:a05:6402:617:b0:557:3c8a:20a8 with SMTP id n23-20020a056402061700b005573c8a20a8mr217861edv.66.1704878489390; Wed, 10 Jan 2024 01:21:29 -0800 (PST) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id l8-20020a056402344800b00554b1d1a934sm1801943edc.27.2024.01.10.01.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 01:21:29 -0800 (PST) Date: Wed, 10 Jan 2024 10:21:27 +0100 From: Andrew Jones To: Sean Christopherson Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Kan Liang , Dapeng Mi , Jim Mattson , Jinrong Liang , Aaron Lewis , Like Xu Subject: Re: [PATCH v10 15/29] KVM: selftests: Add pmu.h and lib/pmu.c for common PMU assets Message-ID: <20240110-a69620ca0ebce509dc54f025@orel> References: <20240109230250.424295-1-seanjc@google.com> <20240109230250.424295-16-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240109230250.424295-16-seanjc@google.com> On Tue, Jan 09, 2024 at 03:02:35PM -0800, Sean Christopherson wrote: > From: Jinrong Liang > > Add a PMU library for x86 selftests to help eliminate open-coded event > encodings, and to reduce the amount of copy+paste between PMU selftests. > > Use the new common macro definitions in the existing PMU event filter test. > > Cc: Aaron Lewis > Suggested-by: Sean Christopherson > Signed-off-by: Jinrong Liang > Co-developed-by: Sean Christopherson > Signed-off-by: Sean Christopherson > --- > tools/testing/selftests/kvm/Makefile | 1 + > tools/testing/selftests/kvm/include/pmu.h | 97 ++++++++++++ > tools/testing/selftests/kvm/lib/pmu.c | 31 ++++ Shouldn't these new files be tools/testing/selftests/kvm/include/x86_64/pmu.h tools/testing/selftests/kvm/lib/x86_64/pmu.c Thanks, drew