Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1632381lqo; Sun, 12 May 2024 10:55:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXRWplua8xQNwlq/qAdftDp/5p9AcAlrTcY0auO4lGIOEalOSUQvNFSkf00Fz7CvGGDc3hHGR15mzY3vjXfVx7wsbfx2oqhGlxDUiDB/Q== X-Google-Smtp-Source: AGHT+IEb7W52sl6U14qnoCTj6yqfw4eaPtwxAKd8uOHq1mdvwsyerEKkT7iDMVeism2F9iEhMGXl X-Received: by 2002:a17:906:548:b0:a59:a01e:825f with SMTP id a640c23a62f3a-a5a2d292a95mr573454266b.29.1715536521659; Sun, 12 May 2024 10:55:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715536521; cv=pass; d=google.com; s=arc-20160816; b=THNNjPdQ7SLmclCsqx7CStySUshWNJZ/SejUJ0aQj5rrfExqWPTS0goNn/GgXZqdbd cFJ4K2wFQoIrh4kBamq98NB/jf6Xw/3nWMd4emug7nVAmh+r4+K9LQnaGDES9oMtnttP qpprEuwWsVKPGTamAJ759BPFOb0njQLMHR5nhjXaODp8m/JGSlZBbhw5GlJTFSgoTLNd duAewWHl2CxTosIWVV5oX/4lN05++7I2uJnD/KJabx0GIss9g+9H80N3CbodPu7zTP2V Wjl+0aTYDcPVdyJmWk8oVr0cicjmt3M2CxKpNIS0rv5F2Q6fotiN5oIpEGWKJhXT830R HO1w== 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=0rApBdejbD4xR0vywUOJF431iKGvRkZznKrbCyUVjIo=; fh=xuGzfNgrB7UGVj1ubAMbEmYd/bBtyq/5tBbo+psnZ9Y=; b=suZ+PuOa/Ixk0j9zJsihXvY86bpaU+glnpqu2bsnvP/n3k9b5RcfW3ThVgtblMzK53 y2RFn0MIWAOWfURnOUl0lcj8CHnKIWilzgi+PZubvZQaEdrfxJrYLdielcaQY+LhcO3N xL6seMUy0LvxSAO6OrwFzWVlaGrdlNyMxxBOlB03jw+EVYwxeLQI5T8PQWJkp7ougA4r 1lgrqZZD79b6XMH3PR+67sgeYFdpNwGzSNiuMg2irmSOs9c3TQbDPR0hDAH5qmcIW2pr k9Uv15y+jsLsbXvutbLRKDCBoE6pZpLx65y/g/HL+zLmAr1Te2qqO787adICAfdZ1+3M FUsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZiCeiPqc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a5a17b21aafsi470137966b.317.2024.05.12.10.55.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 10:55:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZiCeiPqc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-176962-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176962-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 65CF61F211E3 for ; Sun, 12 May 2024 17:55:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09B5E524DF; Sun, 12 May 2024 17:54:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZiCeiPqc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28DD25028C; Sun, 12 May 2024 17:54:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715536497; cv=none; b=B+/vGS4oU5ZFjkCICzkJWoHTWm0JYA8ax97CHY8U4oZD9/LWx2IZZMDSlgh1u7GMrOTnIHZ73NrZQPGceTbHhwCAHpC7qu+G7Y/59toMQI5a82k1oCkIMEAirRmYoLmwLzqM39pDXH5xQm0DDrJrwuT/SUtHJz+YSh+QhEC0+cU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715536497; c=relaxed/simple; bh=0nYpdJNOcVsAetSwCRBcYWpfg7K4GaKZMal/LiW2aDo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Xop1mDoxZy+RAxFYZgzr1B/9/kQk0lRwvjf8bsCB6i8n/xf9X4H8yTArNUWncOCntj7jHXW7gqzCjr8f24RT0lakobIiqp+eyu9F050ypB7WHA9VnBxD/38w5cb1uuWLeGMNqczkhWkVc6ev6vjJ6K6aAA2yfQtlB1op04RE6yw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZiCeiPqc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFC4CC4AF08; Sun, 12 May 2024 17:54:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715536496; bh=0nYpdJNOcVsAetSwCRBcYWpfg7K4GaKZMal/LiW2aDo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZiCeiPqcqV3HR6k9NGEGmv4MbUCDzmuxGtuizXoVn0cPcZ2oH7D0dAD2qaL9JevbA 2/PofgQ5iNSARyYqrbxl48ZFFfT0CGlMaaT0tgpiFcmpGWnUYnlZsmMxAnBupiQA5B 8ZUMqtWE2Gpr66DPiyuAbwLu///LkQbyiD29BfRtrL40kVnknmVPavydG9qYWh6U+E AINgYWGQP/LzlQjCbobJc7kgKHZeh8a4B1Y2QTxPaqPnmTu4n4hmdswrnyM1A3JsK9 SWEZD9x+rYdlDmywxX7FvHgs7UlmCh8pgn5y2ZzCwA02OkVzGfOjj22voQEi+7xy7x ZuQzZOOofKOIg== From: SeongJae Park To: Cc: Honggyu Kim , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , linux-kernel@vger.kernel.org, damon@lists.linux.dev, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, SeongJae Park Subject: [RFC PATCH v4 3/5] mm/migrate: add MR_DAMON to migrate_reason Date: Sun, 12 May 2024 10:54:45 -0700 Message-Id: <20240512175447.75943-4-sj@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240512175447.75943-1-sj@kernel.org> References: <20240512175447.75943-1-sj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Honggyu Kim 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.39.2