Message ID | 20230728201817.70602-4-sj@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp691440vqg; Fri, 28 Jul 2023 14:05:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlEMKVFSNAMvD66HJzq+ZjmpykGfQGqsvTEaaK5vEO2HskJht7WAOfp7iATi/MCAEWdYMQKC X-Received: by 2002:a17:902:aa46:b0:1b8:9002:c9ee with SMTP id c6-20020a170902aa4600b001b89002c9eemr2366149plr.1.1690578342781; Fri, 28 Jul 2023 14:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690578342; cv=none; d=google.com; s=arc-20160816; b=qVWeNCwB4ROZfD4cQwXRni8Tl8ZVFuS1rPCidHl9SegmfFP34HQCEJPyOeGpXqcBX/ MnMSfuQdBTT2M2ot2TBsY87SMkIOyCwlg6tXRCn32yRQcm7gAnsOFKYHDVdZquJoodGY e5LmfJLs7qLqXRDVchwuRrpfAnyIFiu9quXfGd8P6xorzJPBI3FbfwTfklAH9p/lqM/T Bhcb4wnYJ7BuJd+zvTwbUaigHCNYSL+Kgc/iqSKkfunsp0/83Twn0wE1hj+ML3HasnkK nVEhfWSudG26whwpTdya85jHrrLyilflc7K/sw2YXSGbsjhI2q0dwrdrdTbwvf9YBGQp AsMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=M6iKB/8DnuuuqI3l7pYmM8Gm6s8Ppxk8Sj40hVY7DBA=; fh=hJpvtmYKYE0BOPLgUEDgOmGgYMxmJ79pj0vtAYRNCO4=; b=LNnhZFecM4T8ghVzsBLjvwxkQ6Z0ggUXDxeHuEKulSyzgAV3wfnSRKevkcIiOfa7r7 dLxJnbudQqbX9468Rpdsbn6/NraPWOjufg/nw/4KulErjrirE9W3PNdePB0WBYEJJa8F Jm+zCNjVAOxS1SczwU1vlkmGl7QMqAsldJwFw4orVMLi+q3n4951FQM9x9dR6p82/k9X 2fBFqGUCOploG/13pxyuWMSmD7laTPTpl7jbG9IiUqEA/GpAKWvy2aiBq/W9m7CihAsa eCwVmov7lwLtR5E+y+hk92ILRJmjO2JOHUjpfb3Zfjr7fwh1F4fEqxmgPe8sXsTFSJnk vkWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RX260k1o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a170902c40300b001b9ed01eb1dsi3722839plk.361.2023.07.28.14.05.29; Fri, 28 Jul 2023 14:05:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RX260k1o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233072AbjG1USj (ORCPT <rfc822;dengxinlin2429@gmail.com> + 99 others); Fri, 28 Jul 2023 16:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233461AbjG1US3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 28 Jul 2023 16:18:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 993C82D75; Fri, 28 Jul 2023 13:18:28 -0700 (PDT) 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 37AA8621F3; Fri, 28 Jul 2023 20:18:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26B70C433C8; Fri, 28 Jul 2023 20:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690575507; bh=T0fZGypLM6vPpWaOxwTR4DXjjDDCiOe0tcjb/Q7FYeA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RX260k1ogVJVTYldpyL2MGeGBk3tczpbf55SpjRAVjT3q1MLI8Xd9HW7ZUgZsmtHH Cj0LUABIEdtOyJhlJgJA5+ddILF/b7B0oCVXSNLQfQOMSZv8Vl+GTamyICVRsZYGRx qNI7iYll5IOZ7YKkhn0Fjp4aa9TYYyUMcQtFPkI93XQ4g1zKrupkRLVpcsVtOj8Bpi 7RgCEgKylHCjNMsAzUG3/JKObwfK68tEDIhlTB9zKKvqQYw4733MSpaHK1VOChBCtL w3r+CWSFwF/pvgYfNgmZh8Gd6cK6AkaI+6/VilRbS8fXBk8oV/m0Wk2SwDhShqnRa5 tuBgaodKk3dtw== From: SeongJae Park <sj@kernel.org> To: Andrew Morton <akpm@linux-foundation.org> Cc: SeongJae Park <sj@kernel.org>, Shuah Khan <shuah@kernel.org>, damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH 3/5] selftests/damon/sysfs: test tried_regions/total_bytes file Date: Fri, 28 Jul 2023 20:18:15 +0000 Message-Id: <20230728201817.70602-4-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230728201817.70602-1-sj@kernel.org> References: <20230728201817.70602-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772699876481678406 X-GMAIL-MSGID: 1772699876481678406 |
Series |
mm/damon/sysfs: add a file for efficiently get total size of DAMOS tried regions
|
|
Commit Message
SeongJae Park
July 28, 2023, 8:18 p.m. UTC
Update sysfs.sh DAMON selftest for checking existence of 'total_bytes'
file under the 'tried_regions' directory of DAMON sysfs interface.
Signed-off-by: SeongJae Park <sj@kernel.org>
---
tools/testing/selftests/damon/sysfs.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/damon/sysfs.sh b/tools/testing/selftests/damon/sysfs.sh index bcd4734ca094..967e27267549 100644 --- a/tools/testing/selftests/damon/sysfs.sh +++ b/tools/testing/selftests/damon/sysfs.sh @@ -84,6 +84,7 @@ test_tried_regions() { tried_regions_dir=$1 ensure_dir "$tried_regions_dir" "exist" + ensure_file "$tried_regions_dir/total_bytes" "exist" "400" } test_stats()