Message ID | 20230916020945.47296-4-sj@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 87B30CD37B1 for <linux-mm@archiver.kernel.org>; Sat, 16 Sep 2023 02:10:04 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 1FE226B040C; Fri, 15 Sep 2023 22:10:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1872B6B040D; Fri, 15 Sep 2023 22:10:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EFF9B6B040E; Fri, 15 Sep 2023 22:10:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id CFD0E6B040C for <linux-mm@kvack.org>; Fri, 15 Sep 2023 22:10:03 -0400 (EDT) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id AE6111C9F63 for <linux-mm@kvack.org>; Sat, 16 Sep 2023 02:10:03 +0000 (UTC) X-FDA: 81240830286.29.E9CF04D Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf06.hostedemail.com (Postfix) with ESMTP id 0D1B018001C for <linux-mm@kvack.org>; Sat, 16 Sep 2023 02:10:01 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="HYpkwR/i"; spf=pass (imf06.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694830202; a=rsa-sha256; cv=none; b=L6nVGP/4ZK06KKxoD33rimdzdI0y17e3DYSE30BwxmWZTLBtNvQdgwsdIcGKRlyhxq/2Ie 7NSjuF4Ewhk1rUr6N9g0USUOP6WF7ALXGurirHH0XU1FmE8S9DkqtjglE/McPraLvDAGgC PvqgvwlzwtVUmD8v7cBbjOno3YGHyg4= ARC-Authentication-Results: i=1; imf06.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b="HYpkwR/i"; spf=pass (imf06.hostedemail.com: domain of sj@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=sj@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1694830202; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=tjIZD4tmf+jZpp9P0nQE+oJlGzUWJFPJIvL3wjD6Bi4=; b=XNQsSgnQRlVZpQXoF+LfwWL5FfclTocR6eHT4EW4kHrLbW4b+RaX+b4Of3dzNaijSFPgUk R1bAKhy91PC/I6fnu3FEjl2C4/z6Zp+DIuITIX8Dpuyucqy805+YLt9r6lADbDHaMxFd7j 08af7Bl+pMGFF9btl7bSJSeGgu3ruIg= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 45BC5620ED; Sat, 16 Sep 2023 02:10:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E761AC433C9; Sat, 16 Sep 2023 02:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694830200; bh=JTX8roVUkoUgDpJsiDynoUw1rs0WkWhqwrFFpgZDGAc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HYpkwR/inXjdyb2gngS4f7p4SFsHSMS3VtSAcLEHye2QBHmQXeQgFFKB1NqwqQ069 aJfOypDmoD9vgbsIZl9SG2hsjrARJmocVcmfc/djvDJOFqWJS/uhEYh7mMfeMcasN3 73lPOFle6veIKb+soiMhLbfXEYO1mG/l1prQj89951ycdnVn6p3OtlOpLDZ4nd1Yj7 4vwABlBysLdDFobnl2b32WnWVtx24Dl+WTM0ek1K1yrfioD5GPKq1jvihIEL2IfNhB tBJSx15beCsLcfE3aARUMt7pYaWx5eQrqJiM4aOxKic2a1uSGSjm3HDYEMadPWoeB3 9twb5KOKOqTMQ== From: SeongJae Park <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, Steven Rostedt <rostedt@goodmis.org>, damon@lists.linux.dev, linux-mm@kvack.org, linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/9] mm/damon/core: use nr_accesses_bp as a source of damos_before_apply tracepoint Date: Sat, 16 Sep 2023 02:09:39 +0000 Message-Id: <20230916020945.47296-4-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230916020945.47296-1-sj@kernel.org> References: <20230916020945.47296-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 0D1B018001C X-Stat-Signature: 9bs6pi3sbfuniuknkhh5be1pdoag5zws X-Rspam-User: X-HE-Tag: 1694830201-714863 X-HE-Meta: U2FsdGVkX19YWLBBPPvRLd2Yfhm/dF5ITUwjbH6J8kQCvvjdCqWq/cMCJQFONezNmijPKGtmylVacnmnHpwqPEPAT7QGUWRahmTRX0Sgjqh+tOKp0YgcSK4O43Y6ceRMVW9EStxK0icF0Lah3ETfCDrt61VnlwFxFVLkcQF/reMmhWthdQ2hz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EJnzzeWS0Qf+olf6IJGOT6lLC5RGZEMBc1NnumMrEq6CI8ylSfubLqNx2TFVVg3IGBGfRAkP8GMMxrbeI6NaiNp8vzeZ5+cgKeX6Eb7ejRUGysrpX5PKFG2Bg138KtqMv X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
mm/damon: implement DAMOS apply intervals
|
expand
|
diff --git a/include/trace/events/damon.h b/include/trace/events/damon.h index 19930bb7af9a..23200aabccac 100644 --- a/include/trace/events/damon.h +++ b/include/trace/events/damon.h @@ -36,7 +36,7 @@ TRACE_EVENT_CONDITION(damos_before_apply, __entry->target_idx = target_idx; __entry->start = r->ar.start; __entry->end = r->ar.end; - __entry->nr_accesses = r->nr_accesses; + __entry->nr_accesses = r->nr_accesses_bp / 10000; __entry->age = r->age; __entry->nr_regions = nr_regions; ),
damos_before_apply tracepoint is exposing access rate of DAMON regions using nr_accesses field of regions, which was actually used by DAMOS in the past. However, it has changed to use nr_accesses_bp instead. Update the tracepoint to expose the value that DAMOS is really using. Note that it doesn't expose the value as is in the basis point, but after converting it to the natural number by dividing it by 10,000. Therefore this change doesn't make user-visible behavioral differences. Signed-off-by: SeongJae Park <sj@kernel.org> --- include/trace/events/damon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)