Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1100149ybt; Tue, 7 Jul 2020 07:49:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ53Dn3gd87mEqspTQX765+GsQfWzIEJl5tgu5Yk1rLDX93ffNl/AMqnW8StZYlhe2JrzH X-Received: by 2002:aa7:d446:: with SMTP id q6mr62250749edr.218.1594133382128; Tue, 07 Jul 2020 07:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594133382; cv=none; d=google.com; s=arc-20160816; b=iYCAt0nXwQkuvOBysVj4ylaP3Tbg+fQXZAo9fsDK4unQMTltuUzHlQHpo9OJDXrdFU F72iPPoY7kqCDE85E662/ccIKwVWnAsie8/7jsdn+6KOhBoX6HPVrZ+94YsFIqfdgRoo BCo2BmhwEy8FpIyGU5hstCe24F/eKiQl/j0M5DpajbXZTK77tW/FwyC5aoRcVr/XbZyP vqcYupb8+OOcMxoI28uc/qmt2fx3qIUsH4knLuoXZMrYEKkGiQVqGYkAZO+pVmFglEGf O+9vydR7Vscw7F7iGBuEfxlmTjHkDqk9jSuJXt1TMjdvLZfSi7ilVZPm4A8C6EP543bw rI7w== 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=AupUXf/2yYQAenWHhe6VS7Lvgc/Tu2BXclDjheInr8Y=; b=Um164soMmu1CjlJaWAiY5+X5rNB23AuOPf5gjYgFkyN5dl5ZBonuevm5GY33WdiRR1 ZlxYk+NTjh5bXHRy2VpD7DIXWjCmlqCCafx1mXZNMLOks5kwnnuwMkT8KYtVQagZgdJT Hp+JlfVoqTp+MPnsnkLWv7F60qoPpZyRRlvUre9nGrzLHHR1X0xh5conrsuaHIAYkQhn ql2+nWdcGif5wsxkLyOFGNkCEoEyKvXQVvEc/Mgm3k6YoI2ptfhwzlmVBUwFsTspu73J TX+f3KLyerpqOPvZNngrl79qVHZ9GA05eMeFkjdY4mqofcBpYKx6zxIgowk4O+nxTh+f 2ZsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=JoGtAy5n; 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 c22si14327480edy.549.2020.07.07.07.49.18; Tue, 07 Jul 2020 07:49:42 -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=JoGtAy5n; 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 S1728249AbgGGOsE (ORCPT + 99 others); Tue, 7 Jul 2020 10:48:04 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:5947 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727793AbgGGOsD (ORCPT ); Tue, 7 Jul 2020 10:48:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1594133283; x=1625669283; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=AupUXf/2yYQAenWHhe6VS7Lvgc/Tu2BXclDjheInr8Y=; b=JoGtAy5nGtQQQkKnb01sS2p7Am9nkYU1QkjTeDsK0q13nhbjgD1X574p cGs1Un1QO7zvmKuem1LDMJ7wu6Q1V8xOYXLaFC2RDna2l9HUItW7WiMwI tvMPg56DP7hytF2maNi/L+jjHFwHd3ATcarNJN2s6L6EG6mpP52lGpc0U M=; IronPort-SDR: Zp2llwX0WICBmzIodHLETEm4sHF3+GGS8GCV2nUedEg7vbAqcxrF5BI8zJkNdo7Wcvr7vmt39M /79Ve6ZgyzVA== X-IronPort-AV: E=Sophos;i="5.75,324,1589241600"; d="scan'208";a="56719949" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2a-22cc717f.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 07 Jul 2020 14:48:02 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2a-22cc717f.us-west-2.amazon.com (Postfix) with ESMTPS id 41FB0A184F; Tue, 7 Jul 2020 14:48:00 +0000 (UTC) Received: from EX13D31EUA004.ant.amazon.com (10.43.165.161) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 7 Jul 2020 14:47:59 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.161.214) by EX13D31EUA004.ant.amazon.com (10.43.165.161) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 7 Jul 2020 14:47:41 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v5 04/11] selftests/damon/_chk_record: Do not check number of gaps Date: Tue, 7 Jul 2020 16:45:33 +0200 Message-ID: <20200707144540.21216-5-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200707144540.21216-1-sjpark@amazon.com> References: <20200707144540.21216-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.214] X-ClientProxiedBy: EX13D35UWC001.ant.amazon.com (10.43.162.197) To EX13D31EUA004.ant.amazon.com (10.43.165.161) 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 5cfcf4161404..ef28d4f7aca1 100644 --- a/tools/testing/selftests/damon/_chk_record.py +++ b/tools/testing/selftests/damon/_chk_record.py @@ -36,12 +36,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] @@ -55,9 +52,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