Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1068921pxx; Tue, 27 Oct 2020 07:34:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIlzTwhralKBM5U6KVSXkv5bfN1X4y2Uj9KOThGTgq+iPdFiAI73xML8LEZCmaHvyT8UJr X-Received: by 2002:a17:906:1f08:: with SMTP id w8mr2687151ejj.181.1603809278769; Tue, 27 Oct 2020 07:34:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603809278; cv=none; d=google.com; s=arc-20160816; b=jkfjRVaUYbz+WSGnzRJZO435BqzCprfzjEFeaZJ3dpTlXy5GZnUf6N4ph6KaBWIwIK axaOSbMhvsdQzd9ymvK6iWiwpWs34kgpjwqrlBh60ioO03ugweyNWkH9xzI6bBJTGvOr JU6ODrtyOPT6Wdg5Ghatyn3nRvm2brdYebAr8Z9Eaq3aGfDBQnfrorJlccBlUFXUYInu hzzAIaJqnLqOrWs7AFxFChAE2eSmAI4/tSA8vdbH/6HtPsjPvrvh/+WXRp7u21T2OpFG 8xJbrIrO1qD7Pc5aOPP1uYdcWmC7DrtgrNZRLLeWL4dR0XugYtFfQRtRjRA2C1JWdAzn zeEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=rZ3BKDGffzkFSRtUQi7xiXRpEvYLHfbAKGMc0w8SvvY=; b=xaHsTybcKnEPZLtHirEhtfIuORBsOuo8R5JOTiyyd3kMb7Kb9W9Z10LPvTwUoZ36sW KrCO3gBDCn8HKovpbxpo1Hyo4A6gitiKH2oeVJ1yBts0kH2pid4tFCoPTTSdDf6SH6ub uFf/emC4BUwf7ErZHKJkI4LXWVjCY1WFSoA7fzL0iLGvbbjapEid1vbpDnJX/njjI0B9 +vu1IHNogdtVctHMOBFWCp/1/lv8m1aLFmMKDIKz3+/WBTabtvhDHl8771Ddt9AyU9To 4sZTX0ocyV9VD30FnJum9F0TQ1lysCLlEkGU+2DTn2YuEpatN68FW/50oKanPzYZkRQC 7MFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si1209866ejc.181.2020.10.27.07.34.16; Tue, 27 Oct 2020 07:34:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2898314AbgJ0KcZ (ORCPT + 99 others); Tue, 27 Oct 2020 06:32:25 -0400 Received: from foss.arm.com ([217.140.110.172]:37704 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2898300AbgJ0KbW (ORCPT ); Tue, 27 Oct 2020 06:31:22 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1D5B230E; Tue, 27 Oct 2020 03:31:22 -0700 (PDT) Received: from [10.57.11.195] (unknown [10.57.11.195]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 27AB73F66E; Tue, 27 Oct 2020 03:31:18 -0700 (PDT) Subject: Re: [PATCH 4/6] kselftest/arm64: Fix check_mmap_options test To: Vincenzo Frascino , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: Shuah Khan , Catalin Marinas , Will Deacon , Gabor Kertesz References: <20201026121248.2340-1-vincenzo.frascino@arm.com> <20201026121248.2340-5-vincenzo.frascino@arm.com> From: Amit Kachhap Message-ID: <7a719ad9-0eef-5f7a-be5a-f2194d774d74@arm.com> Date: Tue, 27 Oct 2020 16:01:16 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20201026121248.2340-5-vincenzo.frascino@arm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/26/20 5:42 PM, Vincenzo Frascino wrote: > The check_mmap_options test reports the error below because the test > plan is not declared correctly: > > # Planned tests != run tests (0 != 22) > > Fix the test adding the correct test plan declaration. This change is required and got missed earlier. Acked by: Amit Daniel Kachhap > > Fixes: 53ec81d23213 ("kselftest/arm64: Verify all different mmap MTE options") > Cc: Shuah Khan > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Gabor Kertesz > Cc: Amit Daniel Kachhap > Signed-off-by: Vincenzo Frascino > --- > tools/testing/selftests/arm64/mte/check_mmap_options.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tools/testing/selftests/arm64/mte/check_mmap_options.c b/tools/testing/selftests/arm64/mte/check_mmap_options.c > index 33b13b86199b..a04b12c21ac9 100644 > --- a/tools/testing/selftests/arm64/mte/check_mmap_options.c > +++ b/tools/testing/selftests/arm64/mte/check_mmap_options.c > @@ -205,7 +205,11 @@ int main(int argc, char *argv[]) > mte_register_signal(SIGBUS, mte_default_handler); > mte_register_signal(SIGSEGV, mte_default_handler); > > + /* Set test plan */ > + ksft_set_plan(22); > + > mte_enable_pstate_tco(); > + > evaluate_test(check_anonymous_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE, TAG_CHECK_OFF), > "Check anonymous memory with private mapping, sync error mode, mmap memory and tag check off\n"); > evaluate_test(check_file_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_PRIVATE, TAG_CHECK_OFF), >