Re: [PATCH] perf tools: Support bpf prologue for arm64

2015-09-02 Thread Wangnan (F)
On 2015/9/2 18:34, Will Deacon wrote: On Mon, Aug 31, 2015 at 09:16:28PM +0100, Arnaldo Carvalho de Melo wrote: Em Sat, Aug 29, 2015 at 03:16:52AM +, He Kuang escreveu: This patch implements arch_get_reg_info() for arm64 to enable HAVE_BPF_PROLOGUE feature. For arm64, structure pt_regs is

Re: [PATCH] perf tools: Support bpf prologue for arm64

2015-09-02 Thread Will Deacon
On Mon, Aug 31, 2015 at 09:16:28PM +0100, Arnaldo Carvalho de Melo wrote: > Em Sat, Aug 29, 2015 at 03:16:52AM +, He Kuang escreveu: > > This patch implements arch_get_reg_info() for arm64 to enable > > HAVE_BPF_PROLOGUE feature. For arm64, structure pt_regs is not composed > > by fields of reg

Re: [PATCH] perf tools: Support bpf prologue for arm64

2015-08-31 Thread He Kuang
Hi, Arnaldo On 2015/9/1 4:16, Arnaldo Carvalho de Melo wrote: Em Sat, Aug 29, 2015 at 03:16:52AM +, He Kuang escreveu: This patch implements arch_get_reg_info() for arm64 to enable HAVE_BPF_PROLOGUE feature. For arm64, structure pt_regs is not composed by fields of register names but an arr

Re: [PATCH] perf tools: Support bpf prologue for arm64

2015-08-31 Thread Arnaldo Carvalho de Melo
Em Sat, Aug 29, 2015 at 03:16:52AM +, He Kuang escreveu: > This patch implements arch_get_reg_info() for arm64 to enable > HAVE_BPF_PROLOGUE feature. For arm64, structure pt_regs is not composed > by fields of register names but an array of regs, so here we simply > multiply fixed register size

[PATCH] perf tools: Support bpf prologue for arm64

2015-08-28 Thread He Kuang
This patch implements arch_get_reg_info() for arm64 to enable HAVE_BPF_PROLOGUE feature. For arm64, structure pt_regs is not composed by fields of register names but an array of regs, so here we simply multiply fixed register size by index number to get the byte offset. Signed-off-by: He Kuang --