From patchwork Wed Aug 2 21:32:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SeongJae Park X-Patchwork-Id: 13338842 Return-Path: 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 09D60C04A94 for ; Wed, 2 Aug 2023 21:32:36 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3F9562801EA; Wed, 2 Aug 2023 17:32:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3819C2801AA; Wed, 2 Aug 2023 17:32:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1AEB42801EA; Wed, 2 Aug 2023 17:32:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 01DAB2801AA for ; Wed, 2 Aug 2023 17:32:32 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A011CA0F48 for ; Wed, 2 Aug 2023 21:32:32 +0000 (UTC) X-FDA: 81080463744.05.8F3671F Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf25.hostedemail.com (Postfix) with ESMTP id A9AF3A0019 for ; Wed, 2 Aug 2023 21:32:30 +0000 (UTC) Authentication-Results: imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=B8eKOqA0; spf=pass (imf25.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=1691011950; 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=M6iKB/8DnuuuqI3l7pYmM8Gm6s8Ppxk8Sj40hVY7DBA=; b=ZvrN9y8/auGHJwMa31MiGlvj9Wbl7Ma0Try/eaYCec+NZ8ke39yVjlWhTmHt03PdXz8ttB 6zus/rfCGOxoohWmYxvSiTstN4DzZBpt25QKvuq82dKjx6aq+vRwrYL/kWZd+w7Pn6kwtP 4mGLUR8svQdl1skqAIAADglDpB4g7Nk= ARC-Authentication-Results: i=1; imf25.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=B8eKOqA0; spf=pass (imf25.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=1691011950; a=rsa-sha256; cv=none; b=Bomqp744NXSNr0mhDCADCJstJpfQIy/lGdnujLEEqNZ8mQiygO2qfO8H3gFv6MDJ+jXp3/ aYuDZ67TyTXDcn3+TViQ2OST5nDbC8ypw22hWRM7vIFXhDKEmQttbFUtdVj9Mg+aAve+yr xZFowfZoKub2zvYztxeiyDGm//7tCRY= 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 C534961B51; Wed, 2 Aug 2023 21:32:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14C40C433CB; Wed, 2 Aug 2023 21:32:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691011949; bh=T0fZGypLM6vPpWaOxwTR4DXjjDDCiOe0tcjb/Q7FYeA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B8eKOqA044Ky8Eh09y4gIXYN9t2lUUZCL9kmmIy/8/wVup+Fz9JompcEKnQSE4jKf rNdmcJT9xd0IfodlTlcndLvX2Na6sPx1JbT9RuOE/wx2KM4b7YbEGyLkffuSceZ+Bc /l2rcKJrVQGxQRjm7e7wQ/sOIx8A2X90cgjvwQ9FEMNRdzU9EZEC7larfDkW0RmVUa EFomDu/3WBUrWr6v4wEUKLbqIRHSxfQoDfMG2TqcAFphcofllNeSdaHPsefS/bArI+ SqYi4oXNcrkHbCEbhjQOaUDlg/0qyd4dBsqQHZEM9pIX8GCakb9VXQJvvEx/nNj81F BQ+3vr2RfZiuw== From: SeongJae Park To: Andrew Morton Cc: SeongJae Park , Shuah Khan , damon@lists.linux.dev, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] selftests/damon/sysfs: test tried_regions/total_bytes file Date: Wed, 2 Aug 2023 21:32:19 +0000 Message-Id: <20230802213222.109841-4-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230802213222.109841-1-sj@kernel.org> References: <20230802213222.109841-1-sj@kernel.org> MIME-Version: 1.0 X-Rspamd-Queue-Id: A9AF3A0019 X-Rspam-User: X-Stat-Signature: zwn9s5xocuwfk8qmdf8pjb9nqcjmyp6h X-Rspamd-Server: rspam01 X-HE-Tag: 1691011950-239140 X-HE-Meta: U2FsdGVkX18afadhPLBlxa50MQ12zXYhGbknyHcugF6/BeF8usHueq0DDCQPr6Ho73Xygy85me5hDNySKUJD5OnIXddVWjSGQM03j6HIXWsCVH+rh1mv8Nu3uGvo1YAOWjPw4BNoBrUjLjRpJjqIEifa6GkJbyoq944mnbKnDpmXdO1wWMxQGszPZkyPiFPUTmR4awDY9sfQ3ATcMTdzIxCllPMOH8FWuJrDTbXiLLmevQh6pJi9in+0ZdH/aK2Pty0ZYmWQFN0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fO0/6GBLwkFbyWruS34j34N2dcMPSiQZBOKw2H3ffrHlWcDWQ== 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: 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 --- 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()