summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/staprun.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-11-05 18:17:50 -0500
committerDave Brolley <brolley@redhat.com>2009-11-05 18:17:50 -0500
commit5e90af3e298ae39838acedf85f1301806143e920 (patch)
tree0ce2f607d81b110d0ae3b4161d733d66fe564710 /runtime/staprun/staprun.c
parentffe4285b81564e098aa7a2d056ff62a8700f321d (diff)
downloadsystemtap-steved-5e90af3e298ae39838acedf85f1301806143e920.tar.gz
systemtap-steved-5e90af3e298ae39838acedf85f1301806143e920.tar.xz
systemtap-steved-5e90af3e298ae39838acedf85f1301806143e920.zip
Revert change which loads uprobes.ko using insert_module.
Diffstat (limited to 'runtime/staprun/staprun.c')
-rw-r--r--runtime/staprun/staprun.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/staprun/staprun.c b/runtime/staprun/staprun.c
index 1cedc9f0..c5651d9a 100644
--- a/runtime/staprun/staprun.c
+++ b/runtime/staprun/staprun.c
@@ -129,12 +129,14 @@ static int enable_uprobes(void)
if (run_as(0, 0, 0, argv[0], argv) == 0)
return 0;
- /* This module may be signed, so use insert_module to load it. */
snprintf (runtimeko, sizeof(runtimeko), "%s/uprobes/uprobes.ko",
(getenv("SYSTEMTAP_RUNTIME") ?: PKGDATADIR "/runtime"));
dbug(2, "Inserting uprobes module from SystemTap runtime %s.\n", runtimeko);
- argv[0] = NULL;
- if (insert_module(runtimeko, NULL, argv) == 0)
+ i = 0;
+ argv[i++] = "/sbin/insmod";
+ argv[i++] = runtimeko;
+ argv[i] = NULL;
+ if (run_as(0, 0, 0, argv[0], argv) == 0)
return 0;
return 1; /* failure */