From patchwork Fri Nov 17 20:15:32 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: 119222 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp1070540edl; Fri, 17 Nov 2017 12:32:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMY1hZLCXz+jA6FLrvVaLajK3997kyrBFI2R3VviR3KLGieKOqtWIrRL65dVjLGyEBnVjajG X-Received: by 10.84.195.228 with SMTP id j91mr2197344pld.120.1510950768139; Fri, 17 Nov 2017 12:32:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510950768; cv=none; d=google.com; s=arc-20160816; b=SSHuXNLLEj65/X7ep/hIE2VEqu0E17insuKoLZieS0MjWj4TZoQyLRIdH5ht/0hUoy fCvRcvE9C4xdCat2agqJaiqMDi/Vv9IAbeVyFSJZ6GYbWeV3K+UxUsiYzCnG2Vt693Ac xd9vk6OiHm33Ys0+1/kGYMcxlg3YwHOGSlbZmFryoVOMdJsqqLwtNtbK1saXTnGTYdRc 8VIKfeJJHjpdM3oEc/dGrj3JdeU8qpb9rNJxRPDEtIL6VKUtE2gyMV9uycB7QQVFdOJ0 j+jg2Y1kBAoOczmi9GHpoV+C8Q+iXgVIAeVABxdYIVbDJkhlf5Jfb2T/0G18O6+4iFpt K4fQ== 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=GB2fxmkDBea2KGOG14HCOKSMOejyOH0yythnX/TG75Q=; b=NZ3HhojyRNoWvLaw9o7TzCytdqHLddDAwkWfY8kKrvBH+OKhdjd0Cp50GXiq+3BpwU 2NZK5w6YqPexGAwLK/Kj2wREkmBQLQ70Dtpx+FnH0OfpvSMlKhRXFLIdJYjGDLAuwoZ6 x9rUPAeH1H4YFqRa0mUIqdbLOkws2+Qu02QlRQ7KN1PdPWqaN8vTTvJD42hlHxri9/Ma p/4GAXWtU146Z3RYQU4bIJp85bSltXGWTUDAE8rWuHQnwXqrqHEg44RXVO4SNalcwhqr BivIURy/xQFt2moXOGiVNDcqK2lw3QBDkKws9uvZX4598Z0HiEBKzrRCPsEQI0mmTKpL c2OQ== 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 z5si3315954plh.282.2017.11.17.12.32.47; Fri, 17 Nov 2017 12:32:48 -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 S1161943AbdKQUcp (ORCPT + 28 others); Fri, 17 Nov 2017 15:32:45 -0500 Received: from mail.kernel.org ([198.145.29.99]:58806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758960AbdKQUTQ (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 B60A52197D; Fri, 17 Nov 2017 20:19:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B60A52197D 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 54/83] perf tests: Set evlist of test__task_exit() to !overwrite Date: Fri, 17 Nov 2017 17:15:32 -0300 Message-Id: <20171117201601.24110-55-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 Changing ringbuffer to !overwrite in this task is harmless because this test uses a very low frequency (1) and using a very simple program (true). There should have only 3 events in the whole test. Overwriting is impossible to happen. Signed-off-by: Wang Nan Cc: Jiri Olsa Cc: Kan Liang Cc: Namhyung Kim Link: http://lkml.kernel.org/r/20171113013809.212417-6-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/tests/task-exit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.13.6 diff --git a/tools/perf/tests/task-exit.c b/tools/perf/tests/task-exit.c index bc4a7344e274..98c098475e71 100644 --- a/tools/perf/tests/task-exit.c +++ b/tools/perf/tests/task-exit.c @@ -97,7 +97,7 @@ int test__task_exit(struct test *test __maybe_unused, int subtest __maybe_unused goto out_delete_evlist; } - 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;