From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934747AbcATBja (ORCPT ); Tue, 19 Jan 2016 20:39:30 -0500 Received: from szxga01-in.huawei.com ([58.251.152.64]:63583 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933227AbcATBjF (ORCPT ); Tue, 19 Jan 2016 20:39:05 -0500 Message-ID: <569EE4E6.7040804@huawei.com> Date: Wed, 20 Jan 2016 09:37:42 +0800 From: "Wangnan (F)" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Alexei Starovoitov CC: , , , He Kuang , Arnaldo Carvalho de Melo , Brendan Gregg , Jiri Olsa , Masami Hiramatsu , Namhyung Kim , Zefan Li , Subject: Re: [PATCH 0/6] perf core: Read from overwrite ring buffer References: <20160118120230.GP6357@twins.programming.kicks-ass.net> <1453202210-134429-1-git-send-email-wangnan0@huawei.com> <20160119174239.GA83683@ast-mbp.thefacebook.com> In-Reply-To: <20160119174239.GA83683@ast-mbp.thefacebook.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.111.66.109] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090201.569EE4F8.0084,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 282fdf5b7ce7e2f38e004fe4f50d9956 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016/1/20 1:42, Alexei Starovoitov wrote: > On Tue, Jan 19, 2016 at 11:16:44AM +0000, Wang Nan wrote: >> This patchset introduces two methods to support reading from overwrite. >> >> 1) Tailsize: write the size of an event at the end of it >> 2) Backward writing: write the ring buffer from the end of it to the >> beginning. > what happend with your other idea of moving the whole header to the end? > That felt better than either of these options. I'll try it today. However, putting all of the three together is not as easy as this patchset. Thank you.