Use the new modules.c framework to find & initialize this module.
+2021-06-30 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-module.c (early_modules): Delete trace_install.
+ * sim-trace.c (trace_install): Rename to ...
+ (sim_install_trace): ... this. New prototype.
+ * sim-trace.h (trace_install): Delete.
+
2021-06-30 Mike Frysinger <vapier@gentoo.org>
* sim-engine.c (sim_engine_install): Rename to ...
standard_install,
sim_events_install,
sim_model_install,
-#if WITH_TRACE_ANY_P
- trace_install,
-#endif
#if WITH_PROFILE
profile_install,
#endif
return SIM_RC_OK;
}
\f
-/* Install tracing support. */
+/* Provide a prototype to silence -Wmissing-prototypes. */
+SIM_RC sim_install_trace (SIM_DESC sd);
+/* Install tracing support. */
SIM_RC
-trace_install (SIM_DESC sd)
+sim_install_trace (SIM_DESC sd)
{
int i;
#define WITH_TRACE_SYSCALL_P WITH_TRACE_P (TRACE_SYSCALL_IDX)
#define WITH_TRACE_REGISTER_P WITH_TRACE_P (TRACE_REGISTER_IDX)
#define WITH_TRACE_DEBUG_P WITH_TRACE_P (TRACE_DEBUG_IDX)
-
-/* Tracing install handler. */
-MODULE_INSTALL_FN trace_install;
\f
/* Struct containing all system and cpu trace data.