Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2898022pxa; Tue, 18 Aug 2020 00:29:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy33UaP6nx5xfPV0B6SPa9LwFbjoiFdYa6yC6yHamQ0kbKbMSvQJOvVDASgNdGQpHQ3ANhs X-Received: by 2002:a50:d942:: with SMTP id u2mr19351346edj.0.1597735740996; Tue, 18 Aug 2020 00:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597735740; cv=none; d=google.com; s=arc-20160816; b=QAIgbu/2nFcY5cYbXTuvCtY4UVye8jvyHBK5SV9fEPR41NQNCK3Bs75AsFieAx9IRj Pk84Em2iq3/+3RjK4QTVEfrzUDjFCiIDJWA09CZy/AgWlLjp4QQz+kPRqsxsaoaBCdda Imbovd+tvkrEm4mH0tZfLFFoJvpTQ4lI/5bnhk/ieu+1/218mVK9pt9nKQrvVOPXALCD vg+uhhRak8or79ig91ET4jht9TeLKNS5DskmfJ/crhQbdRYpWuCdGTJrDPRYm8rAx4qA ZH6oiVAN8oB8bh3FXJEv4z340gbNxgvVQ/NA3uVrl+EyWe6HH2InwMDzURq3u8pcMSNo Edgw== 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=QQGKhL8y/G3P/xK/Ls/lcReNQNd8zt4WNmaq6nG0HqCIyOzNVnetg2Haze/lH8iM8j yhJpBwbR3kM3S+6fy65+Dvssifppk2I9Nw1E3ItmpLhghwJGgeOuWB48zj2/gRMoHO6K VBtx4kvG5g7u9ZScmBejtk6zME5BcY1XJclhkIjTIYca2fHJV2i0MTMr3LY51twD6uA4 TUkVhIAXWu7ou6geQT3OW639gnod3ZI9x6nnLHo3orUn82dmlxzsgx+2UM1TTq6rvPeT /pnWkKLlDAYD9N9byj7O+5H6a1vucfYrAqBhfplIkzStirkm4w77XFE71UHltvOpsLl9 zPsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=PPgev+ZQ; 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 e17si11804734ejx.78.2020.08.18.00.28.37; Tue, 18 Aug 2020 00:29:00 -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=PPgev+ZQ; 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 S1726697AbgHRH1L (ORCPT + 99 others); Tue, 18 Aug 2020 03:27:11 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:19919 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726343AbgHRH1D (ORCPT ); Tue, 18 Aug 2020 03:27:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1597735622; x=1629271622; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=IDHkic1gYAf9g3QrAFwx1LEoduynRqvj1VEruhEXvww=; b=PPgev+ZQlHZYmhPlZ4sRv4XlmQ5EqQZs6dVKc/z8QNvp+94RHFNyDaZn fsFE7uPIgvJd/71x3Ntoy7gpR+Tu/6oEqKEzBKo4dGfI0bnXP6pkR0qQy FHx64yd9mqBYNzdGgGrkYZvJCTEvDQ3wETEk4QmBdP32TxEMMkvM9ooyg g=; X-IronPort-AV: E=Sophos;i="5.76,326,1592870400"; d="scan'208";a="68776218" 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; 18 Aug 2020 07:26:59 +0000 Received: from EX13MTAUEA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1a-67b371d8.us-east-1.amazon.com (Postfix) with ESMTPS id 9F35AA1E78; Tue, 18 Aug 2020 07:26:47 +0000 (UTC) Received: from EX13D31EUA001.ant.amazon.com (10.43.165.15) by EX13MTAUEA001.ant.amazon.com (10.43.61.243) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 18 Aug 2020 07:26:46 +0000 Received: from u3f2cd687b01c55.ant.amazon.com (10.43.162.73) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 18 Aug 2020 07:26:30 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v7 04/10] selftests/damon/_chk_record: Do not check number of gaps Date: Tue, 18 Aug 2020 09:24:55 +0200 Message-ID: <20200818072501.30396-5-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200818072501.30396-1-sjpark@amazon.com> References: <20200818072501.30396-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.73] X-ClientProxiedBy: EX13D38UWB002.ant.amazon.com (10.43.161.171) 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