search for: writeout_fn

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

2016 Apr 06
2
Writing a test for gcov style coverage crashing after dlclose
...these function as "hidden" prevents a shared library from exporting them in its interface. The end-result is that each profiled shared library will be guaranteed to get its own set of the GCDA functions extracted from libclang_rt.profile.a. These GCDA functions are referencing the static writeout_fn and flush_fn lists. These lists are traversed when a shared library is unloaded or the program exits through an atexit() function. It is important that each shared library gets its own set of these lists so that the proper .gcda files are updated when a library is unloaded. Furthermore, if a share...