/* Turn on reporting of profiling data load/unload-events through the gcov_event() callback. Also replay all previous events once. This function is needed because some events are potentially generated too early for the callback implementation to handle them initially.  */
void gcov_enable_events(void)
/* Turn on reporting of profiling data load/unload-events through the gcov_event() callback. Also replay all previous events once. This function is needed because some events are potentially generated too early for the callback implementation to handle them initially.  */
void gcov_enable_events(void)
{
	struct gcov_info *info;
	mutex_lock(&gcov_lock);
	gcov_events_enabled = 1;
	for (info = gcov_info_head; info; info = info->next)
		gcov_event(GCOV_ADD, info);
	mutex_unlock(&gcov_lock);
}