Re: [PATCH V6 01/17] perf, x86: Reduce lbr_sel_map size

2014-11-03 Thread Peter Zijlstra
On Tue, Nov 04, 2014 at 08:14:21AM +0100, Peter Zijlstra wrote: > On Tue, Nov 04, 2014 at 01:07:39AM +, Liang, Kan wrote: > > Hi Peter, > > > > Did you get a chance to review the rest of the patch set? > > No point in reviewing stuff I could not apply if I wanted to is there? So please (re)r

Re: [PATCH V6 01/17] perf, x86: Reduce lbr_sel_map size

2014-11-03 Thread Peter Zijlstra
On Tue, Nov 04, 2014 at 01:07:39AM +, Liang, Kan wrote: > Hi Peter, > > Did you get a chance to review the rest of the patch set? No point in reviewing stuff I could not apply if I wanted to is there? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

RE: [PATCH V6 01/17] perf, x86: Reduce lbr_sel_map size

2014-11-03 Thread Liang, Kan
Hi Peter, Did you get a chance to review the rest of the patch set? Thanks, Kan > > On Sun, Oct 19, 2014 at 05:54:56PM -0400, Kan Liang wrote: > > This should still very much have: > > From: Yan, Zheng > > Seeing how you did not write this patch, probably true for all the others > too, altho

Re: [PATCH V6 01/17] perf, x86: Reduce lbr_sel_map size

2014-10-24 Thread Peter Zijlstra
On Sun, Oct 19, 2014 at 05:54:56PM -0400, Kan Liang wrote: This should still very much have: From: Yan, Zheng Seeing how you did not write this patch, probably true for all the others too, although I've not checked yet. > The index of lbr_sel_map is bit value of perf branch_sample_type. > PERF

[PATCH V6 01/17] perf, x86: Reduce lbr_sel_map size

2014-10-19 Thread Kan Liang
The index of lbr_sel_map is bit value of perf branch_sample_type. PERF_SAMPLE_BRANCH_MAX is 1024 at present, so each lbr_sel_map uses 4096 bytes. By using bit shift as index, we can reduce lbr_sel_map size to 40 bytes. This patch defines 'bit shift' for branch types, and use 'bit shift' to define l