public inbox for dwarves@vger.kernel.org
 help / color / mirror / Atom feed
* Pahole, BTF, and vector types
@ 2025-05-13 22:39 Bruce McCulloch
  2025-05-14 15:22 ` Alan Maguire
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce McCulloch @ 2025-05-13 22:39 UTC (permalink / raw)
  To: Alan Maguire, Arnaldo Carvalho de Melo; +Cc: dwarves

Hello Alan, Arnaldo, All,

Recently the Linux Toolchain team at oracle had reason to start emitting 
types
with the vector_size() attribute as arrays when compiling with 
-gctf/-gbtf. This
is a change from the previous behavior, which was to emit these as unknown
types. This emission as an array is consistent with BTF generated in 
both clang
and pahole. We have some ideas on how to implement the change in GCC, 
but were
wondering if anyone involved with dwarves had any insight into why 
vectors are
emitted in this way. More specifically, there were concerns surrounding the
practical differences between vectors and arrays in the realm of memory 
(e.g.
Vectors can be passed as args by value, while arrays cannot). More 
information
about this can be found on the DWARF std issues list [1].

Any input on this subject would be much appreciated.

Bruce

[1] https://dwarfstd.org/issues/230413.1.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-05-20 15:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-13 22:39 Pahole, BTF, and vector types Bruce McCulloch
2025-05-14 15:22 ` Alan Maguire
2025-05-20 15:27   ` Nick Alcock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox