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))); 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))); 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; 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;