From patchwork Fri Nov 17 20:15:29 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: 119224 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp1070802edl; Fri, 17 Nov 2017 12:33:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMaZ8JtQ4TBHHYUwOuEHin2FPJMupnHjPyOs/UlpuVC4fUWiVnT1aVZfqxwiBfDOU4FqNwSk X-Received: by 10.98.209.8 with SMTP id z8mr3257671pfg.184.1510950787693; Fri, 17 Nov 2017 12:33:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510950787; cv=none; d=google.com; s=arc-20160816; b=cjG3szAQrWG2NcqRDm90Q6v/OVItMNCS8E/EbV4Sm5UKBf9+t/vCEmhEcI1CUVShK1 QZBrHg6ULvl64+BXb1MgOY20bwwj3uIR8bO1Rx5XatnNjSZusMSS9jww0+gdEItUD5Vn 3W0Ivha8e8HhgrhviJ1TeZB8MBXLtyRClEw2GzgH9QRZLaZnyEVAan6pk+IrCxdaQfdM 6QiS9lVlVspIxORX8Yaout67yVL1ENys3gKZXeG7zXPuZqIIsJ0z5OTRMzWTpshEqfob 1I38IPYBPjNcXmQNjPZgyDxzY69uEU0OIU657ho9g7MF6yus4SJWHQS4nZhFWP3N5uOj 3zSQ== 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=gtEKjf3HM6QCSZrVMjAdfapJCO6huEp5YYu0bVaSKp4=; b=Q33ULWFmIhkW4zlSPazXcw1FbclJ3EtioduySA5lIVTzk/qkqpowO6S5N4mOv53k/h 1QVtgWtw3OmCgcYULM3sT7qgTiDlrOS0ZAh4GKnNzX//GKnq2VKfxfdngOupgf0nYukX QRsgZhZ+GBoYJLbVDaHcN4lioQjnahozLNGFz+IeEzQh8RfDSHdU6oj8P3NZPaWNEfFK Hr1eyB9Cf5vsPwvJnyh3qaNPNKT5pyUmuGx2enuLaI/PcKnxV4M2L8RmllJMAY8us9uW vTazjJvizO+SDZ4npgqrjwLRE1uxz6lZryF+ibZj3K7nriCt5tF9Zo6//nHttmK/Fs0m ZKGw== 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 q1si3349178plb.368.2017.11.17.12.33.07; Fri, 17 Nov 2017 12:33:07 -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 S1030241AbdKQUdD (ORCPT + 28 others); Fri, 17 Nov 2017 15:33:03 -0500 Received: from mail.kernel.org ([198.145.29.99]:58780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750776AbdKQUTO (ORCPT ); Fri, 17 Nov 2017 15:19:14 -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 E2AEA2197A; Fri, 17 Nov 2017 20:18:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E2AEA2197A 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 51/83] perf tests: Set evlist of test__backward_ring_buffer() to !overwrite Date: Fri, 17 Nov 2017 17:15:29 -0300 Message-Id: <20171117201601.24110-52-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 Setting overwrite in perf_evlist__mmap() is meaningless because the event in this evlist is already have 'overwrite' postfix and goes to backward ring buffer automatically. Pass 'false' to perf_evlist__mmap() to make it similar to others. Signed-off-by: Wang Nan Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20171113013809.212417-3-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/backward-ring-buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.13.6 diff --git a/tools/perf/tests/backward-ring-buffer.c b/tools/perf/tests/backward-ring-buffer.c index 71b9a0b613d2..43a8c6ac4070 100644 --- a/tools/perf/tests/backward-ring-buffer.c +++ b/tools/perf/tests/backward-ring-buffer.c @@ -59,7 +59,7 @@ static int do_test(struct perf_evlist *evlist, int mmap_pages, int err; char sbuf[STRERR_BUFSIZE]; - err = perf_evlist__mmap(evlist, mmap_pages, true); + err = perf_evlist__mmap(evlist, mmap_pages, false); if (err < 0) { pr_debug("perf_evlist__mmap: %s\n", str_error_r(errno, sbuf, sizeof(sbuf)));