Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp875724pxk; Mon, 31 Aug 2020 03:51:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXASQCA2HEv9JeQ5CSHhmkjGCaFDaEckNGSU0yGPnMcke/VAuN0yFHcI2rDlQvOGgu2vfO X-Received: by 2002:a05:6402:644:: with SMTP id u4mr631206edx.182.1598871073059; Mon, 31 Aug 2020 03:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598871073; cv=none; d=google.com; s=arc-20160816; b=j+RCv3jlsVUjEFSM8KhCiSOjdCTlxF4qYLcHvwmalZC7xM8zyaz1nkoKaRvwIucIAM mFtHdlSOpWTSTiicOwjbqzBt2QI8f3D1hdZic8f19euEjf4zqQMCRvsN8unIsxjg25wN AkejhvkEUK53yzy80/+oZpqE/g/bv7OZR7t1hxh7zMTDGK2pKhbuxhFchDu8DQmR24WA 6J8b1AxIyL90tPvsrIxJb1P8ELfmrEYt51HhP7YfzOdnHdeg68j7Gn5+OyWriE46yZEG 2xtkpOZJzxgKt3/TDBCe77+XJQyHyLUqKs5H+P58ZGWeicuPycBnPRZM+M1yoNByXN5Y wMDg== 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:dkim-signature; bh=IDHkic1gYAf9g3QrAFwx1LEoduynRqvj1VEruhEXvww=; b=r7qHmNmckMyUyaYkRvYxDpoyMG8jsebRPVhbheF0FKRx041VvA6Le5i3D5B+LTjBi/ ocheVCAyUI/DUgyvQmF5dLmTnZCiDQnggaD7qPE7hksw+C/rfSSpMauaM6LDK+Dijo7k EwezKbbdmunJuHQ5yVgaUJXGCS2tkiGj7IJIG26AHAnrZQcPuTtjtbNBofdGjCNNS3+F eb9Riy+8E36ZPp/KKCRJTETUjFpaJxldETK8U6OVkPEJSykZnL9A7DiR1SNHU/seqFSR qkwqwCyq+QOrjroQhvO3g+g/zbCq1uCEb1qClp9W9TpJqeFH6taRBcvAP0g8EgEGBFnW pW1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=W36zoldO; 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 r25si4334910edy.478.2020.08.31.03.50.50; Mon, 31 Aug 2020 03:51:13 -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=W36zoldO; 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 S1726873AbgHaKtb (ORCPT + 99 others); Mon, 31 Aug 2020 06:49:31 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:41044 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726121AbgHaKta (ORCPT ); Mon, 31 Aug 2020 06:49:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1598870969; x=1630406969; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=IDHkic1gYAf9g3QrAFwx1LEoduynRqvj1VEruhEXvww=; b=W36zoldOZS3F37t67SxARmTJLcm8VbAIBqGZuLTz+vqbx1g+/Azs031l 9KOgI/9B8fcdxXJ7bmnPxK5+W2P2myXnw2/gJ5LttsDGrJqhn0iE2SAub kWkh7eblF4PNYhbo1DYkqb5yMuliT0WCUxksz1gBaPbXkU9Flqj0rICd8 I=; X-IronPort-AV: E=Sophos;i="5.76,375,1592870400"; d="scan'208";a="50991436" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-2a-6e2fc477.us-west-2.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 31 Aug 2020 10:49:25 +0000 Received: from EX13D31EUB001.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-6e2fc477.us-west-2.amazon.com (Postfix) with ESMTPS id DFDA2A218C; Mon, 31 Aug 2020 10:49:13 +0000 (UTC) Received: from u3f2cd687b01c55.ant.amazon.com (10.43.160.100) by EX13D31EUB001.ant.amazon.com (10.43.166.210) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 31 Aug 2020 10:48:56 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v8 04/10] selftests/damon/_chk_record: Do not check number of gaps Date: Mon, 31 Aug 2020 12:47:24 +0200 Message-ID: <20200831104730.28970-5-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200831104730.28970-1-sjpark@amazon.com> References: <20200831104730.28970-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.100] X-ClientProxiedBy: EX13D49UWB002.ant.amazon.com (10.43.163.68) To EX13D31EUB001.ant.amazon.com (10.43.166.210) 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