Re: [PATCH 4/4] perf tools: add JVMTI agent library

Stephane Eranian
2015-02-12T17:11:26Z

Andi,

On Thu, Feb 12, 2015 at 11:58 AM, Andi Kleen <ak@linux.intel.com> wrote:
>> This injects the MMAP records to cover the jitted code and also generates
>> one ELF image for each jitted function. The ELF images are created in the
>> same subdir as the jitdump file. The MMAP records point there too.
>
> How about line numbers? That would need a lot of code to generate dwarf, right?
>
The JVMTI agent does not generate the ELF files. It can extract line numbers
form the JVMTI interface and put them into the jitdump file.

Then that information would need to be encoded into dwarf in the ELF file.

I have not looked at how much is needed to do that.