Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1123760pxx; Tue, 27 Oct 2020 08:47:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIxmtp1aFsTHGq9j9dG09/8z6Az0vWDTMrh4l+Sbzykk9/rD3MWcN9DsYga6oEgEf/9vtu X-Received: by 2002:a17:906:1a10:: with SMTP id i16mr2979230ejf.162.1603813661745; Tue, 27 Oct 2020 08:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603813661; cv=none; d=google.com; s=arc-20160816; b=ECFeuJCgktx8PSTAe8L+7DEXmPvQ0hfb00JfjpS6cp/evVTirmB1rNPPRQJqEc0C5J xAhBo7SH2vLJEWJdW4J98d9bcVdsmJRrQ00AE+8wIoLhD5VI+d+YR8LZNNouzilfNm+d E0fRT5CAZjYSeG8DyhZc0sqgFCVNhwNL8Kr/dpHB4n0mWrbtKyb9cWSaU84JeaDvCjK+ SbqNI3LrYPWawwS1r7hacNf2ThAjrbOBfmVr6OEmYEQ2jr0KuQsWhFa2Vk8PMmFYaucw tzrj8jqRvrpn1pWHdf91e6GMkwrsb5C7H+nSO9aaWrxSU6gH9x5UG98b0nsKraBc3JfV ea2g== 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=WFXfsYabDC2bZdiF2eqtitbq4gAu2hEApLELrmNMAdE=; b=Dqk9pCOoa9RsfEd6uplFmKphm6G8nedXHzVTYfOP1kN3DH1CfmVXfq9hzY/z63Rmxc BIVAYa1tN95eXWNHk5Afi3d2y4D7VFM4PYFeUYVaBZ8f0U/E4NeM5hW2w2dSv6eUaZ+u ztTWkRYdsfk1EL/G5AwT0Z98q5XHOMCdv27cdbJhn3vRKe+7r6iggycqwOcWNxxzkHy/ 71hdcKf8mB3ZhU0jwJdcl2H+Zz1lXd2j2D3xVa1mbZsfy843J9fj+MErZBHHm+2C6eFd g1QPuqRLucNuOzih9vJBdLGTvPXBf3iSTVLMbZOAXucnywcl4YjG9xWtaaEHdbsHm4kE wOJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BYcagD5c; 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 g6si1171734edn.287.2020.10.27.08.47.18; Tue, 27 Oct 2020 08:47:41 -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=BYcagD5c; 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 S1762835AbgJ0Ooc (ORCPT + 99 others); Tue, 27 Oct 2020 10:44:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:42966 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762516AbgJ0OnN (ORCPT ); Tue, 27 Oct 2020 10:43:13 -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 9BD3C206E5; Tue, 27 Oct 2020 14:43:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809793; bh=bjng4h1vXVmmScjy8wu1FneiWNg8HTa4J579Z4pZW7U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BYcagD5c9uRbUr/CrCLPsVdgtNFgET6an9bUmZ9moLFKz0UfILbDTsowqusOeS7hE 4kv0s5iKfb1gu3Ctfkocy2afG/b5zPFdGZrNzU64Hw8gCLeljUDa/BSywiHvDMuJbN AQKe8v0ow/xNiN/u745ZGLzUe/T27edyJPM0D9kk= 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.4 322/408] perf: correct SNOOPX field offset Date: Tue, 27 Oct 2020 14:54:20 +0100 Message-Id: <20201027135509.970511248@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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 bb7b271397a66..ceccd980ffcfe 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h @@ -1131,7 +1131,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