|
From: Nicholas N. <nj...@cs...> - 2007-09-03 22:19:42
|
On Mon, 3 Sep 2007, Oriol Prat wrote: > Is it possible to call translated code from an instrumented function? > > I have an instrumented function inserted with unsafeIRDirty_0_N and > from inside this function I want to call a function that is part of > the user code. > > I want to do this because I load with LD_PRELOAD another > instrumentation tool at the same time as Valgrind and I want to call a > function of this other tool from Valgrind instrumentation function. > > I understand that this other tool is instrumented by Valgrind like > regular user code and I'm not be able to call it directly from > Valgrind instrumented functions. I'm not sure if you can do this. If you can find a way to just call the code normally from the function, and Valgrind will translate it normally, I think. The hard part may be working out how to call the code from the function, since it won't be visible -- maybe you could do something horrible like put the destination address in a global variable? Not sure. Nick |