antocuni changed the topic of #pypy to: PyPy, the flexible snake (IRC logs: https://botbot.me/freenode/pypy/ ) | use cffi for calling C | "PyPy: the Gradual Reduction of Magic (tm)"
<mattip>
right. tracking failures on mobile is still a bit suboptimal
<mattip>
just saw all the failures, didnt dive in
_whitelogger has joined #pypy
asmeurer__ has quit [Quit: asmeurer__]
asmeurer_ has joined #pypy
asmeurer_ has quit [Quit: asmeurer_]
inhahe_ has quit []
inhahe_ has joined #pypy
pedronis has quit [Ping timeout: 260 seconds]
antocuni has quit [Ping timeout: 248 seconds]
jamesaxl has quit [Ping timeout: 240 seconds]
asmeurer has joined #pypy
kanaka has quit [Remote host closed the connection]
asmeurer has quit [Ping timeout: 240 seconds]
lritter has joined #pypy
lritter has quit [Read error: Connection reset by peer]
antocuni has joined #pypy
jamesaxl has joined #pypy
asmeurer has joined #pypy
asmeurer has quit [Ping timeout: 248 seconds]
antocuni has quit [Ping timeout: 248 seconds]
slackyy has joined #pypy
LarstiQ has quit [Remote host closed the connection]
slackyy has quit [Read error: Connection reset by peer]
asmeurer__ has joined #pypy
asmeurer__ has quit [Ping timeout: 240 seconds]
zmt00 has joined #pypy
LarstiQ has joined #pypy
slackyy has joined #pypy
asmeurer has joined #pypy
pedronis has joined #pypy
asmeurer has quit [Ping timeout: 255 seconds]
slackyy has quit [Read error: Connection reset by peer]
asmeurer has joined #pypy
asmeurer has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
asmeurer has joined #pypy
asmeurer has quit [Quit: asmeurer]
marky1991 has joined #pypy
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
* mattip
diving down the vmprof rabbit hole
<mattip>
why in python-vmprof (inside vmprof_common.c for instance) is there code which is specifically rpython?
<mattip>
shouldn't that be only in rpython's rlib/rvmprof?
marky1991 has quit [Remote host closed the connection]
marky1991 has joined #pypy
asmeurer__ has joined #pypy
<mattip>
that rvmprof test does not seem to be running native_func at all
<mattip>
the only output in the profile is "py:code:52:test_enable" from the parent class (RVMProfSamplingTest) entry_point method
asmeurer__ has quit [Quit: asmeurer__]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #pypy
jamesaxl has quit [Client Quit]
<mattip>
I'm not sure how this is supposed to work. The closest I could find in upstream is in test_run.py, where they import a c-extension and profile it
<mattip>
but in rvmprof we need to run an exe
asmeurer_ has joined #pypy
RayBray has joined #pypy
<RayBray>
Is there a way to reverse-engineer a C function's parameter types of closed-source libraries which contain undocumented API? I know it is possible to use gdb and disassemble the function of choice. But I am not an expert in assembly code. Might it be possible to get to a function's signature with radare2 or any other reverse-engineering tools?
<RayBray>
I know my question should better be placed into another channel, but both #C and #C++ don't allow unregistered irc users to talk.
kolko has quit [Ping timeout: 268 seconds]
asmeurer_ has quit [Quit: asmeurer_]
<arigato>
RayBray: sorry, don't know any tool (I'd do it by hand)
<RayBray>
arigato: what means by hand? how would you do it?
<njs>
RayBray: btw, you can register in a few seconds, you just type '/nickserv register <password> <email>'
<arigato>
RayBray: I would do it using my knowledge of assembler
<arigato>
it's indeed not the right channel to discuss how to do that in detail
<RayBray>
I have implemented an interface in Python, first off in cffi (ABI mode), later rewrote it with ctypes, the latter making my work a little easier but less pythonic.
<RayBray>
and sometimes the API of a commercial vendor is undocumented. For these cases I sometimes need to find out how to call certain functions.