From patchwork Mon Nov 13 01:38:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wang Nan X-Patchwork-Id: 118689 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp1251645qgn; Sun, 12 Nov 2017 17:40:16 -0800 (PST) X-Google-Smtp-Source: AGs4zMbJLNGYaWkuuqvEoRek71tFjg0hz4yKRDdwOnfwKFcht+a9flJRbBIjf8PZ46bywjykJ2UH X-Received: by 10.98.219.134 with SMTP id f128mr7962593pfg.85.1510537216260; Sun, 12 Nov 2017 17:40:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510537216; cv=none; d=google.com; s=arc-20160816; b=chHbcasaIvts09JRI255/4p7m3AIWNRvM3teAYwFaR1t15mHPDwix/hk1Vb0206Sfj WXpivA6r7Zm/+iTG5FCjrXYhutDwJG7UMjLUVuhaqvSEIXZsDalgSvxZkVjDefNNX/rZ dHjodDSyQrB11OvGjJBFY5JlCT2s2V6r4Tz0zZqY6K/xGdTiEeTuR2iebBSBWYT2awIm irWYxmL1P78/q3Pk/gspquZwRRtWiV1IPBue/XXDbzEocM0Me3oan0dYrhRN9pj0Id/j kvnu7oQtQ0TnoutUWakWHvVxuwOD2MoVngybFDcysaRQA2TyBr6tuso56r8LDEBjhbkL FOcA== 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:arc-authentication-results; bh=fPighhHqeqfGVH8QGpLtSP8Ea2C26AgoI8IS1iwujEc=; b=GRCqwKdQZ8uZI6lthmqDn+RixUTw3Joq5P8+jd4YcWQGBetSLpU03ch1j6Qx6nbBMN dWshld7AeNHeEsefpgWNXsA2n6BerdcT+foEbAs8mjUkTwd5CON+kIRt6w3xi2zvC2Zy CkyveAZrVLgJPZ+M+WlNT19/Vyr+y2+AFeleQOjtwxIUHDwfrJdUW+488x/b3FeGBlCr 8UlVR14XKM6x8BndvDhXxdW6MUjGSqQ/GmG3EuenlRYPyhMF3sXfUfCvPVWop4iU+gEl d02b0mE0Kac1+BDnF9DRn+5xlDj7Ebp6EAXLmNw+nbq1OpHU+ELyKLCW+bj8wsIEuaZm TXMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si13416153pln.402.2017.11.12.17.40.16; Sun, 12 Nov 2017 17:40:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751668AbdKMBjh (ORCPT + 27 others); Sun, 12 Nov 2017 20:39:37 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:10462 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751113AbdKMBje (ORCPT ); Sun, 12 Nov 2017 20:39:34 -0500 Received: from 172.30.72.58 (EHLO DGGEMS403-HUB.china.huawei.com) ([172.30.72.58]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DKS06520; Mon, 13 Nov 2017 09:39:25 +0800 (CST) Received: from linux-4hy3.site (10.107.193.248) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.361.1; Mon, 13 Nov 2017 09:39:07 +0800 From: Wang Nan To: , , , , CC: Wang Nan Subject: [PATCH 4/7] perf tests: Set evlist of test__basic_mmap() to !overwrite Date: Mon, 13 Nov 2017 01:38:06 +0000 Message-ID: <20171113013809.212417-5-wangnan0@huawei.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20171113013809.212417-1-wangnan0@huawei.com> References: <20171113013809.212417-1-wangnan0@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.107.193.248] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090201.5A08F7CE.0011, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: a9451d5a7e61203513dc7e0109666185 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In this test, a large ring buffer is required so all events can feed into, so overwrite or not is meaningless. Change to !overwrite so following commits can remove this argument. Signed-off-by: Wang Nan --- tools/perf/tests/mmap-basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.10.1 diff --git a/tools/perf/tests/mmap-basic.c b/tools/perf/tests/mmap-basic.c index bc8a70e..667d696 100644 --- a/tools/perf/tests/mmap-basic.c +++ b/tools/perf/tests/mmap-basic.c @@ -93,7 +93,7 @@ int test__basic_mmap(struct test *test __maybe_unused, int subtest __maybe_unuse expected_nr_events[i] = 1 + rand() % 127; } - if (perf_evlist__mmap(evlist, 128, true) < 0) { + if (perf_evlist__mmap(evlist, 128, false) < 0) { pr_debug("failed to mmap events: %d (%s)\n", errno, str_error_r(errno, sbuf, sizeof(sbuf))); goto out_delete_evlist;