Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp386871lqc; Thu, 7 Mar 2024 23:42:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV2Kik6qrrkWvinkU5QMHf8YfnnERAMfpLNm7zCuR6n4kExfO3hKWUBEwWmV1QqMSnQyFYKJSO+y6RIM7JxNU7Xu5eMveP9MNNcwl4Tng== X-Google-Smtp-Source: AGHT+IHpl0nV+SxQ59T3EvwXtU/R8TgvdeLPK1NlwTi3TYEOeoSMpYmq/EI6XJCT8Ew8AsfnCkq7 X-Received: by 2002:a05:622a:202:b0:42e:d991:7789 with SMTP id b2-20020a05622a020200b0042ed9917789mr5583746qtx.3.1709883731508; Thu, 07 Mar 2024 23:42:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709883731; cv=pass; d=google.com; s=arc-20160816; b=c2vPBvqDT7Wg2RY+RtANVpRebl3HektnRLXAH6g8Nx73H7PE+FGDEIFIw1G4V4Wiec e1nKSdHvFwew8eTzZtF7GjegyyAjPseKf4zuB7uR+lUCVPxRA6CqvnLsPJ7ciH9N/zeW l7VH1oironUP0cjyvA+GBqPE73OlfkiW25KDxHI6EZE0KwZuff7KUYpESm4LKOnQcGvo ZVC6R1MWyAoHjEdqsfG5pRzH2s9Dr6znkWt3mYjHPbFbB1uGUPiggIUb1clWh77oYCVw 9Axl5Sv44HcOgLO/uDZRHTsjJy/tY2zgglxbzQrrBxv+gX8w4RB+9kQxBcvZaqAlotac 4Jng== 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=nJGh6AYJmsXpKgsCCLuT0LXrBdxb+uVv/uMSFhixDko=; b=pfazahCcj2qznhE2NLDWz2sy1TB+amD68/HvicBmkbhI7qQ1lseky6VWLJ6r3DO0wR fu1HHhDbJg8zkoLhmnYv8uL+Z06g+9pNRIA3TObiUWp2BmD79LXsL7kNw44AfMLN8WIc QS2UnMsrL08uxP5VPqXNoPaj+EbnOE/we1a1tJrdHywt86N5a4dmnJKsGH8tdZv82D8F PCNkD6R6eJWNsClmDrb7pmogoZ0la3SjuykbHA7gGFBIEvR+L1UoFRaAZjpwgUMJ/xzx N+jF5tRE4qaxKxZfo+4mKHrm5Os/d1kkq2FGE95hHPzllSlGhk50ubyoi9MICuxSSJMV Pw0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=MzdQGpyf; 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-96595-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96595-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h12-20020a05622a170c00b0042f2040ed76si2274822qtk.258.2024.03.07.23.42.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 23:42:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96595-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=MzdQGpyf; 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-96595-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96595-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 408AC1C21FDD for ; Fri, 8 Mar 2024 07:42:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BEE4A50277; Fri, 8 Mar 2024 07:41:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="MzdQGpyf" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 7B2FF4F5ED for ; Fri, 8 Mar 2024 07:41:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709883713; cv=none; b=GxoWXzJnmEN6pVUQhdhr1C7Es5RccCzBktX/ieQkzUXlY7ou4RIuoc4Qv2sd1P0f8Ck7orFvdZOJtH0HGsOYHCu1MZ6CtpekgnqRnC3Dd+IYuF81kQUZlnOwcAV7LE82wYy0kFOB8ZHE0EVgcPmfkNbHKa1TniqWcPIthJCpeH4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709883713; c=relaxed/simple; bh=MA0DxG8bRrDPES7N5MFpH/L+LhBYNxe9zPtGQO6dSek=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=u/zLysPeFFaEwsvWFDCivizConWkin49r7ZGcjxoUYXy51dk0O405QaoJKk5fvNtZ5gdg1p8NOn1uGu2SqH+dW6m6u0iT2161TdIBwaelsSWuzUTSZwTdimWHve8Uo+3OgoFEuqpyeFYIVjJiW2Js4tdyzHJj0otaRLQy00FAz8= 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=MzdQGpyf; arc=none smtp.client-ip=209.85.214.173 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-pl1-f173.google.com with SMTP id d9443c01a7336-1dd5df90170so9656635ad.0 for ; Thu, 07 Mar 2024 23:41:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1709883712; x=1710488512; 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=MzdQGpyfWG3haqHticPP3nXd9FeD+A5rNfpL2ABkCGXH3VdR2F5LXfb8phSjSL2UVC d/IJJJ6iS+/mzdXNLVhVT2+YAnrXGUxpQ/SWSsoXU3rfAlAKWO7avnaYRi5BjYXgNG4m sjnyFplbMsn6cnHM1X/9wTAE/LPPIKBHTOD0xLAdeqly9cT3+Z8ffADRzn9mEzMlUEFz tthMB2KIESYPxN+YzSTWNT70/DN34awPAD7EdK8Y7181X+urydc+nbY+3fWjozItXhef 7pWL+rVVO+6b5bTNALuSoD563g9JqOheXeU2+vETw43iSQZnKj9X53DvOqM0R/1rvtNo OHdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709883712; x=1710488512; 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=Evzp8OA2WJoIAVA/zn1htS19ryS+cWG/ZF8SuH3VSbfDDV/HEBOG4y35CDQ88YFpMu U34ePbacDMK8KfqoSOcR+7uFdJWc8kVJmlt+4jm1tbgzUkKwHs2jXxfveUoXxQMNtQqZ SdBS7cTPHNMDAgOqUFhN2BxIdP6RXRcYsg6Dt09nrgiKetMjoSjwSRIFAvJVEqxbhXYu NkV7V3cOjmNKTYpTLsTOd4itEVWxzAzMe3QPuSClZGGqMHKfR/F4OKaNKSjtkR6yq0YW aL3Cp/oXtrdDM7UYsfDLeswGXlVrhye5HugwLdw8G0lF2eplZFJ0A0CMMsHH+PyFzQtR GucQ== X-Forwarded-Encrypted: i=1; AJvYcCXM7EvGWF/bEsLdO6wyIPvuItIGiOTQYsI4APQHHnZLotwnUAOgzoyZxM7X2f7dJ0gvlaynraa9KdhATpAQ3zEvhdzkwSKU+6FSnMy+ X-Gm-Message-State: AOJu0Yxu5ouSW+0ZSAxYrmB6IDUQDmiRgueTwDxJ1JwzC4PZkwElWt5o gixE6GcCMxGXsixY3cHo6Kqu3gCgbbbZAkoRMr3FmrQFzUSwTgDXkKuOxtJzgMI= X-Received: by 2002:a17:902:da8b:b0:1dc:6071:60ad with SMTP id j11-20020a170902da8b00b001dc607160admr5844088plx.24.1709883711738; Thu, 07 Mar 2024 23:41:51 -0800 (PST) Received: from seacloud.vm ([143.92.64.18]) by smtp.gmail.com with ESMTPSA id f6-20020a170902ce8600b001db45bae92dsm15769210plg.74.2024.03.07.23.41.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 23:41:51 -0800 (PST) From: Haifeng Xu To: reinette.chatre@intel.com, james.morse@arm.com Cc: fenghua.yu@intel.com, babu.moger@amd.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, peternewman@google.com, x86@kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org, Haifeng Xu Subject: [PATCH v5 1/2] x86/resctrl: Rename pseudo_lock_event.h to trace.h Date: Fri, 8 Mar 2024 15:41:31 +0800 Message-Id: <20240308074132.409107-2-haifeng.xu@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240308074132.409107-1-haifeng.xu@shopee.com> References: <20240308074132.409107-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