Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp199152rwb; Thu, 18 Aug 2022 02:06:52 -0700 (PDT) X-Google-Smtp-Source: AA6agR6JLfJsw2WwUQ+XaTESpGj1YjNk8Yw4jNtLnrzU5aJemrQ0Zd4UJxRT0gHem/P/m6V/uwQD X-Received: by 2002:a17:902:e881:b0:172:62c8:b44f with SMTP id w1-20020a170902e88100b0017262c8b44fmr1844834plg.8.1660813612637; Thu, 18 Aug 2022 02:06:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660813612; cv=none; d=google.com; s=arc-20160816; b=RNy16Wwu1MoKVQ2QpqqEq2FCN+W3tagol17hR2vo2nvJcE2W/SOkMYUjJqqvZ4bNyG btli3m+aQh0BhW76G9Wn+fCD5R+FXrF3tP1SdKTIQwenPzSCxLR9ClN2Ky9phpCRt43v XSoROjkl5ESq3zs4oAOwwwHTJ2OkbWTnU/fz0bzpTFmEXHAw+WpZz2DDATAmluN0etTA cUwZzJNQyDoaNHQrLjqXYcjt5rCQBExbIp8paxZus1ypEla4MT677H6eru/co4nrDzKQ cf54/KVNY9jRV/lpBERde8shfSqdP4aYX6Ct5mXNiqaxv9I5qS6WDu+7e3pYEmnSxGfN i6gg== 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=Q6fIoPbFyzYKNKdjMKH1CBJNejIE1XTrbd73RU1e9sc=; b=wveFXlV1eZeoISikcFGd7E92rjOLJtJWIjeg5wHSMEnT3gk+5RbrNt8zcIRnmkqj7N 4fslwCXaGeFOPcoJPTnk7lT1Jne1erDOSJbkzzFK1tTm3dsQGYwkY47pbAHZ7RADikHu ZdB8N74NiABhYOOvS7FYPWIJpjR4ZKRrRU4lONY2ALYKfNiKwy0qDgkoDwUn1KZtvLdM woy1gPJy1XtPkJe0Yl+K87csbcrGzPLB4/eTuuXgO8D/fGE6kIMmXndRMsJBjmSMFIRR SiHcZvdnchwFKaMUFDJkz56thSUfW4DljKJmCwAN1c+EqRyLMf8bICk5oC16bbrPAzs+ ZqPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=r2KCmCMN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 37-20020a17090a09a800b001fac322b981si2298338pjo.160.2022.08.18.02.06.40; Thu, 18 Aug 2022 02:06:52 -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=@infradead.org header.s=casper.20170209 header.b=r2KCmCMN; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241050AbiHRIgx (ORCPT + 99 others); Thu, 18 Aug 2022 04:36:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231424AbiHRIgw (ORCPT ); Thu, 18 Aug 2022 04:36:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2CF9B029D for ; Thu, 18 Aug 2022 01:36:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Q6fIoPbFyzYKNKdjMKH1CBJNejIE1XTrbd73RU1e9sc=; b=r2KCmCMNPaVpKNnzK4I6t/KGCp nJAo8/Pe/IaYWeoc676+RE0YIGu+Cq7lB+NS7WemPdKInZJbHVMGiZv5q1EGfVIqONtTLOLnPQfVY iWZvKHGfpMxffGOe6rfDcjwiFybGY7qCIaSM9zzVLH2QtKrQY+FgatDj0CwqsfbVbACu3DBeAvSFe cbbqX9BgNevjA7xcswwSwPWtygiTvsdyS3ytRVPOQ9/36dmlmpDd00Vv4oTWNfkQUUpcjtHZcHm6k rySlB7r5tKsZntzLK6QDZoGKjCMXJxbPEdArhfEVmAvzvcSe1X5iAETqkuyk7JsMsDj+C7n2djaki 1+yXj7Cg==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oOb0x-009XA4-Ko; Thu, 18 Aug 2022 08:36:31 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 2969C9801D4; Thu, 18 Aug 2022 10:36:30 +0200 (CEST) Date: Thu, 18 Aug 2022 10:36:30 +0200 From: Peter Zijlstra To: Stephane Eranian Cc: linux-kernel@vger.kernel.org, kan.liang@intel.com, ak@linux.intel.com, acme@redhat.com, namhyung@kernel.org, irogers@google.com Subject: Re: [PATCH] perf/x86/intel/ds: fix precise store latency handling Message-ID: References: <20220818054613.1548130-1-eranian@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220818054613.1548130-1-eranian@google.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Wed, Aug 17, 2022 at 10:46:13PM -0700, Stephane Eranian wrote: > With the existing code in store_latency_data(), the memory operation (mem_op) > returned to the user is always OP_LOAD where in fact, it should be OP_STORE. > This comes from the fact that the function is simply grabbing the information > from a data source map which covers only load accesses. Intel 12th gen CPU > offers precise store sampling that captures both the data source and latency. > Therefore it can use the data source mapping table but must override the > memory operation to reflect stores instead of loads. > > Fixes: 61b985e3e775 ("perf/x86/intel: Add perf core PMU support for Sapphire Rapids") > Signed-off-by: Stephane Eranian Thanks