From a79ec729450bc24d0943c2c1ee67efa8acb58273 Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 17 Feb 2009 08:32:43 -0600 Subject: Reduced control channel code duplication. 2009-02-17 David Smith * control.c: Contains generic control channel functions. * procfs.c: Specific procfs control channel functions. All generic control channel functions moved to control.c. * debugfs.c: New file containing debugfs specific control channel functions. * control.h: New file. * transport.c: Updated file inclusion. --- runtime/transport/transport.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'runtime/transport/transport.c') diff --git a/runtime/transport/transport.c b/runtime/transport/transport.c index 23e4b855..81c5702c 100644 --- a/runtime/transport/transport.c +++ b/runtime/transport/transport.c @@ -27,13 +27,15 @@ static int _stp_probes_started = 0; static pid_t _stp_target = 0; static int _stp_exit_called = 0; static int _stp_exit_flag = 0; +#include "control.h" #ifdef STP_OLD_TRANSPORT #include "relayfs.c" #include "procfs.c" #else #include "utt.c" -#include "control.c" +#include "debugfs.c" #endif +#include "control.c" /* module parameters */ static int _stp_bufsize; @@ -255,7 +257,7 @@ static int _stp_transport_init(void) goto err0; #endif - /* create debugfs/procfs control channel */ + /* create control channel */ if (_stp_register_ctl_channel() < 0) goto err1; -- cgit