harvard-acc / LLVM-Tracer

An LLVM pass to profile dynamic LLVM IR instructions and runtime values
Other
135 stars 35 forks source link

No dynamic_trace.gz generated while running *-instrumented #48

Open rem1A opened 1 year ago

rem1A commented 1 year ago

I am using LLVM-Tracer 6.0 ( not docker container ), and I have successfully compiled with this makefile: makefile.txt

but when I run the test-instrumented, there is no dynamic_trace.gz file that should have been generated.

here is the original file bfs.cpp and its input file: bfs&input file.zip

Are there any problems with my Makefile or sth else? I wonder why there is no 'dynamic_trace.gz' out.

Thank you very much!

nedasadat-taheri commented 1 year ago

I have the same problem would you mind telling me if you figured out the problem?

jlm109-ua commented 6 months ago

I am having the same problem with some C programs.

I'm using the next command to compile all the -instrumented files:

make trace-binary EXEC=fileName TOP_LEVEL=runMain* SUFFIX=c

Also, I added to my Makefile.tracer the -trace-all-callees parameter.

This worked for almost 55 small benchmarks but it failed for 18 of them, so I don't really know whats wrong with it.

Did someone solve it?

*runMain() is a function that does whatever the main() had to do.