Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3378175rwb; Fri, 30 Sep 2022 02:41:46 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/+5bNCmjhCyPUgv73jCGP0rYb7Q/p7zZkp1apR80vkDLB49nm0DfE548SXv8/bvmZuBT4 X-Received: by 2002:a63:ff55:0:b0:438:fa5d:af36 with SMTP id s21-20020a63ff55000000b00438fa5daf36mr6835257pgk.533.1664530906075; Fri, 30 Sep 2022 02:41:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664530906; cv=none; d=google.com; s=arc-20160816; b=wRrLLIPSI+KBWbp84LrlmbcYhh3BygLSjjgzRti6TmCnZCkMqdluxkaWETrZHlJ7r/ aldhXV9ZU/ObaTvuKaZJFE4xXG4fz4x9xTq8w5VFNhQo+I1b8oq4p/89j7KsO4DjE49j S+jhHfOeIR2l7zK6GWRr8gClvV2HhJhm9HR5clMggioNYnCwWp6a8UqsYI0iHIgnp/lE a0uFbVgzSwWP0CS2m24WNBn3EUsEwr7bYBE6rLlFvHftQ5rh3wVdgplSnEnCL5ROD/3A qID8LiM+aiS82HFPO/gZLc48uUW11RQ+k/3BKQVJQ+/S/9iE/4mtNU7wRvNeqvwmlSGX fUkA== 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=1tKHQN/65I/Z+WmW6EJaXxIjYTWVygLq/UKPukob644=; b=xuDgn+U0FH1qUvuIx+9vZYaaV3h+mXMbqBZtlQVZIMV3aaGosn7S2yA9tuy2vVPwQO djdwz9274sCp38FjIAnUlpeoUlge9S36GtaWpt8SwtqcKfece9zJnf7f6KB32SqospbF Ojj0u+17mDqFvWpfv+dpFPC2WZ1uUMlL+ZJhZiO9NljDojliQEhc705kiuBhAlR3I8Y4 jChZ5yJxf7KIbvwKcU1k8nA4AWT7Y0f6/AjYX9Hsty4sjjU3FLHjD5uioyM8cdB4IIdU gOY5EO2TD901l+w3m2nfaKgbpG6X1zQ8nSMNEAemFXtwc70zP4znHz1bgjt+XGF1PtzT EqJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uO1lmF5+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=nvIZ0ejk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a631942000000b004340afa4acasi2487837pgz.388.2022.09.30.02.41.34; Fri, 30 Sep 2022 02:41:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=uO1lmF5+; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=nvIZ0ejk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231521AbiI3Jb4 (ORCPT + 99 others); Fri, 30 Sep 2022 05:31:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231440AbiI3JbX (ORCPT ); Fri, 30 Sep 2022 05:31:23 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C5DACAF84; Fri, 30 Sep 2022 02:31:14 -0700 (PDT) Date: Fri, 30 Sep 2022 09:31:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1664530272; 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=1tKHQN/65I/Z+WmW6EJaXxIjYTWVygLq/UKPukob644=; b=uO1lmF5+VJHlorhWPpeQsrY1Dqu5KhMXbQ9LyRNounc4jIZo1BSyczi6oxg3zHqmBfJFdy BpXzjHFQx4T+ASIxcY2T8E898SckXKDCNnAKnkSDRcEeSg/pucVXY6GgUt3z0vPj9KJR9L BFOTxEzg2Vq/WAPFHU6GqSykwTUHVc2gSzcUfZPIRjHj3lF7DtIrU7saRbDw2K3ud5lcn4 IE+715+rYOLfwfU8x7JBTKduQGciaiKpU2hWXuKYHD1dqpWncwfhJrIbE2ax7SANGcD60K WAV5vVXMGu45gHRZQOSyK0zFTrDmEpmFPoxVn7I2i4uQQYxlS0nooUziC1B30w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1664530272; 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=1tKHQN/65I/Z+WmW6EJaXxIjYTWVygLq/UKPukob644=; b=nvIZ0ejkzRmIccyHikSPpnpgs605SGv4Bn+k34L/jxzi7y+3gZFaKU/CLkb+mAGA5mOvUy 1q9sihLUsuVEVpCA== From: "tip-bot2 for Ravi Bangoria" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/mem: Introduce PERF_MEM_LVLNUM_{EXTN_MEM|IO} Cc: Ravi Bangoria , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220928095805.596-2-ravi.bangoria@amd.com> References: <20220928095805.596-2-ravi.bangoria@amd.com> MIME-Version: 1.0 Message-ID: <166453027081.401.11135130150980013880.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 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the perf/core branch of tip: Commit-ID: ee3e88dfec23153d0675b5d00522297b9adf657c Gitweb: https://git.kernel.org/tip/ee3e88dfec23153d0675b5d00522297b9adf657c Author: Ravi Bangoria AuthorDate: Wed, 28 Sep 2022 15:27:51 +05:30 Committer: Peter Zijlstra CommitterDate: Thu, 29 Sep 2022 12:20:54 +02:00 perf/mem: Introduce PERF_MEM_LVLNUM_{EXTN_MEM|IO} PERF_MEM_LVLNUM_EXTN_MEM which can be used to indicate accesses to extension memory like CXL etc. PERF_MEM_LVL_IO can be used for IO accesses but it can not distinguish between local and remote IO. Introduce new field PERF_MEM_LVLNUM_IO which can be clubbed with PERF_MEM_REMOTE_REMOTE to indicate Remote IO accesses. Signed-off-by: Ravi Bangoria Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20220928095805.596-2-ravi.bangoria@amd.com --- include/uapi/linux/perf_event.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h index e639c74..4ae3c24 100644 --- a/include/uapi/linux/perf_event.h +++ b/include/uapi/linux/perf_event.h @@ -1336,7 +1336,9 @@ union perf_mem_data_src { #define PERF_MEM_LVLNUM_L2 0x02 /* L2 */ #define PERF_MEM_LVLNUM_L3 0x03 /* L3 */ #define PERF_MEM_LVLNUM_L4 0x04 /* L4 */ -/* 5-0xa available */ +/* 5-0x8 available */ +#define PERF_MEM_LVLNUM_EXTN_MEM 0x09 /* Extension memory */ +#define PERF_MEM_LVLNUM_IO 0x0a /* I/O */ #define PERF_MEM_LVLNUM_ANY_CACHE 0x0b /* Any cache */ #define PERF_MEM_LVLNUM_LFB 0x0c /* LFB */ #define PERF_MEM_LVLNUM_RAM 0x0d /* RAM */