diff options
author | hunt <hunt> | 2007-03-18 18:19:26 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-03-18 18:19:26 +0000 |
commit | 56bae3425ce425d5f0424887caa77d95a88b9803 (patch) | |
tree | eb67e663f01b3378af7f4aaa1fc66dc57aa66fe7 /runtime/staprun/relay.c | |
parent | 3d48c9833362aabc5faacb1f237e9914b794a247 (diff) | |
download | systemtap-steved-56bae3425ce425d5f0424887caa77d95a88b9803.tar.gz systemtap-steved-56bae3425ce425d5f0424887caa77d95a88b9803.tar.xz systemtap-steved-56bae3425ce425d5f0424887caa77d95a88b9803.zip |
2007-03-18 Martin Hunt <hunt@redhat.com>
* staprun.h (VERSION_CMD): Command to use for version check.
Changes to support runtime decision on new or old transport.
* mainloop.c (init_staprun): Check the kernel version at runtime
instead of at compile time.
(cleanup_and_exit): Call the correct relayfs close function.
(stp_main_loop): Call the correct relayfs init function.
* relay.c: Remove ifdef wrapper. File is always compiled and used
if the kernel version is appropriate.
* relay_old.c: Ditto.
Diffstat (limited to 'runtime/staprun/relay.c')
-rw-r--r-- | runtime/staprun/relay.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/runtime/staprun/relay.c b/runtime/staprun/relay.c index 98f064b6..6d505a22 100644 --- a/runtime/staprun/relay.c +++ b/runtime/staprun/relay.c @@ -12,8 +12,6 @@ #include "staprun.h" -#ifndef STP_OLD_TRANSPORT - int out_fd[NR_CPUS]; static pthread_t reader[NR_CPUS]; static int relay_fd[NR_CPUS]; @@ -186,4 +184,3 @@ void close_relayfs(void) dbug("closed files\n"); } -#endif /* !STP_OLD_TRANSPORT */ |