diff options
author | Martin Hunt <hunt@redhat.com> | 2008-04-22 12:45:08 -0400 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 2008-04-22 12:45:08 -0400 |
commit | ab70160be701d5b89157ea15754fd0ded830a970 (patch) | |
tree | dae246c813ba1f6c41c3e1a62acb6c25a1ea3ce2 /runtime/staprun/common.c | |
parent | b965da8f3c53958af08bf7f57718265713cebb0a (diff) | |
download | systemtap-steved-ab70160be701d5b89157ea15754fd0ded830a970.tar.gz systemtap-steved-ab70160be701d5b89157ea15754fd0ded830a970.tar.xz systemtap-steved-ab70160be701d5b89157ea15754fd0ded830a970.zip |
Move send_request out of common.c because staprun no longer sends anything.
Diffstat (limited to 'runtime/staprun/common.c')
-rw-r--r-- | runtime/staprun/common.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/runtime/staprun/common.c b/runtime/staprun/common.c index d07f85b1..2ae1d8e4 100644 --- a/runtime/staprun/common.c +++ b/runtime/staprun/common.c @@ -296,28 +296,6 @@ void setup_signals(void) #endif } -/** - * send_request - send request to kernel over control channel - * @type: the relay-app command id - * @data: pointer to the data to be sent - * @len: length of the data to be sent - * - * Returns 0 on success, negative otherwise. - */ -int send_request(int type, void *data, int len) -{ - char buf[1024]; - - /* Before doing memcpy, make sure 'buf' is big enough. */ - if ((len + 4) > (int)sizeof(buf)) { - _err("exceeded maximum send_request size.\n"); - return -1; - } - memcpy(buf, &type, 4); - memcpy(&buf[4], data, len); - return write(control_channel, buf, len+4); -} - /* * set FD_CLOEXEC for any file descriptor */ |