Skip to content

RFC pahole --with_embedded_flexible_array

Arnaldo Carvalho de Melo dwarves 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5core: Move class__has_flexible_array() from pahole to the coredwarves.c dwarves.h pahole.c+24 -230 replies
2/5core: Cache info about flexible arrays in class__has_flexible_array()dwarves.c dwarves.h+13 -10 replies
3/5core: Introduce class__has_embedded_flexible_array()dwarves.c dwarves.h+47 -00 replies
4/5fprintf: Add a comment if a member type has an embedded flexible arraydwarves_fprintf.c+9 -30 replies
5/5pahole: Introduce --with_embedded_flexible_arrayman-pages/pahole.1 pahole.c+17 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/5] pahole --with_embedded_flexible_array

Hi Willy, Gustavo,

Please take a look, there are still some odd cases where the
comment is not being emitted but _there_ is a flexible array inside the struct marked as having a flexible array "in the middle" (by means of an embedded struct that _has_ a flexible array.

This helps with one other case Gustavo talked about at KR.

Please take a look and give it some testing, please.

- Arnaldo

Arnaldo Carvalho de Melo (5):
core: Move class__has_flexible_array() from pahole to the core
core: Cache info about flexible arrays in class__has_flexible_array()
core: Introduce class__has_embedded_flexible_array()
fprintf: Add a comment if a member type has an embedded flexible array
pahole: Introduce --with_embedded_flexible_array

 dwarves.c          | 77 ++++++++++++++++++++++++++++++++++++++++++++++
 dwarves.h          |  6 ++++
 dwarves_fprintf.c  | 12 ++++++--
 man-pages/pahole.1 |  4 +++
 pahole.c           | 36 ++++++++--------------
 5 files changed, 109 insertions(+), 26 deletions(-)
Signature · 1 line
2.46.2