[PATCH] (v2) read inlining info in an NVIDIA extended line map

Mark Wielaard mark@klomp.org
Fri Nov 5 09:34:38 GMT 2021


Hi,

On Thu, 2021-11-04 at 16:41 -0500, John Mellor-Crummey via Elfutils-
devel wrote:
> [We would really like this patch in the forthcoming release]
> 
> Attached is a new version of the patch for reading inlining
> information encoded in an enhanced line map format used in NVIDIA GPU
> binaries for CUDA 11.2+.

It looks like the attachment is missing. Or the mailinglist removed it
for some reason, but I also didn't see it here:
https://sourceware.org/pipermail/elfutils-devel/2021q4/004307.html

Could you resent it?

Thanks,

Mark

> This is an updated version of a patch first submitted on Sept. 5. A
> copy of the original submission email is quoted below this note. 
> 
> Here I describe just the improvements to that patch that address
> Mark’s concerns:
> 
> (1) all of the code for handling NVIDIA DWARF extensions is always
> available; there is no special configuration switch needed.
> (2) all changes are bracketed by comments that mark them NVIDIA
> extensions
> (3) the DWARF extended opcodes have been renamed with names that
> include NVIDIA in them
> (4) the two new API functions to surface the new information have
> been improved to separate the interface result from the internal
> representation (at Mark’s request)
> 	(4a) the API for extracting the name of an inlined function in
> a DWARF line now returns a const char * instead of a string table
> index
> 	(4b) the API for extracting an inline “context” now returns a
> pointer to a DWARF line where the code is inlined rather than
> returning an unsigned int (an index into the line table that one
> could use to compute the pointer)
> (5) there are test cases for readelf and libdw that use a binary
> generated by NVIDIA’s compiler. the test cases include information
> about how the binary was generated





More information about the Elfutils-devel mailing list