From patchwork Fri Nov 17 20:15:30 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: 119223 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp1070672edl; Fri, 17 Nov 2017 12:32:58 -0800 (PST) X-Google-Smtp-Source: AGs4zMYh5saErIM0hnQpRzdvngx2MdZA31oAGmLwZeZFpIFOYfbIhmMmubRIdEbqFiwZ+0YXrCLy X-Received: by 10.101.80.200 with SMTP id s8mr6255555pgp.23.1510950778259; Fri, 17 Nov 2017 12:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510950778; cv=none; d=google.com; s=arc-20160816; b=GGsoJexnIzZkraiBgx5LNDf2mt7CzBh08BX/c+ql/gY89m21oZlznaAnJLmGSKf0no kiWGFziYrejUjn7ySkYYLw9pwEVV2lmayof5unt5D6frv6boWJU4eK4bUj2jHzFdts1R kLsz3Frl80W1wG7nXLuTCDDlHizjLQqdNpC/shYqlLuRS2d/plSFQm3o8n7MaeDO6gMs h2d2K7QElJGhPC2qwiezZUtYWFRdaQ01KG4hVYAhzc14ikTNkes2kd0RbTIh7frjDjtB FbwXXY/e0JPxQfEXpfTGcaI5YdDzgsRAuLDo68NxxYhkJ9ssWCBVoYAWlFubXzFia43C K43w== 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=Gn4Z6j4H9LY6z8XgjrFu+irxZ1lkYRVxzJF+75wRGdw=; b=wM7IunVyE9eXJ0jOt//uNnAse0eIMEVG8qYOcMYM57A02MwN8Hnl78F0lkmXPfdzyh HM5NkZSb6uRPyLpRUuoCq5KkAgsrrwIB+j/kQMDStRgpLeeypfBIvCHfCSkBw8kJNLAC jR4t/1xdIK/BtnvGFXAo6b1lwkUxedKJ8loJK5TFnyxeOB7PFyOyfGL6PnoPrnDRteth iS0qggn6JfHot/yALdMKoCDCNpe23sNjwQBa6KiE/JF8F10e/0PeehJxQBeYKnec+vRT 6dAmj/54Brh9cRiZLCAp34djdDNgnPOiQsESq12oZx40KTs82iVKNSPLsWk/AqUqMy9Q mLmw== 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 f2si3295963pge.67.2017.11.17.12.32.57; Fri, 17 Nov 2017 12:32:58 -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 S935827AbdKQUcz (ORCPT + 28 others); Fri, 17 Nov 2017 15:32:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:58782 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755002AbdKQUTP (ORCPT ); Fri, 17 Nov 2017 15:19:15 -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 D9A5C2197C; Fri, 17 Nov 2017 20:19:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D9A5C2197C 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 52/83] perf tests: Set evlist of test__sw_clock_freq() to !overwrite Date: Fri, 17 Nov 2017 17:15:30 -0300 Message-Id: <20171117201601.24110-53-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 Unsetting overwrite when calling perf_evlist__mmap is harmless. This commit passes false to it, makes following commits eliminate the overwrite argument easier. Signed-off-by: Wang Nan Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20171113013809.212417-4-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/sw-clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.13.6 diff --git a/tools/perf/tests/sw-clock.c b/tools/perf/tests/sw-clock.c index 725a196991a8..c6937ed12e6b 100644 --- a/tools/perf/tests/sw-clock.c +++ b/tools/perf/tests/sw-clock.c @@ -78,7 +78,7 @@ static int __test__sw_clock_freq(enum perf_sw_ids clock_id) goto out_delete_evlist; } - err = perf_evlist__mmap(evlist, 128, true); + err = perf_evlist__mmap(evlist, 128, false); if (err < 0) { pr_debug("failed to mmap event: %d (%s)\n", errno, str_error_r(errno, sbuf, sizeof(sbuf)));