Re: mapping instructions to dynamic languages like java, python, ruby

2014-04-22 Thread Namhyung Kim
Hi Stephane, On Tue, 22 Apr 2014 21:05:11 +0200, Stephane Eranian wrote: > Hi Don, > > I have been working on the JIT code support for a while now. > I have something working well for more than Java now. It reuses > some of the same principles as the OProfile support but extend > them to support m

Re: mapping instructions to dynamic languages like java, python, ruby

2014-04-22 Thread Don Zickus
On Tue, Apr 22, 2014 at 09:05:11PM +0200, Stephane Eranian wrote: > Hi Don, > > I have been working on the JIT code support for a while now. > I have something working well for more than Java now. It reuses > some of the same principles as the OProfile support but extend > them to support more adv

Re: mapping instructions to dynamic languages like java, python, ruby

2014-04-22 Thread Stephane Eranian
On Tue, Apr 22, 2014 at 10:54 PM, Andi Kleen wrote: >> Does anyone have any thoughts or experience on this? > > perf has a JIT interface today, but it's extremely primitive > and only supports symbols. Clearly it could be done better. > > Various JITs (e.g. Java) have special debug interfaces for

Re: mapping instructions to dynamic languages like java, python, ruby

2014-04-22 Thread Andi Kleen
> Does anyone have any thoughts or experience on this? perf has a JIT interface today, but it's extremely primitive and only supports symbols. Clearly it could be done better. Various JITs (e.g. Java) have special debug interfaces for this. Various non perf profilers support it too. e.g. Vtune h

Re: mapping instructions to dynamic languages like java, python, ruby

2014-04-22 Thread Peter Zijlstra
On Tue, Apr 22, 2014 at 02:03:05PM -0400, Don Zickus wrote: > Hi, > > I was discussing recently with Will Cohen about how to get perf to > understand dynamic languages (java, python, ruby) better. Currently, perf > samples and address, stores it in a mmap region (from the kernel side), > the mmap

Re: mapping instructions to dynamic languages like java, python, ruby

2014-04-22 Thread David Ahern
On 4/22/14, 1:05 PM, Stephane Eranian wrote: I intend to contribute that code for perf once it is finalized. Note that it uses a module developed by Sonny Rao to export the perf timestamp time source via a posix-clock. This clock discussion has been going on for a while and never reached a conclu

Re: mapping instructions to dynamic languages like java, python, ruby

2014-04-22 Thread Stephane Eranian
Hi Don, I have been working on the JIT code support for a while now. I have something working well for more than Java now. It reuses some of the same principles as the OProfile support but extend them to support more advanced JIT features such as address recycling and code movements. I intend to