summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2008-04-22 10:40:32 -0400
committerMartin Hunt <hunt@redhat.com>2008-04-22 10:40:32 -0400
commitb965da8f3c53958af08bf7f57718265713cebb0a (patch)
treea1f9ea12ce410655b52b7a8e8bb03affbca7ece1
parent6ca9c38f319a848f2628fb430c7998e25be9c0fd (diff)
downloadsystemtap-steved-b965da8f3c53958af08bf7f57718265713cebb0a.tar.gz
systemtap-steved-b965da8f3c53958af08bf7f57718265713cebb0a.tar.xz
systemtap-steved-b965da8f3c53958af08bf7f57718265713cebb0a.zip
Add documentation for staprun -d option.
-rw-r--r--ChangeLog3
-rw-r--r--runtime/staprun/ChangeLog4
-rw-r--r--runtime/staprun/common.c3
-rw-r--r--staprun.8.in7
4 files changed, 16 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 95b34db5..bf638e8b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2008-04-22 hunt <hunt@redhat.com>
+ * staprun.8.in: Add documentation for -d option.
+
2008-04-22 David Smith <dsmith@redhat.com>
* tapsets.cxx (utrace_derived_probe_group::emit_module_decls):
diff --git a/runtime/staprun/ChangeLog b/runtime/staprun/ChangeLog
index 6b8204f7..71e4d412 100644
--- a/runtime/staprun/ChangeLog
+++ b/runtime/staprun/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-22 hunt <hunt@redhat.com>
+
+ * common.c (usage): Add -d option.
+
2008-04-21 Martin Hunt <hunt@redhat.com>
* staprun.c, stapio.c, staprun.h, mainloop.c, staprun_funcs.c,
diff --git a/runtime/staprun/common.c b/runtime/staprun/common.c
index f228caff..d07f85b1 100644
--- a/runtime/staprun/common.c
+++ b/runtime/staprun/common.c
@@ -135,6 +135,9 @@ void usage(char *prog)
err(" That value will be per-cpu in bulk mode.\n");
err("-L Load module and start probes, then detach.\n");
err("-A Attach to loaded systemtap module.\n");
+ err("-d modulename Delete a module. Only detached or unused modules\n");
+ err(" the user has permission to access will be deleted. Use \"*\"\n");
+ err(" (quoted) to delete all unused modules.\n");
err("MODULE can be either a module name or a module path. If a\n");
err("module name is used, it is looked for in the following\n");
err("directory: /lib/modules/`uname -r`/systemtap\n");
diff --git a/staprun.8.in b/staprun.8.in
index c1678f69..90d755a7 100644
--- a/staprun.8.in
+++ b/staprun.8.in
@@ -68,6 +68,11 @@ option.
.TP
.B \-A
Attach to loaded systemtap module.
+.TP
+.B \-d MODULENAME
+Delete a module. Only detached or unused modules
+the user has permission to access will be deleted. Use "*"
+(quoted) to delete all unused modules.
.SH ARGUMENTS
.B MODULE
@@ -136,7 +141,7 @@ Members of the
.I stapusr
group can use
.I staprun
-to insert systemtap modules (or attach to existing systemtap modules) that
+to insert or remove systemtap modules (or attach to existing systemtap modules) that
are located in the /lib/modules/VERSION/systemtap directory.
.SH FILES
.TP