Re: [RFC PATCH] perf: align raw sample data on 64-bit boundaries

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Robert Richter
Date: Wednesday, May 19, 2010 - 2:31 am

On 19.05.10 03:39:10, Frederic Weisbecker wrote:


Isn't here the same alignment problem on archs there unsigned long is
64 bit? Also, most samples I found have a size of multiples of 8
bytes, so even on 32 bit archs there would be a padding of 4 bytes
somethere in the sample.


I was not sure how hard an ABI breakage would be. I think the small
number of users of raw samples is manageable, but I understand if you
feel uncomfortable with it.


This could be an alternative. Though, it duplicates code paths and
introduces ugly sample type checks. Another alternative would be to
check the size value, if it is (n * sizeof(u64)) we could asume 64 bit
alignment. But maybe this makes things much worse.

-Robert

-- 
Advanced Micro Devices, Inc.
Operating System Research Center
email: robert.richter@amd.com

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC PATCH] perf: align raw sample data on 64-bit boun ..., Frederic Weisbecker, (Wed May 19, 12:39 am)
Re: [RFC PATCH] perf: align raw sample data on 64-bit boun ..., Robert Richter, (Wed May 19, 2:31 am)
Re: [RFC PATCH] perf: align raw sample data on 64-bit boun ..., Frederic Weisbecker, (Mon May 24, 2:25 pm)