search for: lprofsetupvalueprofil

Displaying 2 results from an estimated 2 matches for "lprofsetupvalueprofil".

2018 Mar 13
1
Profiling Support for BareMetal Target
...)) __stop___llvm_prf_data = .; __start___llvm_prf_names = .; KEEP(*(__llvm_prf_names)) __stop___llvm_prf_names = .; __start___llvm_prf_vnds = .; KEEP(*(__llvm_prf_vnds)) __stop___llvm_prf_vnds = .; 2. Since there are not .ctors or atexit available i called the functions lprofSetupValueProfiler and __llvm_profile_initialize_file from the startup before main and __llvm_profile_write_file during the exit after main. 3. Made changes in the compiler-rt library to adapt the profile sources for a bare metal target. When i run the elf file of a simple return 0 main i do get a default.profraw...
2017 Sep 11
2
Using source-based code coverage on baremetal
I think that this proposal would be very useful, and I will describe our experiences of trying to do this for our embedded bare-metal target. Recently we implemented support for just the '-fprofile-instr-generate' option and the 'compiler-rt/lib/profile' sources, and added the following to our LD scripts: /* Append the LLVM profiling sections */ . = ALIGN(4);