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

2015-02-18 Thread Adrian Hunter
On 16/02/15 22:22, Stephane Eranian wrote: > On Mon, Feb 16, 2015 at 2:01 AM, Adrian Hunter > wrote: >> On 11/02/15 01:42, Stephane Eranian wrote: >>> This is a standalone JVMTI library to help profile Java jitted >>> code with perf record/perf report. The library is not installed >>> or compile

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

2015-02-16 Thread Stephane Eranian
On Mon, Feb 16, 2015 at 2:01 AM, Adrian Hunter wrote: > On 11/02/15 01:42, Stephane Eranian wrote: >> This is a standalone JVMTI library to help profile Java jitted >> code with perf record/perf report. The library is not installed >> or compiled automatically by perf Makefile. It is not used >>

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

2015-02-15 Thread Adrian Hunter
On 11/02/15 01:42, Stephane Eranian wrote: > This is a standalone JVMTI library to help profile Java jitted > code with perf record/perf report. The library is not installed > or compiled automatically by perf Makefile. It is not used > directly by perf. It is arch agnostic and has been tested on

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

2015-02-12 Thread Stephane Eranian
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 l

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

2015-02-12 Thread Andi Kleen
> 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, righ

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

2015-02-12 Thread Stephane Eranian
On Thu, Feb 12, 2015 at 8:25 AM, Jiri Olsa wrote: > On Wed, Feb 11, 2015 at 12:42:45AM +0100, Stephane Eranian wrote: > > SNIP > >> +LN=ln -sf >> +RM=rm >> + >> +SJVMTI=libjvmti.so.$(VERSION).$(REVISION).$(AGE) >> +VJVMTI=libjvmti.so.$(VERSION) >> +SLDFLAGS=-shared -Wl,-soname -Wl,$(VLIBPFM) >> +S

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

2015-02-12 Thread Jiri Olsa
On Wed, Feb 11, 2015 at 12:42:45AM +0100, Stephane Eranian wrote: SNIP > +LN=ln -sf > +RM=rm > + > +SJVMTI=libjvmti.so.$(VERSION).$(REVISION).$(AGE) > +VJVMTI=libjvmti.so.$(VERSION) > +SLDFLAGS=-shared -Wl,-soname -Wl,$(VLIBPFM) > +SOLIBEXT=so > + > +JDIR=$(shell /usr/sbin/update-java-alternative

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

2015-02-12 Thread Namhyung Kim
On Wed, Feb 11, 2015 at 12:42:45AM +0100, Stephane Eranian wrote: > This is a standalone JVMTI library to help profile Java jitted > code with perf record/perf report. The library is not installed > or compiled automatically by perf Makefile. It is not used > directly by perf. It is arch agnostic

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

2015-02-10 Thread Stephane Eranian
This is a standalone JVMTI library to help profile Java jitted code with perf record/perf report. The library is not installed or compiled automatically by perf Makefile. It is not used directly by perf. It is arch agnostic and has been tested on X86 and ARM. It needs to be used with a Java runtim