[llvm-dev] profile the llvm JITed code

Mark Dewing via llvm-dev llvm-dev at lists.llvm.org
Fri Sep 25 20:57:10 PDT 2015


Hi,
  The issue is with a change in OProfile.  It used to be run with
'opcontrol', but now is run using 'operf'.
There is a check in lib/ExecutionEngine/OProfileJIT/OProfileWrapper.cpp to
see if OProfile is running.  Older versions check only for 'oprofiled'.
Newer versions also check for 'operf'.
One fix is the change the check to match the newer code.
Alternately, you could make a fake program called 'oprofiled' (it just
needs to sleep), and make sure it is running when doing profiling.

Mark


> Hi llvm,
> It is the second time I post this kind of message.
>
> My llvm version is 3.3, can anyone tell me how to profile the JITed code
> using OProfile?


(rest of message removed)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150925/fe8d4cb7/attachment.html>


More information about the llvm-dev mailing list