Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp202343pxu; Wed, 7 Oct 2020 00:18:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyuX9jS6oaIWWLA06r9Wi2llAOEf48HOkMNC8qFBiIjiBZIOxkTVZdNesSBlyVLO9ZyfXa X-Received: by 2002:a17:906:a207:: with SMTP id r7mr2053302ejy.32.1602055119555; Wed, 07 Oct 2020 00:18:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602055119; cv=none; d=google.com; s=arc-20160816; b=flY0TeNqaVU7+fgSWdJ4Ym3jrMvHbHcOqs7036LqVSqSRwiKYXykKYHwpAWRnKeg6k pMLza85RnxW5rAQO4w4G5GKDn7g4gPWXFudJztfWdH/UeU3ttM+nvNDT6bjoZ0BEmoHt HNYPk5VD6DzEbJZ2sElFrEI4mYAY1kAPyRUQ/d2Ks7Yk8Cb6GUOZA+Vo9sG4iRL9DztX Z7ml/TI42kQfPBm+YRSFQweR+IDsIxNJwHF7pbg5jb2FByrmyxm9cMjeaaekutv9dJil +bLliHSEKAJj4PUM56spjORf+KA+ZXizU6s8MllEVh27OJcWoxevMD5XZQ/3DkJGxT/k ie3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=IDHkic1gYAf9g3QrAFwx1LEoduynRqvj1VEruhEXvww=; b=n8IwvWzbFGbrTcWHLMCyHAK33RYge/XHFbmh5EzHibtqE1hA7u/b/8roxKzhPdVFVS IkwCl75zBVdTD6JJIqD9sqylsvxTviZ2UOPASGJ4vjGvL2A5uY+q5kiZrDZGdH6I6yRo EMvlcqb/eFBe+hvKNdNBLvATZtqTyNck/ViHgSHAiyFjhNllFGoiT/17SKeWas+tPWum LvPfO4acXk6MPLgVQEvgvSRZLoqSBAOLWVB6E1z17JMGqdJi9kcMAT+N4cFpGdsF1x3m BTq24MLqFDA7Bc49hdyOihjLAj5kigvcS4WRhYvNgyMjGfbcjncBnQTNeDKAg4Bao975 JslQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=U0ZYo1To; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ks7si845133ejb.375.2020.10.07.00.18.16; Wed, 07 Oct 2020 00:18:39 -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; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=U0ZYo1To; 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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727794AbgJGHQQ (ORCPT + 99 others); Wed, 7 Oct 2020 03:16:16 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:48286 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727624AbgJGHQQ (ORCPT ); Wed, 7 Oct 2020 03:16:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1602054975; x=1633590975; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=IDHkic1gYAf9g3QrAFwx1LEoduynRqvj1VEruhEXvww=; b=U0ZYo1ToygW2+v1z0RqE4CoKq1CALw87GROj9V4BL4LFFiImosT+2A5i Lh7GGst8BWOVUowTq30HyAfJNdkGz/i0ay5LEOUFBiWTeOefMWi3Bs3Gm oOF54znMtCSyVTJtwJ2QGhw0t2uX0t6nK2I+EZejra9GSgaHLzKJBM224 s=; X-IronPort-AV: E=Sophos;i="5.77,345,1596499200"; d="scan'208";a="82208436" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-67b371d8.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 07 Oct 2020 07:16:10 +0000 Received: from EX13D31EUA004.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan2.iad.amazon.com [10.40.163.34]) by email-inbound-relay-1a-67b371d8.us-east-1.amazon.com (Postfix) with ESMTPS id 2C746A18E8; Wed, 7 Oct 2020 07:15:57 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.162.73) by EX13D31EUA004.ant.amazon.com (10.43.165.161) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 7 Oct 2020 07:15:41 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v9 04/10] selftests/damon/_chk_record: Do not check number of gaps Date: Wed, 7 Oct 2020 09:14:03 +0200 Message-ID: <20201007071409.12174-5-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201007071409.12174-1-sjpark@amazon.com> References: <20201007071409.12174-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.73] X-ClientProxiedBy: EX13D31UWA003.ant.amazon.com (10.43.160.130) To EX13D31EUA004.ant.amazon.com (10.43.165.161) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SeongJae Park Now the regions can be explicitly set as users want. Therefore checking the number of gaps doesn't make sense. Remove the condition. Signed-off-by: SeongJae Park --- tools/testing/selftests/damon/_chk_record.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/tools/testing/selftests/damon/_chk_record.py b/tools/testing/selftests/damon/_chk_record.py index 73e128904319..5f11be64abed 100644 --- a/tools/testing/selftests/damon/_chk_record.py +++ b/tools/testing/selftests/damon/_chk_record.py @@ -37,12 +37,9 @@ def chk_task_info(f): print('too many regions: %d > %d' % (nr_regions, max_nr_regions)) exit(1) - nr_gaps = 0 eaddr = 0 for r in range(nr_regions): saddr = struct.unpack('L', f.read(8))[0] - if eaddr and saddr != eaddr: - nr_gaps += 1 eaddr = struct.unpack('L', f.read(8))[0] nr_accesses = struct.unpack('I', f.read(4))[0] @@ -56,9 +53,6 @@ def chk_task_info(f): print('too high nr_access: expected %d but %d' % (max_nr_accesses, nr_accesses)) exit(1) - if nr_gaps != 2: - print('number of gaps are not two but %d' % nr_gaps) - exit(1) def parse_time_us(bindat): sec = struct.unpack('l', bindat[0:8])[0] -- 2.17.1