Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-27 Thread Wangnan (F)
On 2016/3/28 9:58, Wangnan (F) wrote: On 2016/3/28 9:07, Wangnan (F) wrote: On 2016/3/27 23:30, pi3orama wrote: 发自我的 iPhone 在 2016年3月27日,下午11:20,Peter Zijlstra 写道: On Fri, Mar 25, 2016 at 10:14:36PM +0800, Wangnan (F) wrote: I think you enabled some unusual config options? x86_64-

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-27 Thread Wangnan (F)
On 2016/3/28 9:07, Wangnan (F) wrote: On 2016/3/27 23:30, pi3orama wrote: 发自我的 iPhone 在 2016年3月27日,下午11:20,Peter Zijlstra 写道: On Fri, Mar 25, 2016 at 10:14:36PM +0800, Wangnan (F) wrote: I think you enabled some unusual config options? x86_64-defconfig You must enabled CONFIG_OPTIM

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-27 Thread Wangnan (F)
On 2016/3/27 23:30, pi3orama wrote: 发自我的 iPhone 在 2016年3月27日,下午11:20,Peter Zijlstra 写道: On Fri, Mar 25, 2016 at 10:14:36PM +0800, Wangnan (F) wrote: I think you enabled some unusual config options? x86_64-defconfig You must enabled CONFIG_OPTIMIZE_INLINING. Now I get similar result: I

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-27 Thread pi3orama
发自我的 iPhone > 在 2016年3月27日,下午11:20,Peter Zijlstra 写道: > > On Fri, Mar 25, 2016 at 10:14:36PM +0800, Wangnan (F) wrote: I think you enabled some unusual config options? > > x86_64-defconfig > >>> You must enabled CONFIG_OPTIMIZE_INLINING. Now I get similar result: > > It has that indeed

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-27 Thread Peter Zijlstra
On Fri, Mar 25, 2016 at 10:14:36PM +0800, Wangnan (F) wrote: > >>I think you enabled some unusual config options? x86_64-defconfig > >You must enabled CONFIG_OPTIMIZE_INLINING. Now I get similar result: It has that indeed. > After enabling CONFIG_OPTIMIZE_INLINING: > > Test its performance by

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-25 Thread Wangnan (F)
On 2016/3/25 20:36, Wangnan (F) wrote: On 2016/3/25 20:26, Wangnan (F) wrote: On 2016/3/23 17:50, Peter Zijlstra wrote: On Mon, Mar 14, 2016 at 09:59:43AM +, Wang Nan wrote: Convert perf_output_begin to __perf_output_begin and make the later function able to write records from the en

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-25 Thread Wangnan (F)
On 2016/3/25 20:26, Wangnan (F) wrote: On 2016/3/23 17:50, Peter Zijlstra wrote: On Mon, Mar 14, 2016 at 09:59:43AM +, Wang Nan wrote: Convert perf_output_begin to __perf_output_begin and make the later function able to write records from the end of the ring buffer. Following commits wi

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-25 Thread Wangnan (F)
On 2016/3/23 17:50, Peter Zijlstra wrote: On Mon, Mar 14, 2016 at 09:59:43AM +, Wang Nan wrote: Convert perf_output_begin to __perf_output_begin and make the later function able to write records from the end of the ring buffer. Following commits will utilize the 'backward' flag. This patc

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-24 Thread Alexei Starovoitov
On Thu, Mar 24, 2016 at 11:48:54AM +0800, Wangnan (F) wrote: > > >>http://lkml.iu.edu/hypermail/linux/kernel/1601.2/03966.html > >Wang, when you respin, please add all perf analysis that you've > >done and the reasons to do it this way to commit log > >to make sure it stays in git history. > > > >

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-23 Thread Wangnan (F)
On 2016/3/24 3:25, Alexei Starovoitov wrote: On Wed, Mar 23, 2016 at 06:08:41PM +0800, Wangnan (F) wrote: On 2016/3/23 17:50, Peter Zijlstra wrote: On Mon, Mar 14, 2016 at 09:59:43AM +, Wang Nan wrote: Convert perf_output_begin to __perf_output_begin and make the later function able to

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-23 Thread Alexei Starovoitov
On Wed, Mar 23, 2016 at 06:08:41PM +0800, Wangnan (F) wrote: > > > On 2016/3/23 17:50, Peter Zijlstra wrote: > >On Mon, Mar 14, 2016 at 09:59:43AM +, Wang Nan wrote: > >>Convert perf_output_begin to __perf_output_begin and make the later > >>function able to write records from the end of the

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-23 Thread Wangnan (F)
On 2016/3/23 17:50, Peter Zijlstra wrote: On Mon, Mar 14, 2016 at 09:59:43AM +, Wang Nan wrote: Convert perf_output_begin to __perf_output_begin and make the later function able to write records from the end of the ring buffer. Following commits will utilize the 'backward' flag. This patc

Re: [PATCH 3/5] perf core: Prepare writing into ring buffer from end

2016-03-23 Thread Peter Zijlstra
On Mon, Mar 14, 2016 at 09:59:43AM +, Wang Nan wrote: > Convert perf_output_begin to __perf_output_begin and make the later > function able to write records from the end of the ring buffer. > Following commits will utilize the 'backward' flag. > > This patch doesn't introduce any extra perform