Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2644674rwd; Mon, 15 May 2023 14:54:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ65DBeS2HQ+rodPK3omQw5inKegMxtuBMU3M/ue7+7MdVW9kKj/CeOogtJTl0FegKWAGOIG X-Received: by 2002:a05:6a20:9381:b0:104:45df:42db with SMTP id x1-20020a056a20938100b0010445df42dbmr18749659pzh.9.1684187640159; Mon, 15 May 2023 14:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684187640; cv=none; d=google.com; s=arc-20160816; b=Gc+H7R3H0V1Z+kk3zhmP8SLQHTJog/iqEAPLnHHrIakfuZj6hdHk2ZaDCWPmhLf86E nJV69MjnGC5Ggq710a8b+z/jI4GgoOE5ebod3DPU+ABIl6v4C3Swt4eqjh+qXa7DhTri ilY/mkYvM0uOB11MoT25l8YQIz10jp4G/fV8NuajJNYRn094Y2pUj63ua04smSXs2QhX 3MzbE3NX7cw+FB8BzTzTRghuYVjPjgg5HGKzdc8zMIkEmfZMa81PrRlzENJUpoQKIrRs D2/LdlwMc+41/hoVyrZ3H4rm9EGjRBSbLT2T5Zt7yWyAETRX46AQ4A/j/kqXgbQBN09L qcvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wSIoYnTiJef81ixHqb5/Xqcgvue7nkxIPWPtdr6CZIA=; b=yhWZS37O0s5O2SRDLx4zZSRY3MttSNH8MmnthMt65bQ1Ry6W/CAs+eWL/XTikCDluY nGXuJyZcO1D9LpA/uDK7pOS7HvU6SUoISu6+KCO188kdZzidymTaUDaEv3Tt604GSwMp u6gxhz9w67mZa9oSwTGSTkjeKPG2BcjmtZr4u2VQSiCBvVvxH1S0NoV+6ugWViKFnku8 LfJGSgU/poqkAczydicGdpUVWrcvVhCrKbmP3FrClQCmRqRsx+mrTNMXgiB/hSr6R1lv Xkdjn1DwIfM6yaRwp/nWdKXqrJ5FqEQqoY6f97qMCSnt0CEimoCWNTSg2ynrstRNiX9N Oq8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NzNrnnJK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z25-20020aa79599000000b00643bb2643f5si17872966pfj.124.2023.05.15.14.53.45; Mon, 15 May 2023 14:54:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NzNrnnJK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245188AbjEOVeF (ORCPT + 99 others); Mon, 15 May 2023 17:34:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231544AbjEOVeE (ORCPT ); Mon, 15 May 2023 17:34:04 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D26E293E1; Mon, 15 May 2023 14:34:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6E0D86322E; Mon, 15 May 2023 21:34:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E0FFC433D2; Mon, 15 May 2023 21:34:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684186442; bh=j/8xMxku5oEjsZdQe0mIkKDuoV2R/gpOLnekK5py0Nc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NzNrnnJKM/TLchtal/3FC5Ydr7w86THDebyjbLNlizmbBI31BlbHpqqd2UoeZ6ndU flgbBWwQMWPqVPsRaTXzXi0cblx4EpBl2QdeRfT3vph7hFRhWMd6m4kNRaMN/ge/oO 6DdQjCWAsPSi/277TCzLecfDHgX7puIrz1lapyCqXBV3ygXMR/pPTl15loAhRR3SF9 uUW8M7fcdDgmOGZA0skhKKbJNSg/JcChBW+JkVIkMVrjhEPrbLWPtoEURfyd52XJQ7 FD01K7HGdj6uZq8YZ1ewVMf7uUCxfAW1oczXlKl7DlaOe0ZZ1nUF2YxZ/SAE/mFJNU AOi2cCbmMtDTQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 2B90E403B5; Mon, 15 May 2023 18:34:00 -0300 (-03) Date: Mon, 15 May 2023 18:33:59 -0300 From: Arnaldo Carvalho de Melo To: Peter Zijlstra Cc: Ravi Bangoria , namhyung@kernel.org, eranian@google.com, mark.rutland@arm.com, jolsa@kernel.org, irogers@google.com, bp@alien8.de, kan.liang@linux.intel.com, adrian.hunter@intel.com, maddy@linux.ibm.com, x86@kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, sandipan.das@amd.com, ananth.narayan@amd.com, santosh.shukla@amd.com Subject: Re: [PATCH v4 4/4] perf test: Add selftest to test IBS invocation via core pmu events Message-ID: References: <20230504110003.2548-1-ravi.bangoria@amd.com> <20230504110003.2548-5-ravi.bangoria@amd.com> <20230505091648.GC1770668@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, May 15, 2023 at 06:31:18PM -0300, Arnaldo Carvalho de Melo escreveu: > Em Fri, May 05, 2023 at 11:16:48AM +0200, Peter Zijlstra escreveu: > > On Thu, May 04, 2023 at 04:30:03PM +0530, Ravi Bangoria wrote: > > > IBS pmu can be invoked via fixed set of core pmu events with 'precise_ip' > > > set to 1. Add a simple event open test for all these events. > > > AMD IBS via core pmu: Ok > > > > > > Signed-off-by: Ravi Bangoria > > > --- > > > tools/perf/arch/x86/include/arch-tests.h | 1 + > > > tools/perf/arch/x86/tests/Build | 1 + > > > .../arch/x86/tests/amd-ibs-via-core-pmu.c | 71 +++++++++++++++++++ > > > tools/perf/arch/x86/tests/arch-tests.c | 2 + > > > 4 files changed, 75 insertions(+) > > > create mode 100644 tools/perf/arch/x86/tests/amd-ibs-via-core-pmu.c > > > > Arnaldo, ok if I merge this along with the other patches or would you > > rather take it? > > That would be ok, checking if you merged already... Yeah, its in tip/master, great. - Arnaldo