Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2246566rdb; Wed, 21 Feb 2024 01:21:51 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX4cWDPfakgG4EnfQj89vnNNC53qFS6v/Jo9Lc4hAHq9j/1EvqvKDwm0HlCgOtqLIQuT5nTo1AZJCzdgIc3C+hlpd8I4IRggtbePIRmGg== X-Google-Smtp-Source: AGHT+IFvCWYXha6JpcGR8fnwetp4B8RLE5sABzSZPMCrID5mPIuO98f0iee37iW8SSnsDb9kXEHh X-Received: by 2002:aa7:d746:0:b0:564:b832:ba90 with SMTP id a6-20020aa7d746000000b00564b832ba90mr3548762eds.33.1708507311230; Wed, 21 Feb 2024 01:21:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708507311; cv=pass; d=google.com; s=arc-20160816; b=ymc0fDK38lCXFcP+2/NnffWWB6dT8IeTMVtCFrrv6B63unV1fUhjX+hlveLDIcXyNE 3YjqabAFiSH7QCD5Gium7u7ynjqrVFn/chT2Uc6P3Rrbj4nTsOs6f5aa8Oh94LGvLsNN 80PzfLG1a5Tnp+Y8f7wMS6z1nCi3djQHHzvQOQnB6HqF4YBCwlyGoHu2obI/COI8V9gd AswNiO5P3V1XozRPKNcg6yUho9v5lsWuB0Fbr7W3lWOA/0iQSX5GyG7ZjCFfuq+Vzbj0 ksN/updYfz/WsyV5eU75oIOqkM+Y5aYxk1tWibmna09NGcEhv+tmqh0r26FhXOpI9BmZ IOyA== 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=2CjEzdhpZHdcVGRJEfgybjakx/XonNKkgn7ygZfYQWg=; fh=e2zpe90tvB0xNEmH+g8cbZ8aBoCxfWnHDQqFudXOqIQ=; b=DDtiW3gJanSOwr1+/ARXxlAxStmxPTcHzB3yJAFSg5abnPlrMsIBZYr/zsUH1cD9gq +EzarsVf4ND2ZvOZrv33ScHTMo7NynZCTIEaSaH3ODDRF/R6UnU99rYwD2PwI+CSi1kg G/LRFujkPC2iI7m9MoxEsUGQet6rLe1lw6FKBnoYjcpmyeB5Omr3LF+2Bw4iYysdp7Pi Wujnj09Rex4R/wdqhnqduy2ztmWhF1C766AkJ/n+NTSjbS5EiJZSj/1W3ShsEZzT/8GE 97n+8Renf4idtjTphoz47h98JzCgzzqnB/RFAIi8Sekw5Z7q7aaINnhKGFLb7OiyPYzj juTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=ZJNEdJ+Z; 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-74390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74390-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id i30-20020a0564020f1e00b005644017fd06si3592447eda.351.2024.02.21.01.21.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:21:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=ZJNEdJ+Z; 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-74390-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74390-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AD3BD1F2171C for ; Wed, 21 Feb 2024 09:21:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E00A3D570; Wed, 21 Feb 2024 09:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="ZJNEdJ+Z" Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 1C46B3D552 for ; Wed, 21 Feb 2024 09:21:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708507281; cv=none; b=HMxDbHxKbU/o3kN2+e5WzZr2jgsCv6SWv9tAirgAsAISbLxim330E1lRlQHWBN8Y+xWwLyq1GzAwtxGKgBf3F5e98zMQDuFQevJ8sp32P+l+HtggkIkWwClyp9B0BvIAC45xt6pN+8eIAmp2puJTYAsGAhSC2th3M/yA+xQjVVI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708507281; c=relaxed/simple; bh=XHF39z07VXmChXD7WwSbh0F2Lcy03KFOlyCamZ/p3Uw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=OnIRnqiIevNHsakGKRXBRRouJpnenXK9qFzZudxdijijSH7wYNwmr0vpPGZGkSza58bItUAAyKgUUruDa9oUr/kC/WJ1M8UrHmr2nokjMMIK12zwTwZ7pJcr15eMAcimlaUhKMcy0SVHa8AaBh1z+d2QZWwGaXJhJ8i5iJnGPwg= 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=ZJNEdJ+Z; arc=none smtp.client-ip=209.85.214.180 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-f180.google.com with SMTP id d9443c01a7336-1dbb47852cdso2852935ad.1 for ; Wed, 21 Feb 2024 01:21:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1708507279; x=1709112079; 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=2CjEzdhpZHdcVGRJEfgybjakx/XonNKkgn7ygZfYQWg=; b=ZJNEdJ+ZqLlwBlX3mivFaho86B38TGAueRckoUHh2iUUQdGj4/DIKyX0MueFsds1A2 SkbpeVGGM+zvSXofL+Kv2kBhDzcNsRoWYP3bbW4LS415fZIpWzNgT0GzPWU42GYAulTs Bdq6NGBTVdxjSPVSa9m0HCtSYZvqYO7uPighqyUmCJVGON8Fs7dWUGfzaxKrRiocXOhv oTnaQWJ4MvCH0FuCf/1/8Y8sy+8TMcotLIioc/BubMdCMOD4zse1eHuvShzK0DuCKCod mjZV90+H4pJTmZHqEcADB1XqP0s9seBFVGiDvC89UnI2nuYHVObxtGzXHn7MKIIB8g4S cesA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708507279; x=1709112079; 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=2CjEzdhpZHdcVGRJEfgybjakx/XonNKkgn7ygZfYQWg=; b=mkC0SxPLiJ8Yt3Wgz8KKkhXvKC2ns2pA8yTBo46B8cIIEOIuL5ku/sycYFF9K4NkkG 9casCVbv1WnWtPhCPg3uUtLNFGRbsjr81boInR7v9Dvp9s03tQEduIW4TYXg/brTPCaU vvEAkXk9S1b9ttPk2kycqz22uj6u3LGwfnwIn+/ngLOXjKmd954wrF3WQj3LDC/O+rqg p2LsatfsL/PUR8OlkAozufmvVXhA/5bP6qyCs9LItPaGnS+ZSpE13x37jE1FxoDVft53 F9KYKhob67wmWBy9mVjbVkpiHtUT6nZmAmW5ly1+yRqamnqZ75b+IqHKxADDNp9lD2EV BedA== X-Forwarded-Encrypted: i=1; AJvYcCXI3BUhf48uAyluMqHx6eb6sQDE8ZSq9OWcMPdwUs4NvztN3Zi7cIVuyM9gJrQinfADZ0iFSd2tntv6+0kVRGhzIWOOFvTFbzNqGjGb X-Gm-Message-State: AOJu0YwOK97DfmI0Z3Ek7Rxrkg5aODmK58FlH8IrUX3q43MbijAoMuuW 9KYnty0lDUFxfFhrfIkTFzbVBgB7QqIb4j0/vRvsROg/c2Zl9mIUA5OJjulpLag= X-Received: by 2002:a17:90a:128d:b0:299:1f93:237d with SMTP id g13-20020a17090a128d00b002991f93237dmr12996848pja.4.1708507279512; Wed, 21 Feb 2024 01:21:19 -0800 (PST) Received: from ubuntu-hf2.default.svc.cluster.local ([101.127.248.173]) by smtp.gmail.com with ESMTPSA id y13-20020a17090aca8d00b002995babd9b0sm8461290pjt.10.2024.02.21.01.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:21:19 -0800 (PST) From: Haifeng Xu To: reinette.chatre@intel.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 v2 1/2] x86/resctrl: Rename pseudo_lock_event.h to trace.h Date: Wed, 21 Feb 2024 09:21:00 +0000 Message-Id: <20240221092101.90740-2-haifeng.xu@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240221092101.90740-1-haifeng.xu@shopee.com> References: <20240221092101.90740-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-lock 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, the new tracepoints should be placed in the same header file, and the header file needs a more generic name. No functional change. Signed-off-by: Haifeng Xu Suggested-by: Reinette Chatre --- arch/x86/kernel/cpu/resctrl/pseudo_lock.c | 2 +- .../kernel/cpu/resctrl/{pseudo_lock_event.h => trace.h} | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) rename arch/x86/kernel/cpu/resctrl/{pseudo_lock_event.h => trace.h} (86%) diff --git a/arch/x86/kernel/cpu/resctrl/pseudo_lock.c b/arch/x86/kernel/cpu/resctrl/pseudo_lock.c index 8f559eeae08e..e7bcf8287312 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 86% rename from arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h rename to arch/x86/kernel/cpu/resctrl/trace.h index 428ebbd4270b..495fb90c8572 100644 --- a/arch/x86/kernel/cpu/resctrl/pseudo_lock_event.h +++ b/arch/x86/kernel/cpu/resctrl/trace.h @@ -2,8 +2,8 @@ #undef TRACE_SYSTEM #define TRACE_SYSTEM resctrl -#if !defined(_TRACE_PSEUDO_LOCK_H) || defined(TRACE_HEADER_MULTI_READ) -#define _TRACE_PSEUDO_LOCK_H +#if !defined(_TRACE_RESCTRL_H) || defined(TRACE_HEADER_MULTI_READ) +#define _TRACE_RESCTRL_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