[LLVMdev] LLVM instrumentation overhead

Nipun Arora nipun2512 at gmail.com
Wed Dec 7 14:51:15 PST 2011


Hi,

I need to write a transform pass which instruments the target program to 
output the name of each function executed, and the rdtsc counter along 
with it.

Can anyone give me an idea of how to go about it?(I've worked around 
with LLVM pass framework and opt to do static analysis, but would like 
to do a lightweight instrumentation). Also can anyone give an 
approximate idea of the overhead for such instrumentation?

Thanks
Nipun





More information about the llvm-dev mailing list