Messages in this thread | | | From | Michael Ellerman <> | Subject | Re: [v3, 1/6] powerpc/perf: Define big-endian version of perf_mem_data_src | Date | Thu, 20 Apr 2017 08:04:18 +1000 (AEST) |
| |
On Tue, 2017-04-11 at 01:51:05 UTC, Madhavan Srinivasan wrote: > From: Sukadev Bhattiprolu <sukadev@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 (Which is broken now), we also need a big-endian represenation > of perf_mem_data_src. i.e, in a big endian system, if user request > PERF_SAMPLE_DATA_SRC (perf report -d), will get the default value from > perf_sample_data_init(), which is PERF_MEM_NA. Value for PERF_MEM_NA > is constructed using shifts: ... > > Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com> > Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com> > Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Series applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/8c5073db0ee680c7e70e123918c9b2
cheers
| |