Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1709842rwb; Fri, 28 Jul 2023 13:43:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlHcibv9OIErgpT5c4VHRGtpRYOl0La+qoDlCQNRwNcVheMGhKX/c8m1/PauYDFO5fmKWmq6 X-Received: by 2002:a05:6a20:8f0c:b0:137:a9d7:de12 with SMTP id b12-20020a056a208f0c00b00137a9d7de12mr2974478pzk.59.1690576999563; Fri, 28 Jul 2023 13:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690576999; cv=none; d=google.com; s=arc-20160816; b=RptyDWS1i63FIYo8RugZSyyyc3XUKzDJn67Qn6p8sgCwpmUctHWwnj9Fjl1ldJhrVo Wdo/xpSnatQhfm2bIswkKAIo38mZfy6Qomllk+pau+mEpDz6uKcLqyBBnM4nV7H5p9Nc kUolS0ejWu5WD9Zh20OkqR+eErmsE4aWSak4nhkDoRyrpvoT161M/SDIAZacFx/IpBUY yi2l6qBfcnGwDo9KFEdaufzQvjYVjdW1BrPidUG6rZe4cgkQCbaOn8QfvqaLYIxz0/MJ QHmlSB6b9tLzXdyL+LhjWqbqrVF51LgsCunMpGA+AEekBWouRnTYJWFE4hmZphVcEbeO ualg== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f21-20020a637555000000b0055acc9baa64si3557124pgn.33.2023.07.28.13.43.06; Fri, 28 Jul 2023 13:43:19 -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 S231248AbjG1USi (ORCPT + 99 others); Fri, 28 Jul 2023 16:18:38 -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 ); 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 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: [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: X-Mailing-List: linux-kernel@vger.kernel.org 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() -- 2.25.1