search for: __llvm_profile_get_size_for_buffer

Displaying 1 result from an estimated 1 matches for "__llvm_profile_get_size_for_buffer".

2017 Sep 06
5
Using source-based code coverage on baremetal
...t_profile.a, stripped down for the baremetal target.  (More on this below.) 2. Then, you need to change the source code to call into it; since a baremetal image doesn't exit like an operating system process, you need to insert code somewhere to write out the profile data yourself.  We used __llvm_profile_get_size_for_buffer() and __llvm_profile_write_buf() for this (and semihosting APIs to transfer the resulting buffer to the host). 3. Then, you have to edit your linker script to include the necessary sections.  __llvm_prf_names, __llvm_prf_data, and __llvm_prf_cnts need to be included in the final image.  And __...