diff options
author | David Smith <dsmith@redhat.com> | 2009-02-17 08:32:43 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-02-17 08:32:43 -0600 |
commit | a79ec729450bc24d0943c2c1ee67efa8acb58273 (patch) | |
tree | deae00cc69b4bf5da3a440bb47004c371cefc75f /runtime/transport/transport.c | |
parent | ea1248d39b26b7f4288751cdf9eb019266bfd91b (diff) | |
download | systemtap-steved-a79ec729450bc24d0943c2c1ee67efa8acb58273.tar.gz systemtap-steved-a79ec729450bc24d0943c2c1ee67efa8acb58273.tar.xz systemtap-steved-a79ec729450bc24d0943c2c1ee67efa8acb58273.zip |
Reduced control channel code duplication.
2009-02-17 David Smith <dsmith@redhat.com>
* 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.
Diffstat (limited to 'runtime/transport/transport.c')
-rw-r--r-- | runtime/transport/transport.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |