Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751736AbbBLRL0 (ORCPT ); Thu, 12 Feb 2015 12:11:26 -0500 Received: from mail-ob0-f176.google.com ([209.85.214.176]:44297 "EHLO mail-ob0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751276AbbBLRLZ (ORCPT ); Thu, 12 Feb 2015 12:11:25 -0500 MIME-Version: 1.0 In-Reply-To: <20150212165856.GA7578@tassilo.jf.intel.com> References: <1423611765-18200-1-git-send-email-eranian@google.com> <1423611765-18200-5-git-send-email-eranian@google.com> <20150212165856.GA7578@tassilo.jf.intel.com> Date: Thu, 12 Feb 2015 12:11:24 -0500 Message-ID: Subject: Re: [PATCH 4/4] perf tools: add JVMTI agent library From: Stephane Eranian To: Andi Kleen Cc: LKML , Arnaldo Carvalho de Melo , Peter Zijlstra , "mingo@elte.hu" , Jiri Olsa , Namhyung Kim , Rose Belcher , Sukadev Bhattiprolu , Sonny Rao , John Mccutchan Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 902 Lines: 20 Andi, On Thu, Feb 12, 2015 at 11:58 AM, Andi Kleen 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. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/