The header stapdyn.h is only for functions meant to be called from the
stapdyn binary into the module, so stp_dyninst_session_init_finished
shouldn't be there. Also, all functions that aren't part of stapdyn.h
should be declared with static visibility.
return systemtap_module_init();
}
-int stp_dyninst_session_init_finished(void)
+static int stp_dyninst_session_init_finished(void)
{
stp_dyninst_master = getpid();
_stp_shm_finalize();
/* STAP 2.0 : */
extern int stp_dyninst_session_init(void);
-extern int stp_dyninst_session_init_finished(void);
extern void stp_dyninst_session_exit(void);
extern uint64_t stp_dyninst_target_count(void);
return NULL;
}
-void _stp_dyninst_transport_signal_exit(void)
+static void _stp_dyninst_transport_signal_exit(void)
{
__stp_dyninst_transport_queue_add(STP_DYN_EXIT, 0, 0, 0);
}