How to profile the TVM generated file in the deployed code?

Hi,

I have a C++ wrapper around the TVM generated object file, which is statically linked. I’d like to profile the entire application and relates the execution cycles to the disassembly code.

I tried to use perf to do that. For the C++ wrapper code, I could get the stack trace and annotate the cycles to the disassembly, but for the code in the TVM generated object file, I cannot annotate and perf just report “unknown”. Is there a way to generate something to make the perf annotate the TVM generated file?

Thanks.