Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp266859pxa; Wed, 5 Aug 2020 00:05:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6r1SJdWqwhLqpMhEYMNrRvoKskYgQDSlcaiKQ9cHgbkpKRtB0Jp7xdhZpPSpPMEzo52W4 X-Received: by 2002:aa7:d607:: with SMTP id c7mr1495726edr.184.1596611143342; Wed, 05 Aug 2020 00:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596611143; cv=none; d=google.com; s=arc-20160816; b=UBCCv50dPcvjlGhuJN8vWOH9HfdbwYaQ0kHZ3ed6Q/y5DzAWxa7DJWS1sOWLsw/W0K YfHN4l80SmMhJt56nGnMxl4sm3eKZufA1ESuBPUwJ4lGJX2iNabg/W5pAP1WtWo+T1wG r3/4GaLNvkxdxSEuU7YLH6/DlZXiM/HK0TYD68QlC/3H3GpaVtN44pug54R0kMMwpAn+ 0E/mig4+wpSYl/Xf2ntt/f1DtQR8LvddglCbHlHV9Vu6SgDMpN7lxSFKZl0Sxc4EtXCm wPvqyshNzW8C2cVKEAUjXIHJjQX3kOT5dNS2mfQWRfLwCDREKKpqRhAlfLib0lmkPltg aHUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=IDHkic1gYAf9g3QrAFwx1LEoduynRqvj1VEruhEXvww=; b=r21tNfmmiBpJkxMuPmnnqvumSvapXYuMU+Qlb8lGaRtN+lrycN5FitJTGHW1+4gqnN dz6lOLyFAzlKbQnv/2ZwY9BlXIX/70NMrNxLiWTZw7S9TgFIB1zzPNDPSaCOt2fF9P2I wwI12GysmPyBjqpP99ZN1n6o56S7w/YuyuW5WsBJVqGgxdG1tG1mJzvFwRYAwehHOyp3 LtQQRSoECXYEfammSEAJ2XW3DKmPdxQe8w25WtZdxiE5phfQVFPV6N8UIrK7daZWZkeA b9172Rjx6cRp8x6/RE5hwK9pYsgvZzhI9art1d4cPvfO2UGeGKyddE3hCoXsxy2jsF1d za2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=Y4aBlbTC; 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 z7si691224edq.250.2020.08.05.00.05.20; Wed, 05 Aug 2020 00:05:43 -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=Y4aBlbTC; 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 S1728231AbgHEHCE (ORCPT + 99 others); Wed, 5 Aug 2020 03:02:04 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:3222 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgHEHCD (ORCPT ); Wed, 5 Aug 2020 03:02:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1596610922; x=1628146922; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=IDHkic1gYAf9g3QrAFwx1LEoduynRqvj1VEruhEXvww=; b=Y4aBlbTCmdFmbXrzdxpCgdh6mwT9uP6RNo0xn3TTKb5j5Ui62+7gWATz cuAL3M5+S1upeKkxt7LahQijflR6nR5Dizrw6YKxrYmXJvXi/s3XjaFPf M+hFt+lFh95fiPJXmt62yGzHfq7OA5mkOPnKiZSyqXclcrEsjCrCaFQ34 I=; IronPort-SDR: VOSuVAQNmVmnkRJ33tHLZy+bz82TXYjhD5rE7LmDVaa7W/v0JRZaU5PfMH4CYfBt2B1lqgnwX6 S1I3du9u8ZMg== X-IronPort-AV: E=Sophos;i="5.75,436,1589241600"; d="scan'208";a="46045920" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1e-27fb8269.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 05 Aug 2020 07:02:00 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1e-27fb8269.us-east-1.amazon.com (Postfix) with ESMTPS id DED04A2272; Wed, 5 Aug 2020 07:01:49 +0000 (UTC) Received: from EX13D31EUA001.ant.amazon.com (10.43.165.15) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 5 Aug 2020 07:01:48 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.160.26) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 5 Aug 2020 07:01:32 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v6 04/10] selftests/damon/_chk_record: Do not check number of gaps Date: Wed, 5 Aug 2020 08:59:45 +0200 Message-ID: <20200805065951.18221-5-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200805065951.18221-1-sjpark@amazon.com> References: <20200805065951.18221-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.26] X-ClientProxiedBy: EX13D24UWB002.ant.amazon.com (10.43.161.159) To EX13D31EUA001.ant.amazon.com (10.43.165.15) Sender: linux-kernel-owner@vger.kernel.org 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