Re: [PATCH 0/2] --padding option to combine with --with_flexible_array

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

 





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

Acked-by: Gustavo A. R. Silva <gustavoars@xxxxxxxxxx>

Thanks!
--
Gustavo


	I have this in the 'next' branch of:

https://git.kernel.org/pub/scm/devel/pahole/pahole.git

	Willy, is that what you had in mind?

Cheers,

- Arnaldo

Arnaldo Carvalho de Melo (2):
   pahole: Add --padding_ge N to show only structs with at least N bytes of padding at its end
   pahole: Add --padding N to show only structs with N bytes of padding at its end

  man-pages/pahole.1 |  8 ++++++++
  pahole.c           | 17 ++++++++++++++++-
  2 files changed, 24 insertions(+), 1 deletion(-)





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

  Powered by Linux