Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp502955lqp; Thu, 4 Apr 2024 23:17:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYYiqLvHA/aNT9VZz0j+r7Fxs7I/KSwQU+CxM+TEBs6XpRTUtY1czd8efbonHBTs0G2zFsZ4yPtPHzGoi00MOvPb/lq6ZjlKYVc3V+RA== X-Google-Smtp-Source: AGHT+IHUuR+ZQX46J0zGblB1dvPzN24z6OnGSAumsDL2vkj1Bk0pUzz6Rmm8898oEXBKdLNyjCbH X-Received: by 2002:a05:6a20:7355:b0:1a7:1e1c:3031 with SMTP id v21-20020a056a20735500b001a71e1c3031mr663746pzc.36.1712297849859; Thu, 04 Apr 2024 23:17:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712297849; cv=pass; d=google.com; s=arc-20160816; b=KB8S6UuHY4me7MCqogLzmhzcQEb+v3bxwsaei8fuBqFmw4AEeMlWFmi5s5CaAKOaTO UvnAYAnSGCoOFv4nmBhrk3+D4UAyaChqcPHyPht6FMzFk19ZoeawC+G7BvaBgreZCeNB xhGG36AHNMASzAYOjVzNYi1yxx5ZzSifevvXSWulxFFCEKcV9ilkAcxTYxiZUprDzfBY a+FEuPatzzpl61yqukcsT1HlIywOC6zbGf7GBs480RJoqLgARS3FIbtO4DyleeFUYiJx iH+iIq5VNCoDd7sYspB5aniOdrx3X/tgFD0XFOgEJTglf4wuHrguw+Vh5SV0qXn7iuko L/2A== 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; bh=Pl1fj+TbSzfW2r8nLoAnsEeUJGcvQxnNOEMN4xvZmkM=; fh=5w1ouSnQepJltuotioeWrfka6spZYxCV2UackS2InTw=; b=AjHj40koVnDnF94oK8Yd+B0t6qifs4qM01B84maKpQh5WyD3EsTIvIMypcaTt+QXmJ TSXje0HF4rvI12dP7PYP3W68qGUbXrDPkXnTHs66OaGKid0kvI9FuHH7O3ppbIb7gWfG T1Wttdk+7SKJU8PzjSMsEHfLNXkpIOb/GJPnajiB8DILP3MYeKrQctt85KoCCqj1SvDj K1uvDcy5hkk7uZTvio8CVFgTHcZKEU2StbZIHmpGq4R5VCdq4x/UzqgDF7AW4Yd0Jn46 y4SLk0k5LoDx+pmUmLcacTsNg6YzFYdVrUdzlM3oCjLcLDI5UuAqdNHTHdw1dRCAl2ns fWJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-132456-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132456-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 2-20020a170902ee4200b001e0d65a7fcbsi757825plo.631.2024.04.04.23.17.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 23:17:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132456-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-132456-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132456-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id ADAE0B23786 for ; Fri, 5 Apr 2024 06:12:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BCE2956745; Fri, 5 Apr 2024 06:09:18 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 306A94A990; Fri, 5 Apr 2024 06:09:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.125.252.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712297358; cv=none; b=Lq/AIjSPy0wlNIElQ4EGJhpT629fKViFiTvsIISMuSZu3KpFu+cByga0xLocPYo8Z93kNtYKrjS6hE1ycKOsg/Y8+72lFBu7FOG7cztiu6f/OChfLcfoUbFCV3463Wqhsix2T47d+Dp9KclX62uoxkshqSIpHQLeGxgUAKuMwlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712297358; c=relaxed/simple; bh=o36KKxNNzRI1ApXBSop+WnIeRqTOalGKAAqceMCAphw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DbG4IZmgFElWp2HK/5yDU5dPMHAEYUx31Qk3Zb9eK5NLsmM6hOd/jhBn3w6xjDdbuTm9RU2JqnxUO8oCRXzHbwr/s7EFR7DPxWbibXKiDjF6pd/opa/ir11EcIfqkllkCerMbXUo5wzsILVS0Al/mm+CnD5KfXrW/JKeBqO9kJc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com; spf=pass smtp.mailfrom=sk.com; arc=none smtp.client-ip=166.125.252.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d6dff70000001748-ac-660f95839088 From: Honggyu Kim To: sj@kernel.org, damon@lists.linux.dev, linux-mm@kvack.org Cc: akpm@linux-foundation.org, apopple@nvidia.com, baolin.wang@linux.alibaba.com, dave.jiang@intel.com, honggyu.kim@sk.com, hyeongtak.ji@sk.com, kernel_team@skhynix.com, linmiaohe@huawei.com, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, mathieu.desnoyers@efficios.com, mhiramat@kernel.org, rakie.kim@sk.com, rostedt@goodmis.org, surenb@google.com, yangx.jy@fujitsu.com, ying.huang@intel.com, ziy@nvidia.com, 42.hyeyoo@gmail.com, art.jeongseob@gmail.com Subject: [RFC PATCH v3 4/7] mm/migrate: add MR_DAMON to migrate_reason Date: Fri, 5 Apr 2024 15:08:53 +0900 Message-ID: <20240405060858.2818-5-honggyu.kim@sk.com> X-Mailer: git-send-email 2.43.0.windows.1 In-Reply-To: <20240405060858.2818-1-honggyu.kim@sk.com> References: <20240405060858.2818-1-honggyu.kim@sk.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 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMIsWRmVeSWpSXmKPExsXC9ZZnkW7zVP40gwtftS0m9hhYzFm/hs1i 140Qi/sPXrNb/N97jNHiyf/frBYnbjayWXR+X8picXnXHDaLe2v+s1ocWX+WxWLz2TPMFouX q1ns63jAZHH46xsmi8mXFrBZvJhyhtHi5KzJLBazj95jdxD2WHr6DZvHhiYgsXPWXXaPln23 2D0WbCr1aDnyltVj8Z6XTB6bVnWyeWz6NInd48SM3yweOx9aerzYPJPRo7f5HZvH501yAXxR XDYpqTmZZalF+nYJXBknrl9kLljGWdH56zdTA+M99i5GTg4JAROJo4s3sMHYS29tBYuzCahJ XHk5iamLkYNDRMBBYtVXhS5GLg5mgf/MEpd7f7GC1AgLuEks6b/ODFLDIqAqcXZXBEiYV8BM 4mvzK0aIkZoSj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jy8HnP50oRYE8uKK3MPMUpwMCuJ8HY78KYJ8aYkVlal FuXHF5XmpBYfYpTmYFES5/UKT00QEkhPLEnNTk0tSC2CyTJxcEo1MDpx3F2kWvVkQoFu4dPq S4ucpTqXWJdf37nXh7dbWL3HWsfwxtdei2iTye6vdVXX2wgWVSpe6fUJy7xZoNebH7kpJ587 /fIH0eMTVt+0vZV+1s+dp+3DFfdK4xgOpW1njuc2cJ/WXHH4XeLsubP4Nv/+4L2pvtEo6g6H WnztlUvqBsKsRs++KrEUZyQaajEXFScCAKFMwPWwAgAA X-CFilter-Loop: Reflected The current patch series introduces DAMON based migration across NUMA nodes so it'd be better to have a new migrate_reason in trace events. Signed-off-by: Honggyu Kim --- include/linux/migrate_mode.h | 1 + include/trace/events/migrate.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/linux/migrate_mode.h b/include/linux/migrate_mode.h index f37cc03f9369..cec36b7e7ced 100644 --- a/include/linux/migrate_mode.h +++ b/include/linux/migrate_mode.h @@ -29,6 +29,7 @@ enum migrate_reason { MR_CONTIG_RANGE, MR_LONGTERM_PIN, MR_DEMOTION, + MR_DAMON, MR_TYPES }; diff --git a/include/trace/events/migrate.h b/include/trace/events/migrate.h index 0190ef725b43..cd01dd7b3640 100644 --- a/include/trace/events/migrate.h +++ b/include/trace/events/migrate.h @@ -22,7 +22,8 @@ EM( MR_NUMA_MISPLACED, "numa_misplaced") \ EM( MR_CONTIG_RANGE, "contig_range") \ EM( MR_LONGTERM_PIN, "longterm_pin") \ - EMe(MR_DEMOTION, "demotion") + EM( MR_DEMOTION, "demotion") \ + EMe(MR_DAMON, "damon") /* * First define the enums in the above macros to be exported to userspace -- 2.34.1