Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1665892lqg; Sun, 3 Mar 2024 22:53:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWwrY7opJKoM+MYf3MYv2VrJUUWnTxRuhMrnDOi4RFLKhRhjJkLn9pazDtxPCMwO/nL1q9HRrpUyxwZxDEkz+DgB5iTI69sW2AKRhPv6w== X-Google-Smtp-Source: AGHT+IEx278qYqSzCM5+2UcGch7YnVE1NWB3AcmVN9fUAIXsvAdPChSsbjaW5YjZAIGneiViIEwB X-Received: by 2002:a17:902:e78c:b0:1dc:fae0:9073 with SMTP id cp12-20020a170902e78c00b001dcfae09073mr4501058plb.32.1709535195167; Sun, 03 Mar 2024 22:53:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709535195; cv=pass; d=google.com; s=arc-20160816; b=qtggX4M72I5u4X2c11BzUoc0Sr90c5J4FGiqPEvcw3TalnG1T99MeBl23car57qgR1 l97TS+OAYDH0IRpSL1OB7aLBAueNxpnHObpVBpxOBeCymLJx/zcfbvb9w7j5TrZG31HV 81eWytWoM/lCy2i7KydqrPzPVY9xzhY69M4ElLZeg6ajwbXxmaibKvFoYUhVUeqtzroQ ZgRVLvtv4313q8/w+LoYJwy8CzqQeag3sDu3agWS3hRJbzby4WV/gVXPTlyzNGVixtG9 0dN2ZSTREDWvS5Uy7QTrD+9L1IH2jkh2x8omHv9/Oujpsy2PfK16y+g34lY+FW9pdmJs BQJA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gfomRvH8ULPC5eeUCXao/k9/srrLuDto1N2pX2K7uu0=; fh=2FD07xZ4Sd0s6g70oXT6isbobwtogwSO5IQIdNuIIEI=; b=kx4YNeuG9OQp24Jx+E/62zQD3bSZEBSp/XcTQkrKW7tzwA90SCrGbvnEmERxzz4Jj/ /SR5rqCwCDuhgaoG+SlNMfW5Dv30Jz99rCeaqS7+EyZ30ZZ84hhaBhQLcM3ehghCrDs6 9f+V9Eanv3gf5s82o+vGD22Ed2V6JNkFuVejdmwBav1vnUFRG3XofLgSf36M5xRPU8kI Z3RaD8jFjjmmrMm02etjKmUNLBDsSLYtLepHLVrEm7LBIYJCTBe+x/WE4fnkLh9rYYK+ 9YeJJEo9Twx0PMxUWNQBXftnoSx05yWgdWDny98cxjKaXFuJy4Ss7dLnR9jDsvYqx+kr AhnA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=ATPZWgAh; arc=pass (i=1 spf=pass spfdomain=shopee.com dkim=pass dkdomain=shopee.com dmarc=pass fromdomain=shopee.com); spf=pass (google.com: domain of linux-kernel+bounces-90095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l3-20020a170902f68300b001db81819d15si8005796plg.264.2024.03.03.22.53.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 22:53:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=ATPZWgAh; arc=pass (i=1 spf=pass spfdomain=shopee.com dkim=pass dkdomain=shopee.com dmarc=pass fromdomain=shopee.com); spf=pass (google.com: domain of linux-kernel+bounces-90095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B761B28103C for ; Mon, 4 Mar 2024 06:53:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C75DD125A6; Mon, 4 Mar 2024 06:52:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="ATPZWgAh" Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8E3A611CAE for ; Mon, 4 Mar 2024 06:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709535179; cv=none; b=d98eXMfZzZIFglga/rHY0XRRRnWTcIhsj+XD5ZMruX405cCTFlXD9U9t4RdKk+/zuJe74aoZvkFY5UG9hyEZp5e6bsxno1YUOIIfasmemEFyJggJdphm10Un0gI6oMWDGE47ldOKyUwE9RmWFme5A+OQgczg02gt0Rwcvu3gBvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709535179; c=relaxed/simple; bh=MA0DxG8bRrDPES7N5MFpH/L+LhBYNxe9zPtGQO6dSek=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=b/rmX/qSCaTf6zbRwPibTRbIrNlIHq33M2iB4aAwfMph+3rFe3xnILNt5iLILXSQp+C+ehKfNX769jOWnohXIAvrm/b6qUCVXowRxwzq57vPml7PpJENUZmg+hQ/XD6WIzjR+DFWBDO5PXvcfsUWJMJ3HRbzsXSKl4R3+jutFGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com; spf=pass smtp.mailfrom=shopee.com; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b=ATPZWgAh; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6de3141f041so2581359b3a.0 for ; Sun, 03 Mar 2024 22:52:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1709535177; x=1710139977; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gfomRvH8ULPC5eeUCXao/k9/srrLuDto1N2pX2K7uu0=; b=ATPZWgAh3Zoh1ScahENVK7XPylXN2KJ0nzdLbOKo7Tu4+Sn5FvteqW06nvepzL9eYZ i5sZN8IK0JBgnBpDUbaoeSEh4cCedm/uC0kEHX0Sr8xB3xQiT+VAAQ+A8GolC4WdfoZL cRLHEAXPGLit/nggWrsxb1QBLHCiyXEmZToeAIVcNFpw/bf58CkXTQVLJ+Sgiz930xGP gNvcZNY/NneSA5Bh/YGefLsMwYFc1fYpqz7zPv0gRhKAwVu8MbX26vXdfl4AFSnaur5K vJcT6hS3dp+tiqnDwUmoa1D462+zyUo6+zXaFT70ryGEdneD1CFWDQFY6kXxYlnRYCRm JVpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709535177; x=1710139977; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gfomRvH8ULPC5eeUCXao/k9/srrLuDto1N2pX2K7uu0=; b=Bk9L5ybyK+U5yevNcuZMQa8/pgUbewnCiZGylJ2pmvSrAzyftwCxIs+vMHulUqrryc ohiiyHbWI88EZOmu7T5r4CI6+Qcd7WBvKWDUPB/eOqL5jvC99MhPqMK/a+IA46Ol7bmQ G7Ia+gio9H14vWODD5CvglVX8XCa4/yNflMjQoFY/W3y07VILWxrKTvgE3Z2ZFH8sGNV ppCdSfTRGpVDtvbiu9j9ZNqOeVQcb2PSqB5/tidtxkh+dzlRusreRTAV3DpQVypg5jkX pZcQcVjtYSPPhXOrcuu4GakNToHxDUrkUYPyjPJWASQ+b4JYLCQyNfxxhVUYLLRhxOCC arqA== X-Forwarded-Encrypted: i=1; AJvYcCUFJhA1Ebp4hrIng76GstPxiq+k+zCRvPk75iWjqIOkRihzG2Cjyv/LTvn4y1IWuXSwzQj2xxDZbRzzy3UB7I/3C6WiUejXv9XOGNNp X-Gm-Message-State: AOJu0YzwJwRf8k8FJn1/MLuCY6yzIBZkyg42y51ZTsVdEHXL7SyaP3R2 20h5r5yI3fsI934VubY0P7V2rwX2wTK/PEDTrdnHzuMKBm0UvVa5fXGoCLuUF9E= X-Received: by 2002:a05:6a00:9294:b0:6e5:56b5:606a with SMTP id jw20-20020a056a00929400b006e556b5606amr9211060pfb.11.1709535176943; Sun, 03 Mar 2024 22:52:56 -0800 (PST) Received: from seacloud.vm ([143.92.64.20]) by smtp.gmail.com with ESMTPSA id o26-20020a056a001b5a00b006e4766d31bcsm6554740pfv.184.2024.03.03.22.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 22:52:56 -0800 (PST) From: Haifeng Xu To: reinette.chatre@intel.com, james.morse@arm.com Cc: fenghua.yu@intel.com, babu.moger@amd.com, peternewman@google.com, x86@kernel.org, linux-kernel@vger.kernel.org, Haifeng Xu Subject: [PATCH v4 1/2] x86/resctrl: Rename pseudo_lock_event.h to trace.h Date: Mon, 4 Mar 2024 14:52:35 +0800 Message-Id: <20240304065236.281877-2-haifeng.xu@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240304065236.281877-1-haifeng.xu@shopee.com> References: <20240304065236.281877-1-haifeng.xu@shopee.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Now only pseudo-locking part uses tracepoints to do event tracking, but other parts of resctrl may need new tracepoints. It is unnecessary to create separate header files and define CREATE_TRACE_POINTS in different c files which fragments the resctrl tracing. Therefore, give the resctrl tracepoint header file a generic name to support its use for tracepoints that are not specific to pseudo-locking. No functional change. Signed-off-by: Haifeng Xu Suggested-by: Reinette Chatre --- arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 2 +- .../x86/kernel/cpu/resctrl/{pseudo_lock_event.h => trace.h} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename arch/x86/kernel/cpu/resctrl/{pseudo_lock_event.h => trace.h} (88%) diff --git a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c b/arch/x86/kernel/cpu/resctrl/pseudo_lock.c index 884b88e25141..492c8e28c4ce 100644 --- a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c +++ b/arch/x86/kernel/cpu/resctrl/pseudo_lock.c @@ -31,7 +31,7 @@ #include "internal.h" #define CREATE_TRACE_POINTS -#include "pseudo_lock_event.h" +#include "trace.h" /* * The bits needed to disable hardware prefetching varies based on the diff --git a/arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h b/arch/x86/kernel/cpu/resctrl/trace.h similarity index 88% rename from arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h rename to arch/x86/kernel/cpu/resctrl/trace.h index 428ebbd4270b..ed5c66b8ab0b 100644 --- a/arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h +++ b/arch/x86/kernel/cpu/resctrl/trace.h @@ -2,7 +2,7 @@ #undef TRACE_SYSTEM #define TRACE_SYSTEM resctrl -#if !defined(_TRACE_PSEUDO_LOCK_H) || defined(TRACE_HEADER_MULTI_READ) +#if !defined(_TRACE_RESCTRL_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_PSEUDO_LOCK_H #include @@ -35,9 +35,9 @@ TRACE_EVENT(pseudo_lock_l3, TP_printk("hits=%llu miss=%llu", __entry->l3_hits, __entry->l3_miss)); -#endif /* _TRACE_PSEUDO_LOCK_H */ +#endif /* _TRACE_RESCTRL_H */ #undef TRACE_INCLUDE_PATH #define TRACE_INCLUDE_PATH . -#define TRACE_INCLUDE_FILE pseudo_lock_event +#define TRACE_INCLUDE_FILE trace #include -- 2.25.1