[LLVMdev] LLVM instrumentation
Kenneth Adam Miller
kennethadammiller at gmail.com
Fri Jul 17 07:34:15 PDT 2015
There's a good example of a function pass in "Getting Started with LLVM
Core Libraries", but I'm really quite certain that there are already some
excellent profiling tools out there. Are you sure that you're not
re-inventing the wheel? Can you tell me more about what the final end goal
is?
On Fri, Jul 17, 2015 at 10:31 AM, Wehrli Johan <johan.wehrli at heig-vd.ch>
wrote:
> Yeah I have already see pintool but I need this to work with ARM and Intel.
>
> If I remember correctly, pintool does not work on ARM (or quite bad).
>
> My goal with the instrumentation is, once I have the information (time +
> call), to choose (during a second compilation) if some of my passes are
> applicable or not.
>
> Greetings,
>
> Johan
>
> On 17 Jul 2015, at 16:09, Kenneth Adam Miller <kennethadammiller at gmail.com
> <mailto:kennethadammiller at gmail.com>> wrote:
>
> Have you seen intel pintools? You might not need to write near as much
> code, however it may not suit your use case because the compiler can see
> information that otherwise might be missed in the context of a fully
> compiled binary. Please let me know your thoughts and then we can pick up
> from there.
>
> On Fri, Jul 17, 2015 at 2:43 AM, Wehrli Johan <johan.wehrli at heig-vd.ch
> <mailto:johan.wehrli at heig-vd.ch>> wrote:
> Hi everyone,
>
> I would like to instrument my code in order to know the number of times a
> function is called and its execution time.
>
> After some research, I find several leads in llvm/lib/ProfilData/ and
> llvm/lib/Transform/Instrumentation/ but nothing conclusive.
>
> Does anyone know if this is already possible with LLVM or has a good
> suggestion for the beginning?
>
> I saw the -fprofile-instr-generate, -fprofile-instr-use, -fprofile-arcs,
> -ftest-coverage parameters but I can’t get the information I want with it.
>
> It seem that the easiest solution is to write a pass who will instrument
> the code.
>
> Greetings,
>
> Johan
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu<mailto:LLVMdev at cs.uiuc.edu>
> http://llvm.cs.uiuc.edu<http://llvm.cs.uiuc.edu/>
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150717/b157c83a/attachment.html>
More information about the llvm-dev
mailing list