Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp144861lqs; Thu, 13 Jun 2024 06:28:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXkxvIPdxpyzh2CSrxVbog1itzA1JYc0b/BaGmnzKDrFghfr0UY5UYNSTiucCZyFg2B8GOoanBo/ATyg1UewGtDbYt9VZsndqPFdwJaqQ== X-Google-Smtp-Source: AGHT+IFZjL7dQoOcKiqqdb839c3UjEW7tD4y3ZsQOr8c7zs0uJ0u+BtncyvQkvSH2azH8X6UtHY4 X-Received: by 2002:a05:651c:685:b0:2db:a9c9:4c5e with SMTP id 38308e7fff4ca-2ebfc9b4c56mr33552091fa.21.1718285320888; Thu, 13 Jun 2024 06:28:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718285320; cv=pass; d=google.com; s=arc-20160816; b=I8uGV6MeQb+WMT3PN4Bm5XQqP33PW0U2AIxtH0JewBv6vEBRZNpe4/rBxJFS4RwFTl jAKBajhvNbXwwjE1ld65CMqr/Z49nvmIQeYxZLOpM7EkfZK0CX+GHwRZ1a0SQ6o/LYlD 8HCuQtvw6Rv1fD4ZYndz7lac6oVujFn8wrTZXj09bhXUfghGoSAgcYWBLko041TCbyp2 HkzdRQncjBAyZWkJMK8Ri9IwUcBEwt05PLhZweYtghRb3OhoAZ9K2kT7t2Ty/Hy6vb/r H4l5XNJEAjzL/tLm0dIiJUznjexam8A4TULX6X3ECvhhrkSyeDrbUb5P2LaoV+76mC2Q ZVjg== 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=Twkyo3ljIBjbS2/4ZLgfrWPOETcL3lQW8GhcvAO3s1o=; fh=3neK+uwM3aj45LO7wtdYM3yjEndz5CATkfR1g3LvkT4=; b=UJf1uoDiZ10SnqxEVO3Hu9G1EhkSSpbgCTyr5d+o3mN90ZADw5xuPolTrenl8VO71z 0Uk29O4YLXDVRp/O/6pZI/HjOyd/Cp28bGKABSXwfmP+lbTSMu14PobTZ+QBj0rQgzUR TiWmSp+7XEnQIId9qD56CD9AjTcQFXtdVjzEJOxfpsPZJpl0v46L+7u90u3SFegl62ZS FrOhOallOGrM616g3Z/KY6Rc7Sxnz5qodTDewEhAsxJ7vhBV4ExCYTX8mIAWHx38fb92 6Vmf3SFbxPv3YevCU9cYpCwUlrOLK5mvaM/fhIoE2xUPMCLUpx9yPyagOoap5CyfCjA5 DUnQ==; 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-213282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213282-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56d21701si68722366b.62.2024.06.13.06.28.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:28:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213282-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; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-213282-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213282-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CC7471F21A2C for ; Thu, 13 Jun 2024 13:18:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81DB3145345; Thu, 13 Jun 2024 13:18:15 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB08914431C; Thu, 13 Jun 2024 13:18:12 +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=1718284695; cv=none; b=WOv1DFGdx0XfMF0L9cePc/ND84xEN8KnIG+MotNXhSR+9LiP1S02wJ8zbOXfs84+SpG6pMI0q1SpDJ0u65OMReYZnSbliYKaHZlgoq+VU57N1GPccklHJGkaj22QbjMl7a0L75bUrklTet1W8GwnBbTDW2d6MRNljP94u8LWlcU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284695; c=relaxed/simple; bh=ZfLljOt/MQv0L/bYy4Os+q7oWfrMxhmdpGjsjZA0zWM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MKh5DBsO3qV2mDioU44T2fgk4J9/qoWV2946gm8+fec3yG80uWlrXqsTckCgxTEqvQxrAWgTfUbsT/8wlUvdNRBTd/Y3s+AZNnW0J+AX6WsmGaDvsOWm2akgl05aMzVmKSm7HmDIvIN8qOq4BSF7uEpnDO4jx/OnEtvgRQ8CBjo= 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-3a-666af18f9bbd From: Honggyu Kim To: SeongJae Park , damon@lists.linux.dev Cc: Andrew Morton , Masami Hiramatsu , Mathieu Desnoyers , Steven Rostedt , Gregory Price , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, 42.hyeyoo@gmail.com, art.jeongseob@gmail.com, kernel_team@skhynix.com, Honggyu Kim Subject: [PATCH 4/8] mm/migrate: add MR_DAMON to migrate_reason Date: Thu, 13 Jun 2024 22:17:35 +0900 Message-ID: <20240613131741.513-5-honggyu.kim@sk.com> X-Mailer: git-send-email 2.43.0.windows.1 In-Reply-To: <20240613131741.513-1-honggyu.kim@sk.com> References: <20240613131741.513-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+NgFnrNLMWRmVeSWpSXmKPExsXC9ZZnkW7/x6w0g3UvxS0m9hhYzFm/hs3i /oPX7BZP/v9mtWhoesRicXnXHDaLe2v+s1ocWX+WxWLz2TPMFouXq1ns63jAZHH46xsmBx6P paffsHnsnHWX3aNl3y12j02rOtk8Nn2axO5xYsZvFo8Xm2cyemz8+J/d4/MmuQDOKC6blNSc zLLUIn27BK6M6U07mAsauCoaZixkbmBcx9HFyMkhIWAi8WXGTUYY++nyvewgNpuAmsSVl5OY uhg5OEQErCSm7YjtYuTiYBbYwCwx6dwLJpAaYQF7iQUHLzKD2CwCqhLvN60Am8MrYCox99Fs doiZmhKPt/8EszkFzCTWfbsPViMEVNPx/xkzRL2gxMmZT1hAbGYBeYnmrbOZQZZJCDxnk7j3 ZBozxCBJiYMrbrBMYOSfhaRnFpKeBYxMqxiFMvPKchMzc0z0MirzMiv0kvNzNzECo2BZ7Z/o HYyfLgQfYhTgYFTi4fV4lpUmxJpYVlyZe4hRgoNZSYR31kKgEG9KYmVValF+fFFpTmrxIUZp DhYlcV6jb+UpQgLpiSWp2ampBalFMFkmDk6pBsaK5Vw7li85IvLbel3Egpr0L3nRLMEet3qq z05I2rNQPXHm9/ccNsouk4RY3Vtq9531Y5j8uGF15sfpE///3eqYfYdh1cLQPccyN3vZVE3q NQouEm82V9HvE2dV3t0zy+rj3wOs/VtfiW1UX+G1/1rvvBmCV2b0hApe3Lrl9oHspc/S1A5c NIpVYinOSDTUYi4qTgQAAwjJXH4CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsXCNUNLT7f/Y1aawetPbBYTewws5qxfw2Zx /8Frdosn/3+zWjQ0PWKx+PzsNbPF4bknWS0u75rDZnFvzX9WiyPrz7JYbD57htli8XI1i30d D5gsDn99w+TA57H09Bs2j52z7rJ7tOy7xe6xaVUnm8emT5PYPU7M+M3i8WLzTEaPjR//s3t8 u+3hsfjFByaPz5vkArijuGxSUnMyy1KL9O0SuDKmN+1gLmjgqmiYsZC5gXEdRxcjJ4eEgInE 0+V72UFsNgE1iSsvJzF1MXJwiAhYSUzbEdvFyMXBLLCBWWLSuRdMIDXCAvYSCw5eZAaxWQRU Jd5vWsEIYvMKmErMfTSbHWKmpsTj7T/BbE4BM4l13+6D1QgB1XT8f8YMUS8ocXLmExYQm1lA XqJ562zmCYw8s5CkZiFJLWBkWsUokplXlpuYmWOqV5ydUZmXWaGXnJ+7iREY5Mtq/0zcwfjl svshRgEORiUeXo9nWWlCrIllxZW5hxglOJiVRHhnLQQK8aYkVlalFuXHF5XmpBYfYpTmYFES 5/UKT00QEkhPLEnNTk0tSC2CyTJxcEo1MGb0F0Y3rGq+7HBaZTtb6e0Ni/wnXc+4+swjmWl7 0kSjZsHtTNFHZm9uCp2zofrEKZv3apdFF8arRP6zWSdj1DNhh8HZh21HsnLWm4SkufrmymSq pz+znrHu+cay8kvHa7eHfWueukSKm6GUIXSOyOUHpwxa463t3zi4vEyt3crTwHYi8XTvLSWW 4oxEQy3mouJEAILNfGxuAgAA 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 Reviewed-by: SeongJae Park Signed-off-by: SeongJae Park --- 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