Re: [PATCH] perf bpf: Fix endianness problem when loading parameters in prologue

2017-08-14 Thread Thomas-Mich Richter
ches from Wang: > > (3.0K) [PATCH] perf bpf: Fix endianness problem when loading parameters > in prologue This patch does not solve the issue completely. It solves load of parameter 1 which is loaded from 132(%r2):x32 from memory via function BPF_FUNC_probe_read. How another

Re: [PATCH] perf bpf: Fix endianness problem when loading parameters in prologue

2017-08-11 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 11, 2017 at 06:47:56PM +0800, Wangnan (F) escreveu: > Hi Thomas, > > Please try this patch on your machine and give me the result. Right, I'm waiting for test results for the last two patches from Wang: (3.0K) [PATCH] perf bpf: Fix endianness problem when load

Re: [PATCH] perf bpf: Fix endianness problem when loading parameters in prologue

2017-08-11 Thread Wangnan (F)
Hi Thomas, Please try this patch on your machine and give me the result. Thank you. On 2017/8/13 2:49, Wang Nan wrote: Perf BPF prologue generator unconditionally fetches 8 bytes for function parameters, which causes problem on big endian machine. Thomas gives a detail analysis for this proble

[PATCH] perf bpf: Fix endianness problem when loading parameters in prologue

2017-08-11 Thread Wang Nan
Perf BPF prologue generator unconditionally fetches 8 bytes for function parameters, which causes problem on big endian machine. Thomas gives a detail analysis for this problem: http://lkml.kernel.org/r/968ebda5-abe4-8830-8d69-49f62529d...@linux.vnet.ibm.com This patch parses the type of each a