Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp4457880ioa; Wed, 27 Apr 2022 04:26:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoB0gvSdpzThH5XGbr70AEtu+2yN6AOC34s8qSBzXlChIs/ONeRDvVaIIZ3g8W8YCj2Ael X-Received: by 2002:a63:7457:0:b0:3ab:224c:fef4 with SMTP id e23-20020a637457000000b003ab224cfef4mr14860489pgn.149.1651058776480; Wed, 27 Apr 2022 04:26:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651058776; cv=none; d=google.com; s=arc-20160816; b=0lfEPTvL3ZhcdjCirD6PNqZwPh5kRFHNpDBIIzqvWVx4QHthLQo1adMzJbC1WMc+pJ h80CDs/nl9qGjklW94a0XhqCoHANZ0SRCn0wSA/3i+jaUDLkIU+NiZT+aira4lcbujoA KiFwHGa5gZbaneZm3ToIPx9j4yMir44sZ0s6ah1CdXLkGjELp7a6KznH3Wwu+XChHf/E JRbyGmi37UUywQBMeTnO7zFQFXT7FSIZ9nQqjX9qgB3OFiswFKfO/phHxf4QCmYyPF0z gAAfC2ijvurQk3Sgn0o408TSAPRVYHzrQCoALE7u4Ujim5/Xy9qA4KuTvB35i+4Vdqc7 FEDw== 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=QkyMpqY+YKPqfLz9yOUnxtLwtPqE31wbBWm3EbKUDrE=; b=USd8ozyGw0hbhAJfn472IDtTpsTDjdwS4/Hvd7DGxJzOGYY+bY1Tpi5mKavSXLxB0o CEWa6uL1+CKK6cuY14kd5x5UjRgvXZmOCEGPRDCTHvudaqPCE5+KDqo10SXq0z/LCzrj V5s+6Er9W9WyxM8hXNmIGMh4GWIaVa2la+x1tnMrUkIASHDtiIMqPlwR92pn1R2QXm4B dn3NnEt+2ZXqZG7hC+Wqgad8hRwWzpttq0kojlHfstOOWtd39n9dTWAXar3lfbLvk3fq ik0kKqoR8y2GUl8CjZLTx5wDBCQPbvjdDFM9FewsVkS2X3sMbGIVNZ0fg5NmvMEIaOgx vECA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uTodtTo6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x186-20020a6386c3000000b0039cf81e07d1si1223389pgd.451.2022.04.27.04.26.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 04:26:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uTodtTo6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C1C6137642E; Wed, 27 Apr 2022 03:22:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355111AbiDZUmT (ORCPT + 99 others); Tue, 26 Apr 2022 16:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355079AbiDZUmG (ORCPT ); Tue, 26 Apr 2022 16:42:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 896197C15F for ; Tue, 26 Apr 2022 13:38:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2ED49B8232E for ; Tue, 26 Apr 2022 20:38:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61090C385B0; Tue, 26 Apr 2022 20:38:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651005534; bh=m1JQep2b3SfKr/7CLSAk47zNdHFQtwIgsoJpy0lNAxA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uTodtTo6ikP4OlRCyuSvS3rYtbIvHfD5TYO6ziMIaZ2XfUP/Icb71yug7SCjb/P5s XxIvu3pqLwHIEUZrWK9GNGeYmgmqsPegkgyfCJhEfkkU5QhJl2QWnUp+nGRAOosRQR SPoYDrFwEyV73nFHKcWZ/mPOwqrMPJCGUi5zDjGfKnUaMRLaXXj9dASP9VxGS1x5UG gJsaryztCRzWlWQcg+I9kGv/KWCKFVavsRYELr/ECIQj0a00ovvmZTb2UMlbmaHowS Nw3QywFEE8NWZ4xKBd+5Ce+9YjhmvfpUMbTRe/CcwViLCCeF3mPTAALXD+d2rWjrWq Xc7u3KtYAicJQ== From: sj@kernel.org To: akpm@linux-foundation.org Cc: linux-damon@amazon.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, SeongJae Park Subject: [PATCH 3/4] selftets/damon/sysfs: test existence and permission of avail_operations Date: Tue, 26 Apr 2022 20:38:42 +0000 Message-Id: <20220426203843.45238-4-sj@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220426203843.45238-1-sj@kernel.org> References: <20220426203843.45238-1-sj@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 From: SeongJae Park This commit adds a selftest test case for ensuring the existence and the permission (read-only) of the 'avail_oprations' DAMON sysfs file. 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 2e3ae77cb6db..89592c64462f 100644 --- a/tools/testing/selftests/damon/sysfs.sh +++ b/tools/testing/selftests/damon/sysfs.sh @@ -231,6 +231,7 @@ test_context() { context_dir=$1 ensure_dir "$context_dir" "exist" + ensure_file "$context_dir/avail_operations" "exit" 400 ensure_file "$context_dir/operations" "exist" 600 test_monitoring_attrs "$context_dir/monitoring_attrs" test_targets "$context_dir/targets" -- 2.25.1