From 0aaf677efbf70fd173d241c01632b4eacc8226e5 Mon Sep 17 00:00:00 2001 From: fche Date: Fri, 19 Aug 2005 15:55:39 +0000 Subject: 2005-08-19 Frank Ch. Eigler * librelay.c (modpath): New global. Use it for insmod only. * stpd.c (main): Set both modpath and modname, to support modules specified by full path name. --- runtime/stpd/librelay.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime/stpd/librelay.c') diff --git a/runtime/stpd/librelay.c b/runtime/stpd/librelay.c index fabbd145..6bceb99f 100644 --- a/runtime/stpd/librelay.c +++ b/runtime/stpd/librelay.c @@ -84,6 +84,7 @@ static int control_channel; extern int print_only, quiet, merge, verbose; extern unsigned int buffer_size; extern char *modname; +extern char *modpath; /* per-cpu buffer info */ static struct buf_status @@ -424,7 +425,7 @@ int init_stp(const char *relay_filebase, int print_summary) perror ("vfork"); exit(-1); } else if (pid == 0) { - if (execl("/sbin/insmod", "insmod", modname, buf, NULL) < 0) + if (execl("/sbin/insmod", "insmod", modpath, buf, NULL) < 0) exit(-1); } if (waitpid(pid, &rstatus, 0) < 0) { @@ -432,7 +433,7 @@ int init_stp(const char *relay_filebase, int print_summary) exit(-1); } if (WIFEXITED(rstatus) && WEXITSTATUS(rstatus)) { - fprintf(stderr, "ERROR, couldn't insmod probe module %s\n", modname); + fprintf(stderr, "ERROR, couldn't insmod probe module %s\n", modpath); return -1; } -- cgit