]> sourceware.org Git - systemtap.git/commitdiff
stapdyn: hide internal module functions
authorJosh Stone <jistone@redhat.com>
Fri, 10 May 2013 20:09:20 +0000 (13:09 -0700)
committerJosh Stone <jistone@redhat.com>
Fri, 10 May 2013 20:11:38 +0000 (13:11 -0700)
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.

runtime/dyninst/runtime.h
runtime/dyninst/stapdyn.h
runtime/dyninst/transport.c

index 35dcbafe33c541e1b134bc77589f561cc7c001ea..2fc2cc79b821589351220b2483d8782ebec57d30 100644 (file)
@@ -372,7 +372,7 @@ int stp_dyninst_session_init(void)
     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();
index 38cda6bba0b258fc9283c36e182adfe20d09efa3..6f81df4b43d3df7842ab97146b0899491c37a9e2 100644 (file)
@@ -28,7 +28,6 @@ extern "C" {
 /* 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);
index 7072e9d1d3aa8c4fa9a452e37d897685f59a47b5..d4905ff8908a3e36d34663b73436d2afb39f7b49 100644 (file)
@@ -323,7 +323,7 @@ _stp_dyninst_transport_thread_func(void *arg __attribute((unused)))
        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);
 }
This page took 0.033471 seconds and 5 git commands to generate.