On Fri, Sep 27, 2024 at 09:22:46PM +0200, Gustavo A. R. Silva wrote: > On 27/09/24 20:59, Arnaldo Carvalho de Melo wrote: > > From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> > > > > Hi, > > > > This implements --padding, that combined with the already > > available --with_flexible_array option may catch some questionable > > structs. > > > > This comes from a quick discussion I had with Willy Tareau after > > Gustavo's talk at this year's Kernel Recipes. > > Nice. :) > > I think it'd be interesting to take a look at the output of the > following command: > > $ pahole --padding_ge 1 --with_flexible_array acme@x1:~$ pahole --padding_ge 1 --with_flexible_array > pahole--padding_ge_1_--with_flexible_array.`uname -r`.txt acme@x1:~$ ls -lart pahole--padding_ge_1_--with_flexible_array.6.10.10-200.fc40.x86_64.txt -rw-r--r--. 1 acme acme 172848 Sep 27 16:36 pahole--padding_ge_1_--with_flexible_array.6.10.10-200.fc40.x86_64.txt acme@x1:~$ It is at http://vger.kernel.org/~acme/pahole--padding_ge_1_--with_flexible_array.6.10.10-200.fc40.x86_64.txt > Acked-by: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx> Thanks! - Arnaldo