Message ID | 20240221092101.90740-2-haifeng.xu@shopee.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-74390-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp923922dyc; Wed, 21 Feb 2024 01:21:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUVCW1YmoCOzomGZyEYkt5ROvmiFTo707B+rBHx8nVYAZaq0G6JSofqeanMvo4iIhDjd3PddqLFIdGdXCOZKQwpNN3nzQ== X-Google-Smtp-Source: AGHT+IFqGyPtYi0KMagVr6l8yZ2pvxYRZgZulrxoUe1bmePIVYP9SO6CP39Punh6/vcv+AQOarrT X-Received: by 2002:a17:903:110d:b0:1d8:b51c:6b79 with SMTP id n13-20020a170903110d00b001d8b51c6b79mr21039252plh.7.1708507314517; Wed, 21 Feb 2024 01:21:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708507314; cv=pass; d=google.com; s=arc-20160816; b=II/LYuqjG7ZCYtwLZeqwXAGLmn18J3FS4yAP2Ep65mI30P2QeLkF2H8T/mi7Gy07oU sJXGhzFC8d1Mr2YocjO9usqvbN18H75He1uEi5sTjnpW/iOz5LibJKBZY1yVA9eidVun VIEDWUaFNuiZeenHcucJDVmC37I92YytemFV8bqVdogzZDgV/LUyiQWBAv4j6DM+6sk4 w1hXG7UrVhefbKNAy9Whu4XUuGAIREUvEesf4pizZOQ+N/ltvaV99FB9WyBG8pWXZdcV IWrNyNhsYTePUP3dYQUVQiGgoerG5qz/Xgf9i+D/D5Oc0GoiidHWbDEN7yVpeJdBoWQL Qlvw== 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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74390-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=shopee.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q9-20020a17090311c900b001db3ec8503asi7947116plh.418.2024.02.21.01.21.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:21:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74390-ouuuleilei=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=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-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74390-ouuuleilei=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 578E6288B98 for <ouuuleilei@gmail.com>; Wed, 21 Feb 2024 09:21:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 595383D965; Wed, 21 Feb 2024 09:21:24 +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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <haifeng.xu@shopee.com> 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 <haifeng.xu@shopee.com> 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791499766004023880 X-GMAIL-MSGID: 1791499766004023880 |
Series |
Track llc_occpuancy of RMIDs in limbo list
|
|
Commit Message
Haifeng Xu
Feb. 21, 2024, 9:21 a.m. UTC
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 <haifeng.xu@shopee.com>
Suggested-by: Reinette Chatre <reinette.chatre@intel.com>
---
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%)
Comments
Hi Haifeng, On 2/21/2024 1:21 AM, Haifeng Xu wrote: > 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. Please do stick with imperative mood [1]. For example, something like: "Give the resctrl tracepoint header file a generic name to support its use for tracepoints that are not specific to pseudo-locking." (Please feel free to improve.) Reinette [1] https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#changelog
On 2024/2/24 04:00, Reinette Chatre wrote: > Hi Haifeng, > > On 2/21/2024 1:21 AM, Haifeng Xu wrote: >> 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. > > Please do stick with imperative mood [1]. For example, something like: > "Give the resctrl tracepoint header file a generic name to support > its use for tracepoints that are not specific to pseudo-locking." > > (Please feel free to improve.) Thanks for you suggestion. > > Reinette > > [1] https://urldefense.proofpoint.com/v2/url?u=https-3A__www.kernel.org_doc_html_latest_process_maintainer-2Dtip.html-23changelog&d=DwICaQ&c=R1GFtfTqKXCFH-lgEPXWwic6stQkW4U7uVq33mt-crw&r=3uoFsejk1jN2oga47MZfph01lLGODc93n4Zqe7b0NRk&m=JoQ5pMB6FFBeGHFDWQYyFgKF2Y5VYhBeykX4853MHrTi-O0Jk3H_K9bh3NaxwLRx&s=482No-jEnFTObHttNwp2LTS-Dc3cP5jQOhL2cEj77MM&e= >
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 <linux/tracepoint.h> @@ -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 <trace/define_trace.h>