On 01/08/2011 08:04 PM, Chris Tyler wrote:
On Sat, 2011-01-08 at 14:59 -0500, Chris Tyler wrote:
> I also think that it's unnecessary to eliminate all alignment issues --
> in many cases, kernel fixups may actually be cheaper to run than the
> defensive code necessary to avoid them, and hardware fixups are even
> cheaper. Furthermore, running on an armv7 or higher processor won't
> trigger the alignment traps at all, so we won't even know that there are
> issues (just as we don't know, nor care, in an x86 context).
(Let me clarify that an app that's generating thousands of alignment
traps a second should get some attention! I'm talking about the more
typical case of a handful of traps a day).
If it's only a handful per day, then that's a good argument for a
fixup+signal - get the core dump so you can actually find out what the
data that caused the problem was.
Gordan