OK I see it now. vmprof_common.h shows how you can the program counter (PC) 
fromcodemap pypy_find_codemap_at_addr() from codemap.c 

    On Sunday, December 18, 2016 5:47 AM, Shubha Ramani 
<shubharam...@yahoo.com> wrote:
 

 Hi Armin. Yes I've studied the codes you mention deeply. They are fairly 
straightforward to follow so thank you for the tips.
But I'm merely responding to a statement you made in the August 2016 thread. 
See below. 
https://mail.python.org/pipermail/pypy-dev/2016-August/014597.html
Thanks Shubharamani 
On Dec 18, 2016, at 2:33 AM, Armin Rigo <armin.r...@gmail.com> wrote:


Hi Shubha,

On 17 December 2016 at 20:32, Shubha Ramani via pypy-dev
<pypy-dev@python.org> wrote:

I have studied rpython/jit/backend/llsupport/src/codemap.c.


I am nt finding the API which returns the Python stack in codemap.c.


There is no such knowledge as the "Python stack" inside the JIT.  Keep
in mind that the JIT is generic.  You have to study the (generic)
rpython.rlib.rvmprof and the (Python-specific) pypy.module._vmprof to
find out how together they reconstruct this information.


A bientôt,

Armin.



   
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to