Alignment information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I think this is a new feature request.

I'm tracking down a UBSAN failure (only shows up on one arch, and it's
in a list_for_each() so there's loads of container_of() going on too).

Newer versions of pahole have the overall structure alignment given the
end, but I can't seem to persuade it to give the the alignment of each
field.

More concretely, I'm looking at a structure which is nearly 4k in size,
differs per arch and has an overall alignment of 128, but I can't find
which sub-struct within it is causing such an alignment requirement.

Would it be possible to also print the alignment information in the
comments that exist already?  i.e., instead of:

/* $offset    $size */

could we have

/* $offset    $size $align */

?

~Andrew




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux