From patchwork Fri Feb 18 00:10:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuanchu Xie X-Patchwork-Id: 12750797 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 EDC2DC433FE for ; Fri, 18 Feb 2022 00:10:47 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5605F6B0082; Thu, 17 Feb 2022 19:10:47 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 50EC76B0085; Thu, 17 Feb 2022 19:10:47 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3D8B16B0083; Thu, 17 Feb 2022 19:10:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.a.hostedemail.com [64.99.140.24]) by kanga.kvack.org (Postfix) with ESMTP id 2EBA96B0081 for ; Thu, 17 Feb 2022 19:10:47 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 016FB20B81 for ; Fri, 18 Feb 2022 00:10:46 +0000 (UTC) X-FDA: 79153969692.01.E724F27 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) by imf03.hostedemail.com (Postfix) with ESMTP id 8858520002 for ; Fri, 18 Feb 2022 00:10:46 +0000 (UTC) Received: by mail-pf1-f202.google.com with SMTP id i7-20020a626d07000000b004e07b61362bso699087pfc.6 for ; Thu, 17 Feb 2022 16:10:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=daH+2gut1QW9kZErJcIx6WIChTci/r2UH1rfRtql99A=; b=q6FFpZFF3pNwD7OlZ/4hTa2+tIgGnbd0G+XzZL/u5K1MB7T5d3HgNPpm2WrpsJPGFI qbChI7Kpr1Y4OTN5CIt+CtbUwHq36Dd+XGnXtyuPffUh+44yH9JneNO90sOM503sq9Pt eZKwkuGVLEDIqmylXibuvfO4mWbfbCRMK5t+UM9Ilo+KyaG5HjwenZcHPW8R1weAluSt i263hDw9mxz0nZrOUc3z2zZ9m/JbUInIRuLVFBolt1BGTlkMdal9EsLlqJ9bYGB+yS5s 5eibzP96XUS/1KgFsqhE0qyvdkm/TzDcixiWKzx+aATSw/NN755gez1zeV5N/3bhONkt Kp8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=daH+2gut1QW9kZErJcIx6WIChTci/r2UH1rfRtql99A=; b=7x40sfTHxNyJD2vq21Ds8bW44ah3E6KU0iPt2YuMgfm3qwsrVXsq1ecbpHGeF3w9j0 c/Ot00+FYlPRyY7pEFdEKRA+sYO3GEKxC17J+F/p/4/0sgpM4l9yEeAPmlIzH1mO15mZ 0+tYRABueL0USCSyxH9z/QdJsIiJL/evubebRG4NR206x808s10pauuXQYWa5v15t3f8 xp/qOXB8F6F/Gj2IuWT1bYPHO1LxrsfZ6ZCZdbUea4yrfpE9cS5f47xyTiKxTIh4im8Z gZSZkcVHYdhdFwg6zf0a+LfwSHarVdv0CkDjC4O5YQgwhXa4/0BAInXvPeUls6LrbmAi 8Ryg== X-Gm-Message-State: AOAM533kaMWWlucnqwm23z77WFojd3UhId5FsWuICiuhmirChaaJ5UsN w+znFMpPk2WMB8demK7ewXvNI1g/ARyo X-Google-Smtp-Source: ABdhPJw6fTpwF9+VtM9cM6JfysP1jGMHMiG5w+LL8NIkGyT/Fp5ts9IYmAvlnIrXQpBFUhpxsnIfEpXhUeXQ X-Received: from yuanchu.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1e51]) (user=yuanchu job=sendgmr) by 2002:a17:90a:a50f:b0:1b8:e6ad:f63c with SMTP id a15-20020a17090aa50f00b001b8e6adf63cmr199698pjq.1.1645143045060; Thu, 17 Feb 2022 16:10:45 -0800 (PST) Date: Fri, 18 Feb 2022 00:10:16 +0000 In-Reply-To: <20220218001017.3500673-1-yuanchu@google.com> Message-Id: <20220218001017.3500673-2-yuanchu@google.com> Mime-Version: 1.0 References: <20220218001017.3500673-1-yuanchu@google.com> X-Mailer: git-send-email 2.35.1.265.g69c8d7142f-goog Subject: [PATCH 1/2] selftests/damon: add damon to selftests root Makefile From: Yuanchu Xie To: Shuah Khan , Markus Boehme , SeongJae Park Cc: rientjes@google.com, Andrew Morton , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuanchu Xie X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 8858520002 X-Stat-Signature: r8bu3k5s6xwm7rmywsbi97d7qcod9njo Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=q6FFpZFF; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf03.hostedemail.com: domain of 3BeQOYgcKCCAUQ6J8DQCKKCHA.8KIHEJQT-IIGR68G.KNC@flex--yuanchu.bounces.google.com designates 209.85.210.202 as permitted sender) smtp.mailfrom=3BeQOYgcKCCAUQ6J8DQCKKCHA.8KIHEJQT-IIGR68G.KNC@flex--yuanchu.bounces.google.com X-HE-Tag: 1645143046-496606 X-Bogosity: Ham, tests=bogofilter, spamicity=0.001232, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Currently the damon selftests are not built with the rest of the selftests. We add damon to the list of targets. Fixes: b348eb7abd09 ("mm/damon: add user space selftests") Signed-off-by: Yuanchu Xie Reviewed-by: SeongJae Park --- tools/testing/selftests/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index d08fe4cfe811..ffe453760a12 100644 --- a/tools/testing/selftests/Makefile +++ b/tools/testing/selftests/Makefile @@ -9,6 +9,7 @@ TARGETS += clone3 TARGETS += core TARGETS += cpufreq TARGETS += cpu-hotplug +TARGETS += damon TARGETS += drivers/dma-buf TARGETS += efivarfs TARGETS += exec From patchwork Fri Feb 18 00:10:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuanchu Xie X-Patchwork-Id: 12750798 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 9B207C433EF for ; Fri, 18 Feb 2022 00:10:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2041B6B0085; Thu, 17 Feb 2022 19:10:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 166906B0087; Thu, 17 Feb 2022 19:10:49 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 02E976B0088; Thu, 17 Feb 2022 19:10:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0159.hostedemail.com [216.40.44.159]) by kanga.kvack.org (Postfix) with ESMTP id E19B86B0085 for ; Thu, 17 Feb 2022 19:10:48 -0500 (EST) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id A6F6295B0F for ; Fri, 18 Feb 2022 00:10:48 +0000 (UTC) X-FDA: 79153969776.21.3B14564 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) by imf04.hostedemail.com (Postfix) with ESMTP id 3949D40003 for ; Fri, 18 Feb 2022 00:10:48 +0000 (UTC) Received: by mail-pf1-f201.google.com with SMTP id g19-20020aa796b3000000b004e136dcec34so663914pfk.23 for ; Thu, 17 Feb 2022 16:10:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=4GwV0UbQb705sFLySkVzCAThIA3EfMwCC5LKqatKq2w=; b=X6XZEVMjv2lZXcUUO2jKjlrunDXYs7/HCQObdkmNlLSbyef+zYZW1mXbwVKDh1JlrC H11/DRRbdoeRaU08uihVlIO54agTGWuSI24fdNkaoC7ZW/508RzzgplyJWRCETQ6f72i S2fTLXNiWewqtlA8QViPjXFxBIV7UQy+DcdW0RCHm8h+gTnQy1b/ytnYsncTcCx41m/0 S6xy4XB4oFtjCAYPXeSolZ9MyvHEKN8ajH6/5hhBr6M/K9QjMBi+gKWmgkSN/9w5ps/+ nwmCkzGFFn6GlSs9nliH/bVbAUkxJcFYtOVTg+jn66YLmxdQRC8cvtmFK1iJ1/bGDtQn MtkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=4GwV0UbQb705sFLySkVzCAThIA3EfMwCC5LKqatKq2w=; b=eoRdEgi+S6N0f3rIeXUA8VqlFAel2ZpByTwBygSHJqTB6lZ0i5gBD+nFR3ElAQ29rl eg+SRXpmganobKjZVpZ1Leb9Ql0qQdMSmSHlXUehOU4FYxQs/rrl08uIhiz+Xv1zfcS0 fRzOhglYMHL60YDuONBCZ7nkDDYC5bq02b6iHX+gP6XZyI8WNZMJZni/JzYRzsSLS9Jx cloloDCnF7QQR0D/8CadKALiTwtXwLBtVxB+wV/qD+k4EYVU8I+LaYboya/IXPtFvpzI rujNQ4UH5323bRzY/jKPfivT2t1mHB5yRYjOtUy64efMR4t2jY9EmJpt97FusbATM4HB EYGQ== X-Gm-Message-State: AOAM531LV7cEXOcwwgQyyZ3bTMptSADOzngl1hrS6n0Js4LdN7WdMH+l 1TVGeJMa9DrxdKfwO1NKSpNMWQd+f5cJ X-Google-Smtp-Source: ABdhPJwQP5bHgoOzpFp3TTtpGU/LXL4rOWNuhpg9rKWtCDjat6Uh/iKyoXSWAuOJoZxV9sgnw0uJkIKAZySB X-Received: from yuanchu.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1e51]) (user=yuanchu job=sendgmr) by 2002:a17:90a:a50f:b0:1b8:e6ad:f63c with SMTP id a15-20020a17090aa50f00b001b8e6adf63cmr199719pjq.1.1645143047006; Thu, 17 Feb 2022 16:10:47 -0800 (PST) Date: Fri, 18 Feb 2022 00:10:17 +0000 In-Reply-To: <20220218001017.3500673-1-yuanchu@google.com> Message-Id: <20220218001017.3500673-3-yuanchu@google.com> Mime-Version: 1.0 References: <20220218001017.3500673-1-yuanchu@google.com> X-Mailer: git-send-email 2.35.1.265.g69c8d7142f-goog Subject: [PATCH 2/2] selftests/damon: make selftests executable From: Yuanchu Xie To: Shuah Khan , Markus Boehme , SeongJae Park Cc: rientjes@google.com, Andrew Morton , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuanchu Xie Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=X6XZEVMj; spf=pass (imf04.hostedemail.com: domain of 3B-QOYgcKCCIWS8LAFSEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--yuanchu.bounces.google.com designates 209.85.210.201 as permitted sender) smtp.mailfrom=3B-QOYgcKCCIWS8LAFSEMMEJC.AMKJGLSV-KKIT8AI.MPE@flex--yuanchu.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspamd-Server: rspam07 X-Rspam-User: X-Rspamd-Queue-Id: 3949D40003 X-Stat-Signature: 9f151fbkpkm9pzwajhx1dsqiobd6axjz X-HE-Tag: 1645143048-975390 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000438, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The damon selftests do not have the executable bit on. We fix that by setting the x bits on the .sh files similar to other existing shell selftests. Fixes: 9ab3b0c8ef62 ("selftests/damon: split test cases") Signed-off-by: Yuanchu Xie Reviewed-by: SeongJae Park --- tools/testing/selftests/damon/debugfs_attrs.sh | 0 tools/testing/selftests/damon/debugfs_empty_targets.sh | 0 tools/testing/selftests/damon/debugfs_huge_count_read_write.sh | 0 tools/testing/selftests/damon/debugfs_schemes.sh | 0 tools/testing/selftests/damon/debugfs_target_ids.sh | 0 5 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 tools/testing/selftests/damon/debugfs_attrs.sh mode change 100644 => 100755 tools/testing/selftests/damon/debugfs_empty_targets.sh mode change 100644 => 100755 tools/testing/selftests/damon/debugfs_huge_count_read_write.sh mode change 100644 => 100755 tools/testing/selftests/damon/debugfs_schemes.sh mode change 100644 => 100755 tools/testing/selftests/damon/debugfs_target_ids.sh diff --git a/tools/testing/selftests/damon/debugfs_attrs.sh b/tools/testing/selftests/damon/debugfs_attrs.sh old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/debugfs_empty_targets.sh b/tools/testing/selftests/damon/debugfs_empty_targets.sh old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/debugfs_huge_count_read_write.sh b/tools/testing/selftests/damon/debugfs_huge_count_read_write.sh old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/debugfs_schemes.sh b/tools/testing/selftests/damon/debugfs_schemes.sh old mode 100644 new mode 100755 diff --git a/tools/testing/selftests/damon/debugfs_target_ids.sh b/tools/testing/selftests/damon/debugfs_target_ids.sh old mode 100644 new mode 100755