Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp291163pxx; Wed, 28 Oct 2020 05:09:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6pKtGV+KHHrHekHtI/cZBonmM9UGbr+1yFRN6QsRnAwx92DS7nqTJJj32sggOGApbpxbB X-Received: by 2002:a17:906:512:: with SMTP id j18mr2183524eja.370.1603886968563; Wed, 28 Oct 2020 05:09:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603886968; cv=none; d=google.com; s=arc-20160816; b=lY/OIK9e4uJxOplPqzTTF44cAjhulCPKo4envIWkLeOVpSoAvvWvH2c3Quy1NtmWkw 3hK0a2iiGMIMc2ukOnwis6lh7PzE/Sf1g5HwM5U8zJEKqvAdBce6smYnJJSTL3wtvXoc 9XOgc9rcvMz5oQHp0gdwB1jRUzNDpZ/ARpZciVebarj9WMPS55Xm59tSe1S5McCHzuPQ q1a7yw94Dk31eDfrUhI4nblVo0dr+BZqPSw//lwGuLn9Q0rE8PHGhEpB0GqFJoJy+2HP aDf7mCRfp/bQrcwNPtHT199pZWR8+3FfpKoJrhuF9RperMEXsWDmQ5gZ7qBO/8L2Jzxg Y6zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5l9rU/aFcsNNpcf5H7mwitk9O4AxPfAf1Me2NqTKrio=; b=MYNKaY8PuLvLKnNWWPslNS+wQW6EzLI8OGGXFudBEFMwdhUXu22O5UckkVjgAO2FRC b8UXH+/KRImNemphjOyb2GSbaCRl6Ns3wufaJRGC8jxtJjVv2Mymfin15bZk/jXqoHIN /Zq4RjE3mPaZSF3Ujqz19RW3gu7U1dIluVxmnfBefaSpihbAC+6jtD3Xpky4iTJBAWZy 6Y+MdODPHaNhFmCZEW6EdUJ1XZnq/ZkStaWnu3ZqbLLp8mmkV7lq0kobTzUOntqkNMwo yw0KkQAO1DUUsOxiQa9YOYmqAeHCQYFq0Xo8JrR9joIDLz/Rqw3pAKjsOtj6JypC6Ile FJJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w69Fy0Pu; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si2879649ejg.48.2020.10.28.05.09.06; Wed, 28 Oct 2020 05:09:28 -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=@kernel.org header.s=default header.b=w69Fy0Pu; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1795724AbgJ0PPT (ORCPT + 99 others); Tue, 27 Oct 2020 11:15:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:48220 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1794492AbgJ0PMG (ORCPT ); Tue, 27 Oct 2020 11:12:06 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3A46421D41; Tue, 27 Oct 2020 15:12:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811525; bh=ww8mPCgIta2DTw14Ldjc/t6ai8FcjQRzSqbo6ouy0tA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w69Fy0PuIaamkSdnuT4S2YX8Q7EkavGcA/HADpimj9MdXnSM5qZSUXMnN7BJF/iDd HmWhHA52d897kOdIo35pzAeXPzN2bd3Vl20TrUFbxVMth1JVt9Ev4E0LoCECZIBouO 6KnCWXIuVKUid8Tnx9LVEhmHk1DTjX+AMLpsHCjQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Al Grant , "Peter Zijlstra (Intel)" , Andi Kleen , Sasha Levin Subject: [PATCH 5.8 525/633] perf: correct SNOOPX field offset Date: Tue, 27 Oct 2020 14:54:28 +0100 Message-Id: <20201027135547.400508721@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Grant [ Upstream commit f3d301c1f2f5676465cdf3259737ea19cc82731f ] 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 Signed-off-by: Sasha Levin --- 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 7b2d6fc9e6ed7..dc33e3051819d 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h @@ -1155,7 +1155,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 */ -- 2.25.1