Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp142299lqs; Thu, 13 Jun 2024 06:24:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX9sAdJKW1YQLO+Esi4NlC9t1VzbzzcUWA5OzFuUWVxojsqdrvl45p6fDLJ7ByoFWcL9pFlcIzm4j31RPUGdCKBXlXKA+Sw3aPsfoszeg== X-Google-Smtp-Source: AGHT+IFFDFgXLsasaFIxRgGV6WlBKmNnnH/+JOuNDRmTfmX1tsQolcUgTgiNDQ9r3iUvn17ojbZI X-Received: by 2002:a17:903:2a90:b0:1f6:82e7:65c with SMTP id d9443c01a7336-1f83b5dfb72mr55387365ad.17.1718285067955; Thu, 13 Jun 2024 06:24:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718285067; cv=pass; d=google.com; s=arc-20160816; b=ztSfW/EIONnn5EnDLVbzRcsgedzUfFSX2k/6JUGY5iltoXKvPBXBFfpMu9+RjoBf1k rG3OYXVFOBcH77GZhVDA2cVFCpxOnBRQkqCBSDFpqy5WTEnzuTDGF70o8TiAo/CKN2fS TllLG11S3dMkUIVzkof+6712WfPjRW1QQZKjVgDoS3mMPiD2AUMMWcBGiPBtJVBtKoCY 594Xj8tnDCYiixpTgqXeStzOZQGhWImQwy28SAwWyZvklFv4bANZzBg/hTgl01jk7h85 PSzEcTkhaSnh6/3M0Q4bjA9dDTRCY1CRfFGThbQp6/JrnGc+AuBkHWrMiaCZlsJBw+pY LxRg== 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=anb4N7dlDBXTG0olnshLf6RyJRTa7O4asfDg8EoZEytgW40X2L25PgGdkt3N3/tIwh DfozoCcuJaFID/oNwoWDopbIftz36YLzGC7enK2MJzBYK6/A4lwZqQeydVhquIhHuqR4 nXk8AU/hgC8PD6UFsdHo8A3YBL19MaCFGoW7dsKGrsNsOlLBFVYLCVtLHWda9fZyYKsO FvzJeTrXMhWPjNsVsDyNwqoaToucLywiOJE0BbvXC51ZYQ5rxOaN03yZW1e9r5x4wpEB u/WhaO93kF7GKWcaZCHOs/UlLiKAytsEa0b4R7di0zkRRGMtV5ebW7pW8ZZ4mD0H+I19 bRLw==; 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-213295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213295-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f855f1acefsi12647385ad.600.2024.06.13.06.24.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:24:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-kernel+bounces-213295-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213295-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id D1CD1285F48 for ; Thu, 13 Jun 2024 13:22:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4DDB146583; Thu, 13 Jun 2024 13:21:18 +0000 (UTC) Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11519145B10; Thu, 13 Jun 2024 13:21:15 +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=1718284878; cv=none; b=tnpwIBIqr5jKX47p3QxWZLYS6DO7p32U+M64MAkkp9NHmYenJhYjF5dbnrUVHL1ULyv2MsEKLcFWt5oEY3cx2pEC0V7sVbdHO67j6vFFbXP+qvI7ILqYN8rLZP6hc/wx2iNkk9Gb/bmWae93twob+xGOXQmgMtRKmK3ZD3XjMnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718284878; c=relaxed/simple; bh=ZfLljOt/MQv0L/bYy4Os+q7oWfrMxhmdpGjsjZA0zWM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CQzuN/GhniTDbmcodp0i2H0IU+6AN0DXLtlmqXi4lJKD0lfDdJkJGLoGyxL3XkQ8qyuboxbp2A/QUWooAcDtBmX1JTMuZfDejOf1XhrwK7k7F+OapVuPF2fowyHwCi4Eg4z+cN/TDZVY1vvN39epLvIv3WiAfAJkUZZmDUrMWM0= 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-48-666af249b12b 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 v5 4/8] mm/migrate: add MR_DAMON to migrate_reason Date: Thu, 13 Jun 2024 22:20:51 +0900 Message-ID: <20240613132056.608-5-honggyu.kim@sk.com> X-Mailer: git-send-email 2.43.0.windows.1 In-Reply-To: <20240613132056.608-1-honggyu.kim@sk.com> References: <20240613132056.608-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+NgFnrFLMWRmVeSWpSXmKPExsXC9ZZnoa7np6w0g/WvZCwm9hhYzFm/hs3i /oPX7BZP/v9mtWhoesRicXnXHDaLe2v+s1ocWX+WxWLz2TPMFouXq1ns63jAZHH46xsmBx6P paffsHnsnHWX3aNl3y12j02rOtk8Nn2axO5xYsZvFo8Xm2cyemz8+J/d4/MmuQDOKC6blNSc zLLUIn27BK6M6U07mAsauCoaZixkbmBcx9HFyMkhIWAicafvNxuM/evYFUYQm01ATeLKy0lM XYwcHCICVhLTdsR2MXJxMAtsYJaYdO4FE0iNsICTxO8jPawgNouAqsSarmVgvbwCphJfn0HY EgKaEo+3/2QHsTkFzCQezX0FtksIqGbGj6vMEPWCEidnPmEBsZkF5CWat85mhuh9zSbxrb0Y wpaUOLjiBssERv5ZSFpmIWlZwMi0ilEoM68sNzEzx0QvozIvs0IvOT93EyMwBpbV/onewfjp QvAhRgEORiUeXo9nWWlCrIllxZW5hxglOJiVRHhnLQQK8aYkVlalFuXHF5XmpBYfYpTmYFES 5zX6Vp4iJJCeWJKanZpakFoEk2Xi4JRqYMzvdb376ZQRu1Vv95ILpzZffLrz88L0uUtWPHd/ 8iJj0ufrFUUzivd9MvT08ZL1THnrdWF5xZQrf7ddCVr766BCxD/zZefX6+3ZUicax3Ox4aBv UV5ysIDDr+86RfUtfxTnfL7SuPm+9YXdcsudOY09cyf7LJrCaB7xguHk6lPb66s1ONUSCsSU WIozEg21mIuKEwER4BI1fQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsXCNUNLT9fzU1aawb4lAhYTewws5qxfw2Zx /8Frdosn/3+zWjQ0PWKx+PzsNbPF4bknWS0u75rDZnFvzX9WiyPrz7JYbD57htli8XI1i30d D5gsDn99w+TA57H09Bs2j52z7rJ7tOy7xe6xaVUnm8emT5PYPU7M+M3i8WLzTEaPjR//s3t8 u+3hsfjFByaPz5vkArijuGxSUnMyy1KL9O0SuDKmN+1gLmjgqmiYsZC5gXEdRxcjJ4eEgInE r2NXGEFsNgE1iSsvJzF1MXJwiAhYSUzbEdvFyMXBLLCBWWLSuRdMIDXCAk4Sv4/0sILYLAKq Emu6loH18gqYSnx9BmFLCGhKPN7+kx3E5hQwk3g09xUbiC0EVDPjx1VmiHpBiZMzn7CA2MwC 8hLNW2czT2DkmYUkNQtJagEj0ypGkcy8stzEzBxTveLsjMq8zAq95PzcTYzAIF9W+2fiDsYv l90PMQpwMCrx8Ho8y0oTYk0sK67MPcQowcGsJMI7ayFQiDclsbIqtSg/vqg0J7X4EKM0B4uS OK9XeGqCkEB6YklqdmpqQWoRTJaJg1OqgfGyVKjrnbSye9t6en88fDJv1purIhnujd4uwnNW 1C9cc8AwY4Pp6etvkj57awk+9dvpXbh6w8Pf1RslkybWfObaacO4yHOSyrfzP3ycQ9/qX5Zo enWp9EV+Zs2KuemmG8U3ST8WS2X237o0b0Y6o6/92oLHYVYqN1MMbbtLT0yJ61BjeqHx8pYS S3FGoqEWc1FxIgAq+jUsbgIAAA== 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