From patchwork Fri Nov 17 20:15:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 119221 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp1070390edl; Fri, 17 Nov 2017 12:32:37 -0800 (PST) X-Google-Smtp-Source: AGs4zMbABD5gGsXGDrG+HprW2VY6Ma8ksTZrRAjb/9Q68ZYLc0aqiZDrlC61qDwAw8cyWYRBe5J/ X-Received: by 10.159.246.134 with SMTP id c6mr6334039pls.371.1510950756887; Fri, 17 Nov 2017 12:32:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510950756; cv=none; d=google.com; s=arc-20160816; b=n2f5Bg8Tp20I+OQYYta48X+k3QuQbBwqfulSU51T1wVWjzkNDtSE0lLLbzcuexDhiP qiKNwLAO5cshwz2Vlz4l2kocIR+aQPv9btCn/03sYwyfIyKPqtbOYIEDHn+sDpfhwFM+ 5vTlC+pkawCmG8KfkrHKy9cqFHVCQO9q3XDVVUESucvukdlY3a28KD2Se/cyHYmS0XPj daVDtTTUqo/eoQtwnyMDZH942NQ0Gpj79gCWFMp8IYS4+u6F9P381o2Ps48paujyof1u 9Shw5E/8cpvdiysG8FfXya9XaiEhCoTUWtsmjcs/KrOCXgVqmJFuRG0O0idUWbCkZJmU M9zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:arc-authentication-results; bh=95IT51HUbpoJlSxJScoHq0CwbGCHyiLVY2+tUgN0KT4=; b=SrYBkgSdHmraUtKkOK/cUHBxwGGL26LWpG+aeRts1QYK7y/EY5aWSgH2tEzzpJxWIv BPmWAH4OC9ckFKo+S2ynQn4k5yBE2xQvYMBrqzIaxFmTFT1oh7ooGoEACaOhrnggJjBp OMcB/md0jsYODeZs32LAYD3Uwj8Z0qjDGaYitLB088tVLs3M0jQyEF73v7ika8URFgUD 4v/pM4PguYzHRBtuF0v+u7kkls+eVL2bDZK7k9wFS5CscVBOq4AnXcAfUVbRCgxIl+VO 51qHEu/EVOu0x/vECt4JYW0BZfX+wl4RfviBCCm94EkMrN4IOGzExbaZUzcA1+kGSt+T SjcQ== 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 g7si3447052pln.421.2017.11.17.12.32.36; Fri, 17 Nov 2017 12:32:36 -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 S935792AbdKQUcd (ORCPT + 28 others); Fri, 17 Nov 2017 15:32:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:58622 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758955AbdKQUTQ (ORCPT ); Fri, 17 Nov 2017 15:19:16 -0500 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id CB6DE218B2; Fri, 17 Nov 2017 20:19:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CB6DE218B2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=acme@kernel.org From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Wang Nan , Jiri Olsa , Kan Liang , Namhyung Kim , Arnaldo Carvalho de Melo Subject: [PATCH 53/83] perf tests: Set evlist of test__basic_mmap() to !overwrite Date: Fri, 17 Nov 2017 17:15:31 -0300 Message-Id: <20171117201601.24110-54-acme@kernel.org> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171117201601.24110-1-acme@kernel.org> References: <20171117201601.24110-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wang Nan 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 Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20171113013809.212417-5-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/mmap-basic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.13.6 diff --git a/tools/perf/tests/mmap-basic.c b/tools/perf/tests/mmap-basic.c index 5a8bf318f8a7..91f10d6d9ae2 100644 --- a/tools/perf/tests/mmap-basic.c +++ b/tools/perf/tests/mmap-basic.c @@ -94,7 +94,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;