/* * __gcov_init is called by gcc-generated constructor code for each object * file compiled with -fprofile-arcs.
*/ void __gcov_init(struct gcov_info *info)
{ staticunsignedint gcov_version;
mutex_lock(&gcov_lock); if (gcov_version == 0) {
gcov_version = gcov_info_version(info); /* * Printing gcc's version magic may prove useful for debugging * incompatibility reports.
*/
pr_info("version magic: 0x%x\n", gcov_version);
} /* * Add new profiling data structure to list and inform event * listener.
*/
gcov_info_link(info); if (gcov_events_enabled)
gcov_event(GCOV_ADD, info);
mutex_unlock(&gcov_lock);
}
EXPORT_SYMBOL(__gcov_init);
/* * These functions may be referenced by gcc-generated profiling code but serve * no function for kernel profiling.
*/ void __gcov_flush(void)
{ /* Unused. */
}
EXPORT_SYMBOL(__gcov_flush);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.