[PATCH v2 1/6] powerpc/perf: Define big-endian version of perf_mem_data_src

Peter Zijlstra peterz at infradead.org
Mon Mar 6 22:22:28 AEDT 2017


On Mon, Mar 06, 2017 at 04:13:08PM +0530, Madhavan Srinivasan wrote:
> From: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
> 
> perf_mem_data_src is an union that is initialized via the ->val field
> and accessed via the bitmap fields. For this to work on big endian
> platforms, we also need a big-endian represenation of perf_mem_data_src.

Doesn't this break interpreting the data on a different endian machine?


More information about the Linuxppc-dev mailing list