Received: by 10.223.164.202 with SMTP id h10csp308730wrb; Mon, 13 Nov 2017 06:51:57 -0800 (PST) X-Google-Smtp-Source: AGs4zMbb0Ax4gXXZlZdG02FgKgTHJSm/UmpjY/uJP9Zb4xoy62MlFG9B6EcXc9+eqzOjoiWhG9zO X-Received: by 10.98.15.155 with SMTP id 27mr10110209pfp.82.1510584717450; Mon, 13 Nov 2017 06:51:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510584717; cv=none; d=google.com; s=arc-20160816; b=KgmicwJYmwIM9zCQgX7uwnR8J9qeu6dHs3+BilxqDYHjUErTlsM/Ea0SEm7fSeBj1z WiwujaUkWimopZ8KRiW/5KeaIjwQGDpkvO7ZnMwoYX77mbVQNAduKnLq5oiH5Nf19KZq O57qHzucqBvzt9WSXvBtOYB9ZxHpfi7jVLPLIwf6E1leo0ZHVeKePEhYu/GfLrbAxRJO CiSCq4ia8Umb7a6lmHHHR3dOac3C6stZ3tGsf117ZwS7bPRv+aGueEYSsKFIYgYw1r4y 0mnlgX8vJ81VAKtk/9ilLz9/J3d+p+kKLsmfjxLaT4BD5Wt7bVp2jPJwxTsEQOXVdVKi BIAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from:arc-authentication-results; bh=eBwXxLOEK3YE+MyP/cic4sndYbMt9j8j7WHpnP/VoZ8=; b=Q9jNZ0wlXzcIr/WfXuymcrnSZB5LmsGCu34UzaB6iF0LiCrmhl+9e0fNQBXoyeU/AU VmZduatRxRCOlpHsBC9EaPvLfmSaS1bxNLcv9ga8QGsH26Kl0Hv628TpIO4/riwFVSiu iOMpSb48saap0UjQCI9FHDHItX3j0ulUcgU9QxagA+Y7OKVZPrCkOgl0Nbyp4t2d85SM 6niGhIhcHbTtAEV6Jvdt5YONxMwjnIzkCTZBqXrcLwGA0n46FRZyHsBUT7uVcze4ltda +Hl+4fXNPQ/aN7kCgfA9JsE/tcbuMl74YmqOjYVG0oibJFFR6sHxvpeQsL1oNcpHG8Dr OcKg== 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 y6si13543407pgp.587.2017.11.13.06.51.44; Mon, 13 Nov 2017 06:51:57 -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 S1753773AbdKMOt2 convert rfc822-to-8bit (ORCPT + 88 others); Mon, 13 Nov 2017 09:49:28 -0500 Received: from mga07.intel.com ([134.134.136.100]:63778 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753751AbdKMOt0 (ORCPT ); Mon, 13 Nov 2017 09:49:26 -0500 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2017 06:49:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,389,1505804400"; d="scan'208";a="1003275" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga004.fm.intel.com with ESMTP; 13 Nov 2017 06:49:24 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 13 Nov 2017 06:49:23 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 13 Nov 2017 06:49:23 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Mon, 13 Nov 2017 22:49:22 +0800 From: "Liang, Kan" To: Wang Nan , "linux-kernel@vger.kernel.org" , "acme@kernel.org" , "jolsa@redhat.com" , "namhyung@kernel.org" Subject: RE: [PATCH 0/7] perf tools: Clarify overwrite and backward, bugfix Thread-Topic: [PATCH 0/7] perf tools: Clarify overwrite and backward, bugfix Thread-Index: AQHTXCBAmnnowzL4hU6zXar67EvG7KMSU7OQ Date: Mon, 13 Nov 2017 14:49:20 +0000 Message-ID: <37D7C6CF3E00A74B8858931C1DB2F077537E0F67@SHSMSX103.ccr.corp.intel.com> References: <20171113013809.212417-1-wangnan0@huawei.com> In-Reply-To: <20171113013809.212417-1-wangnan0@huawei.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzkzY2NhYzAtZWRmMy00YWJmLTljNzAtYWQ5YmJjOGY4MmViIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6Ik9PMEZYdGZzN01MRkd0M3BIcTBnYWJyZTY0MXZHb2paU0FUUjdaRmJQSlE9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Based on previous discussion, perf needs to support only two types > of ringbuffer: read-write + forward, readonly + backward. This patchset > completly removes the concept of 'overwrite' from code level, controls > mapping permission using write_backward instead. I think I suggested to remove the concept of backward/forward, keep the overwrite. That's from user's perspective. Here you use read-write + forward and readonly + backward, which should be from kernel 's perspective. It's OK for me either. However, we should make the concepts connected by clearly documented, not just in changelog. I suggest you may create a new file, ringbuffer.txt, in Documentation to explain, the types of ringbuffer, how do they work, what's connections between overwrite and readonly + backward, and so on. > > Wang Nan (7): > perf mmap: Fix perf backward recording > perf tests: Set evlist of test__backward_ring_buffer() to !overwrite > perf tests: Set evlist of test__sw_clock_freq() to !overwrite > perf tests: Set evlist of test__basic_mmap() to !overwrite > perf tests: Set evlist of test__task_exit() to !overwrite > perf tools: Remove 'overwrite' concept from code level > perf tools: Remove prot field in mmap param > You had another related fix "perf tool: Don't discard prev in backward mode" https://lkml.org/lkml/2017/10/12/408 It has not been merged yet. It needs to backport. I think you may want to add it in this series as well. Thanks, Kan > tools/perf/arch/x86/tests/perf-time-to-tsc.c | 2 +- > tools/perf/builtin-kvm.c | 2 +- > tools/perf/builtin-record.c | 4 ++-- > tools/perf/builtin-top.c | 2 +- > tools/perf/builtin-trace.c | 2 +- > tools/perf/tests/backward-ring-buffer.c | 2 +- > tools/perf/tests/bpf.c | 2 +- > tools/perf/tests/code-reading.c | 2 +- > tools/perf/tests/keep-tracking.c | 2 +- > tools/perf/tests/mmap-basic.c | 2 +- > tools/perf/tests/openat-syscall-tp-fields.c | 2 +- > tools/perf/tests/perf-record.c | 2 +- > tools/perf/tests/sw-clock.c | 2 +- > tools/perf/tests/switch-tracking.c | 2 +- > tools/perf/tests/task-exit.c | 2 +- > tools/perf/util/evlist.c | 21 ++++++++++----------- > tools/perf/util/evlist.h | 6 ++---- > tools/perf/util/mmap.c | 10 +++++----- > tools/perf/util/mmap.h | 6 +++--- > tools/perf/util/python.c | 10 +++++----- > 20 files changed, 41 insertions(+), 44 deletions(-) > > -- > 2.10.1 From 1583913203232717603@xxx Mon Nov 13 01:42:21 +0000 2017 X-GM-THRID: 1583913203232717603 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread