Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3360197pxu; Mon, 19 Oct 2020 10:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXqZiHaX8cpxqs/IWju+Agxpha4cHXEpRfRO7LOJGWs5waZcOv0eVJIScDDkltitFO5SZF X-Received: by 2002:a05:6402:b43:: with SMTP id bx3mr720465edb.347.1603127190737; Mon, 19 Oct 2020 10:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603127190; cv=none; d=google.com; s=arc-20160816; b=BqIBv7m6Ne+8QFIa5LPS5u1h2HWNyEM7MxkmQg5DtdHNDaiUBq8k5LWEp5dMz5cCWd DknbsQ+pEMNx2UGrbBYPpBUsQDGrRFQ1eXO0JO5dumaD7KdOJzO52xXn9B52Ihu454c1 /KD5kuIwRZplgDXPBozVzBS8P0OlCHRZIaD+3eEwAIcv3Y31conlVXNJUpPsUkRxAqV3 SymHzoZa+mShHtO39PWw21PEXjBSkQGY0uF7OA57Uu7wGafXZOB5DXEMBTQqDYqBMTOE +S++PtPB1vjcsB6Yiue49aHIjE1jJPoZFaF9GkEng3KQoZ7aRGLCqTgQSfmOnQNyVzW7 mRdQ== 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=klSXRhsQqqqtry06bZsmSHSzMiP3z7VwD9kbHwXwStQ=; b=BD4X/dFxqxDvrNCDIKm1zxvmh4t8jpKH9J5GmfBFNDvIuudthE1IbDIsebutE3e/xQ fuSVFVE7aw6mrflGAVcewvsW0XKi7piGvAtSkLQAd1IK/y2qQ2kaOOBj+2U+tnPSGgxi MaCpHXMf02Ug5ERKY6CzGREJfFIVwtM+K5SKnEqAZg2HIPeW8FzFeKbHwpERLTJysr1N w4ZH4MTgRnarDS39EbMFI2ucAFYInURTeRkbEoZ3IA3ZO70iTClmuxqQhNSvk5ksVcQr NmGibH15ZRA+5rmnAqYfjj1/b3b8oQQBeqizEmvp9IUiqFmwN/iFed5SHLuRD4BaRo+o LBRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YJmbtEm6; 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 rn19si331408ejb.340.2020.10.19.10.06.08; Mon, 19 Oct 2020 10:06:30 -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=YJmbtEm6; 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 S1730850AbgJSRCm (ORCPT + 99 others); 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 */