Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp723257lqt; Tue, 19 Mar 2024 01:31:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV28fWtr0iRc7tjS4eJU8WTPvkQfztQAxHGzvyMbwXBlp2xM6w/a3kLcWRPpLfCiqdvR6TRx9fO71AfGfBy1HfFVEww9/s9ogBh1odkaw== X-Google-Smtp-Source: AGHT+IHC5MKbPjFtyuNmOvtjTg8zB91gTuG/t/aMt27oQqixyszH9QSGPnoeQwNttwyNUYJIf4VU X-Received: by 2002:a05:6a00:1804:b0:6e4:fddf:c1d9 with SMTP id y4-20020a056a00180400b006e4fddfc1d9mr16275663pfa.27.1710837112666; Tue, 19 Mar 2024 01:31:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710837112; cv=pass; d=google.com; s=arc-20160816; b=BSOP3Rqr7ozUotxBF2Bd1ZzH2MXAd5z+VEiyjXi3ygiQrcF8X+p0FsfZOTjwgqS4HF VUc0FcaVUESbfu1sO7JPBTee5arEN/CaVJOOwqTF4JZNlhXJRDeVodXGCG/sKnIGWp6F TXd77cexIgvpgIKb0mZOHuKsXta3mBO9ExF/IAccAHZVkc6MgmPy/lwcmbh8iybtR0kP mf0AI6HWO9ruBscEHlduwzAoGYaQJy7RruBQIah8xRzZjUpK8nc8qRYGySqZgeIgXdZx 0/HhycFPqxZw45cRjS7GNdpLs4eSqgZXHxtajYeSey03RbY2eHGDh4RsQKcDNz4lB7Y3 3PBQ== 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=uhlePUyQMcGbwxIcmHkKRTvaFKRtl8DibzkuUhf5pmI=; fh=y9iYw09S9gVffYbprbjysWcbfNpjkkMVRXDRTSqRWh4=; b=prDY7sIkbOPReSfkOTm6XLPvbDf4gE5SQ7iuCSR7GQbKsbnFI3zYAmXYvC0mgjiOBN fpTQJa2sL3BgmLy3dGni0NmmjMaLzpgUH9TJty9vBuKhw8yT0uEHDcuifWutzsIJuEzt VNUUCq53HHB5UP8abLCDfhJKvPP1giMKZ68csv6Fo42y/6R1slwywevk8aSjyECZ+bUo Wcrz0evuL6/FEG3QRTnsRvT+yTaGQdHnJcmhtS8sHb8ND6IKRgKYDfRgTZ9gqwPd5gIl y1seHNXW0YiDN6A09GFQu6hU9h/tPHZGBJoexiIi+xw1LLOhNsQqJseHwspfj3mJu0bR SgHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=UpSlbMZ3; 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-107247-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107247-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. [139.178.88.99]) by mx.google.com with ESMTPS id o3-20020a63e343000000b005dc85506e66si9827299pgj.402.2024.03.19.01.31.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 01:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107247-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@shopee.com header.s=shopee.com header.b=UpSlbMZ3; 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-107247-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107247-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 5C4B628265C for ; Tue, 19 Mar 2024 08:31:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EE9F7BB1E; Tue, 19 Mar 2024 08:31:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="UpSlbMZ3" Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (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 F050664CF6 for ; Tue, 19 Mar 2024 08:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710837073; cv=none; b=fwwQesuqW4Eras5/8mehmA+skXVNcfjsjiaNtjjfXP34/SLyi4oN8f23ZogyqmQvpM24o0dgWptSnIMYKLJKaa25r6nBKD1mh+fT+EMiymS/VNtDOa17RegKCtcfJArJCh6/Xb6kkCnURT9Dve58z9pbNVnJxjrwy9hQiWZEPD8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710837073; c=relaxed/simple; bh=fmOWfAiXn5JgIfZTOxYLm6UhsznWCAvx11y3kFTcU98=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HyY0tq61aFmUEyKhQKADW5dHjmFBZJ3pET+9ZnKtzhVtG9Zepk/5pV/FWx8T+7Cpe1H7JwfavaXXk8f+Eh9+Ek5rf0QmVs3MaGhwXDp1Ez48kWIyhd0fBOEuPGobe23U1Nz5dMu1Kuaw9KnC74JpKass/FZBorwzQQKk9eic3iY= 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=UpSlbMZ3; arc=none smtp.client-ip=209.85.215.171 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-pg1-f171.google.com with SMTP id 41be03b00d2f7-5e152c757a5so3210770a12.2 for ; Tue, 19 Mar 2024 01:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1710837071; x=1711441871; 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=uhlePUyQMcGbwxIcmHkKRTvaFKRtl8DibzkuUhf5pmI=; b=UpSlbMZ3bsa73I1F1Clvrs9HnTxaAGsG5tUOy35eO7XEgAUitq9HGPMQWY/6dFwGwa YRI0kuSIp3fgOJ7HJklgcDU+wnucZQJeoFANQzBuxG1ldzwL5TzpKcrdJ9LoLvy0hg9w +FFexWnuP9OkDTqSVgy3yQvZUtnr5FYiQph7WjpYsIxZ2B5y9nz+wNed17ur3yst2H65 UZTYRhQ8hQIF0jxB+6jCm4mo6Ad178ttFi5oSj2L3R2KzhZmnsmIIhYmAWwnAkXw5gMw CjvwhsX9KYSYuof7d/bQP8opl4EoIceUypee670YhoVUaYlQ3FRI/N4OrbynecLezWsB uU2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710837071; x=1711441871; 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=uhlePUyQMcGbwxIcmHkKRTvaFKRtl8DibzkuUhf5pmI=; b=kWb01AjABxPHTjVBj2LVEUHqinWRdJEWC5B7qbkzGHwBmDUcWaj1a0FwjTqNBoeHwv dXhIbOiAN9fQjpaw2OLblCdWZ4cD2xc9ECMotGunMltBbjfmJBztbIA2oA/H5FXWu9Er GbWqSflN1WEkf/HSqAKuoK3phzIW16DlvI91QD1i/CS7jn1lp5s84yLq99kOX49miu+y H+6e7E4mKEMP/h3VhmHfqjA9rHN3NYYeOAMSl1hLOoyFQ1hyjF8iRhTkpixRD1ToRiFS jG0lsY8291N6VQc3UpSPKwphwzNQv30igN7Sq396JMMmsGudJTBWN9ifRJcJ6sdYYNVZ jx5g== X-Forwarded-Encrypted: i=1; AJvYcCX1LinLJjMJja7kmdTPW7wr9tX+Zi5CMki9VciCmwsYfqSt1ea076gN2UV1LwL8n4X9i6bQExwjT9CanQfu6RkdK4TWvtHrPgzDV9aU X-Gm-Message-State: AOJu0YwJZyS2gJK9VZdY+C85b3ZKTyDB7aXJ7VtLXXDLv373SYRpu7v0 QtRb0G2Lj17QKezBIMJPg+RVjDAX6tthdbIhPBt0aoc/LO/HtbAXhZA3zhzkh/M= X-Received: by 2002:a17:90b:4c06:b0:29f:e024:8f48 with SMTP id na6-20020a17090b4c0600b0029fe0248f48mr456943pjb.35.1710837071435; Tue, 19 Mar 2024 01:31:11 -0700 (PDT) Received: from seacloud.vm ([143.92.64.20]) by smtp.gmail.com with ESMTPSA id k90-20020a17090a4ce300b0029ddd0a6ed4sm9941249pjh.38.2024.03.19.01.31.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 01:31:11 -0700 (PDT) From: Haifeng Xu To: reinette.chatre@intel.com, james.morse@arm.com Cc: fenghua.yu@intel.com, babu.moger@amd.com, bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, 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 v6 1/2] x86/resctrl: Rename pseudo_lock_event.h to trace.h Date: Tue, 19 Mar 2024 16:30:38 +0800 Message-Id: <20240319083039.223088-2-haifeng.xu@shopee.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240319083039.223088-1-haifeng.xu@shopee.com> References: <20240319083039.223088-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 +- .../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 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 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