Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3789224pxu; Mon, 19 Oct 2020 23:53:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuIUo6C3LxTiu2mf00qDDDQLNQ8KssvMDJ5xkQ6G2t/yh2JFr+ImUOBWTSPqzPWGiPa6zg X-Received: by 2002:a17:906:5509:: with SMTP id r9mr1760289ejp.12.1603176827619; Mon, 19 Oct 2020 23:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603176827; cv=none; d=google.com; s=arc-20160816; b=b2mdnADBhrhltHgeUUPIc+CS1V7m1KRkV95YCmm7sj9HMSrIyM55kn834sluD6C34l uzpE9S6SS2jtXFC/QtZ2COXoFyntAg+8ZthMtWmtTTdCj+12B6CCOR3bLu2cTWQk3xpu 2ndmXmiFKHre3n00J6Cg6ms3XcUNTmMN8hCc7dnFiCb4njo13aedYjK1J5RVQd/YK8pm Uj8lygatcuh5nKq/VicKyH1Fg32ZBpIEY6gP0eWBEvNEgU3//xF7f5mCH9TBd/JIGsLn o5UgzYGLQZE8PDtuAOYYbTIkpQgQBo8CuYwzzwj60Q4KJUyEPCL+7k0TXA7qk8logaTF 4TmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=5mjSGryX3vSNb47lPps7fktM/hIU6q64W5ctVkJiukQ=; b=fsxo0cj2DmN+kD+oMT9zGrihvYX81DgPblHd2q5MCp1iVOK86DqfKHQesghHDOgDzU JjhjThJdBkPr8kwNd+QOH5sXCeWNF/udA2yoH7iNJeJoDvMkbVLAPtiJuLjcBJnAiOa8 hJVGoMwA9NtIWQBuBwhCcc2hsjeCv8MJJfC1ymBBFjd87usNEHcPnTyrPYlxwuk4XtgO MEuVpfCErD5u9xfZc7eQvZL9bXjdm0+H7YMQIra2Sp2evDm23SpIqSJxMjkg8bMCTllk vawxwS1Vh8sOJixbnOri1CnEOI9bdnomtDYzpXRZgtIetKniCfSxI7CqkVHMNNF93Pla rVZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=udLRbdJI; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j24si698407eja.198.2020.10.19.23.53.25; Mon, 19 Oct 2020 23:53:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=udLRbdJI; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728400AbgJSRop (ORCPT + 99 others); Mon, 19 Oct 2020 13:44:45 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:33174 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726318AbgJSRop (ORCPT ); Mon, 19 Oct 2020 13:44:45 -0400 Date: Mon, 19 Oct 2020 17:44:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1603129483; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5mjSGryX3vSNb47lPps7fktM/hIU6q64W5ctVkJiukQ=; b=udLRbdJI38yDtSB1f4RKF/piNy79MFSmaz5ZR0kxEDH8rbdse/BSWqDzMz/H5Lie1DMYxW hl5VPaL+0Cwz7pGm4OEZbz/DF8V/pr+3m/AboL56p1jEaAEryvZkPFRmG1E1e4DBzKkOA3 s7jXWg3Uc+QAuM/LDet9DAWHJxoX5GhkLkKdzVRTd3H72MQHn5Pg1TfwPx9sp8nJcEJTqt 1uppzafLmmprC3Kk9UqI+V9stJc5wPFA9qqrxGis12alFH0fYCz46iLaa+2kNU9DCdXas+ BWwYF38M6fG8SZ4RBnpuONHttcidCkAXryww2dVHzYZFDfPtzKl/NzR0HiCrqw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1603129483; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5mjSGryX3vSNb47lPps7fktM/hIU6q64W5ctVkJiukQ=; b=a+DpWjQAWk31kuTbHYeskxUp1d3H/Np3SXwcI4+yZjhdEHAIdbPzMo0k9XlLZ419no0nb+ LjEEnx7xAlkh8EDA== From: "tip-bot2 for Al Grant" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/urgent] perf: correct SNOOPX field offset Cc: Al Grant , "Peter Zijlstra (Intel)" , Andi Kleen , x86 , LKML In-Reply-To: <4ac9f5cc-4388-b34a-9999-418a4099415d@foss.arm.com> References: <4ac9f5cc-4388-b34a-9999-418a4099415d@foss.arm.com> MIME-Version: 1.0 Message-ID: <160312948187.7002.13059882687948612179.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/urgent branch of tip: Commit-ID: f3d301c1f2f5676465cdf3259737ea19cc82731f Gitweb: https://git.kernel.org/tip/f3d301c1f2f5676465cdf3259737ea19cc82731f Author: Al Grant AuthorDate: Mon, 21 Sep 2020 21:46:37 +01:00 Committer: Peter Zijlstra CommitterDate: Mon, 19 Oct 2020 19:39:22 +02:00 perf: correct SNOOPX field offset perf_event.h has macros that define the field offsets in the data_src bitmask in perf records. The SNOOPX and REMOTE offsets were both 37. These are distinct fields, and the bitfield layout in perf_mem_data_src confirms that SNOOPX should be at offset 38. Fixes: 52839e653b5629bd ("perf tools: Add support for printing new mem_info encodings") Signed-off-by: Al Grant Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Andi Kleen Link: https://lkml.kernel.org/r/4ac9f5cc-4388-b34a-9999-418a4099415d@foss.arm.com --- include/uapi/linux/perf_event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index 077e7ee..b95d3c4 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h @@ -1196,7 +1196,7 @@ union perf_mem_data_src { #define PERF_MEM_SNOOPX_FWD 0x01 /* forward */ /* 1 free */ -#define PERF_MEM_SNOOPX_SHIFT 37 +#define PERF_MEM_SNOOPX_SHIFT 38 /* locked instruction */ #define PERF_MEM_LOCK_NA 0x01 /* not available */