<div>Hi,</div><div><br></div><div>I ran into the bug/feature request that you cannot flush gcov buffers while the app is running. They are only called when you exit the program, since the flush functions are registered with atexit(). This is the bug report: <a href="http://llvm.org/bugs/show_bug.cgi?id=12144" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=12144</a></div>
<div><br></div><div>I have what I think is a basic implementation of the `__gcov_flush` call, although I called this version `__llvm_gcov_flush`. Here is the diff <a href="https://gist.github.com/ashgti/4685743" target="_blank">https://gist.github.com/ashgti/4685743</a> if anyone would like to see it. </div>
<div><br></div><div>So, my question is where should I go from here? Do I need to email the exact patch to llvm-commits? This touches both the llvm and compiler-rt, so I don't know if that changes anything. </div><div>
<br></div><div><br></div><div>Thanks,</div><div><br></div><div><div>--<div>John Harrison</div></div>
</div>