<div dir="ltr">The entry point  is for value profiling and should be defined in InstrProfilingValue.o in the archive library. Can you check the symbol table of the .a file?<div><br></div><div>David</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 28, 2020 at 4:25 AM Yi Ma via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello, <br>
<br>
I'm working on Android kernel profile-guided optimization to figure out <br>
whether pgo can improve the performance of Android kernel. I have tried <br>
to added '-fprofile-generate' option to build Android kernel(msm-4.19). <br>
But error occurs during building: "undefined reference to <br>
'__llvm_profile_instrument_target'". <br>
I have tried to add libclang_rt.profile-aarch64-android.a as a library <br>
when building Android kernel, but the error still shows up. I think the <br>
kernel may not be able to call libraries outside the kernel source tree, <br>
so I was porting pgo-related files(compiler-rt/lib/profile/) from <br>
compiler-rt to Android kernel source tree. <br>
<br>
Do you know why did this error occurs? And am I doing the right thing? <br>
Is it possible to improve the performance of Android kernel with llvm <br>
pgo mechanism?<br>
<br>
Thanks,<br>
Yi Ma<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>