> 2. Problems in autoFDO:
> Actually the problem happened in using create_llvm_prof, transformation is
> failed.
> clang -O2 -g test.c -o a.out
> perf record -b ./a.out (perf version is 0.0.2, "-b" option is not
> recognized, why?)
> change to: perf record ./a.out (so perf.data is generated)
> create_llvm_prof --binary=./a.out --out=code.prof (it read a.out and
> perf.data)
> error: Malformed .note.gnu.build-id section
> no build id found in the binary
> it seems that a.out has no build id.
This error message from create_llvm_prof is actually harmless. Dehao
will be removing it at some point. The file code.prof should have
content and clang will be able to read it. Please try:
$ clang -fprofile-sample-use=code.prof -g ...
Diego.
_______________________________________________
LLVM Developers mailing list
LLV...@cs.uiuc.edu http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Hi, allRecently I'm trying to use LLVM PGO and autoFDO. However I have some problems in the process.LLVM source code is updated on April 9th. Operating system is SUSE x86_64
1. Problems in instrumentation based PGO:clang -O2 -fprofile-instr-generate test.c -o a.out./a.out (then default.profraw is generated)clang -O2 -fprofile-instr-use=default.profraw test.c -o a.outerror: pgo data file has malformed function entryI found that the run-time function "writeFile" in InstrProfilingFile.cpp didn't write '\n'.But when parsing the profile data, in CodeGenPGO.cpp line 56, it tried to find '\n' like below:CurPtr = strchr(CurPtr, '\n');if (!CurPtr) {ReportBadPGOData(CGM, "pgo data file has malformed function entry");return;}
Hi, allRecently I'm trying to use LLVM PGO and autoFDO. However I have some problems in the process.LLVM source code is updated on April 9th. Operating system is SUSE x86_64
1. Problems in instrumentation based PGO:clang -O2 -fprofile-instr-generate test.c -o a.out./a.out (then default.profraw is generated)clang -O2 -fprofile-instr-use=default.profraw test.c -o a.outerror: pgo data file has malformed function entryI found that the run-time function "writeFile" in InstrProfilingFile.cpp didn't write '\n'.But when parsing the profile data, in CodeGenPGO.cpp line 56, it tried to find '\n' like below:CurPtr = strchr(CurPtr, '\n');if (!CurPtr) {ReportBadPGOData(CGM, "pgo data file has malformed function entry");return;}