From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96A67C433DF for ; Mon, 19 Oct 2020 17:03:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2FE532064C for ; Mon, 19 Oct 2020 17:03:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="YJmbtEm6"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="jtHZyAhB" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730858AbgJSRCm (ORCPT ); Mon, 19 Oct 2020 13:02:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730820AbgJSRCm (ORCPT ); Mon, 19 Oct 2020 13:02:42 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20329C0613D0; Mon, 19 Oct 2020 10:02:42 -0700 (PDT) Date: Mon, 19 Oct 2020 17:02:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1603126960; 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=klSXRhsQqqqtry06bZsmSHSzMiP3z7VwD9kbHwXwStQ=; b=YJmbtEm6tCVxr9abVLlSgyQZlt7FXiU4UZKUGYQlREXHPp75oc+JEFtUktNcC1w+94D1s8 ezKj/SWH7RlvujOr7dmjWVHe200FUqCXFSCvhT3snNHrS9zeDtI5cdKU4IR0BEuM/XYBgr TG4XhCEz81rVzWDfIKy9K3KwxzojJfzBXkcFsX6A8Xiio0OhXL9T/jRW2pgnTzCHZ6po99 Ghpub0NjQAuAYarHOxM7EfgAw+KTuhtz7tgXwqXzG2+TeVK0kIc3KAbKyMWzevbtazfOpC tKKcCP5nK9i0qpt3EqQh4SM+Hht+8ZSEox2pMbkIpKm/PONR0/6A6f/+n//U9g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1603126960; 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=klSXRhsQqqqtry06bZsmSHSzMiP3z7VwD9kbHwXwStQ=; b=jtHZyAhBQ74skYYGCC92UL5gR7ciLevpyY/FSkUroxxNXYD7B/GOnpfi39HP36M9t7QWyL J2Kgfe81nfgcRPAw== 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: <160312695895.7002.2602979482194317435.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: 04de3266214453deb5f1d7849a66313e351af8cc Gitweb: https://git.kernel.org/tip/04de3266214453deb5f1d7849a66313e351af8cc Author: Al Grant AuthorDate: Mon, 21 Sep 2020 21:46:37 +01:00 Committer: Peter Zijlstra CommitterDate: Mon, 19 Oct 2020 18:51:19 +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 */