summaryrefslogtreecommitdiffstats
path: root/runtime/staprun/common.c
diff options
context:
space:
mode:
authordsmith <dsmith>2007-08-20 14:02:47 +0000
committerdsmith <dsmith>2007-08-20 14:02:47 +0000
commit51d74220e22628126489527776af8c13e339c1ec (patch)
tree3cce72771ef82d0b6b94f9b573d2b765e0cfd77d /runtime/staprun/common.c
parent5c5eb9aa3b383a9bd0b7e5a6b7fcdafc090b0049 (diff)
downloadsystemtap-steved-51d74220e22628126489527776af8c13e339c1ec.tar.gz
systemtap-steved-51d74220e22628126489527776af8c13e339c1ec.tar.xz
systemtap-steved-51d74220e22628126489527776af8c13e339c1ec.zip
2007-08-20 David Smith <dsmith@redhat.com>
From Lai Jiangshan <laijs@cn.fujitsu.com> * common.c (parse_args): Make sure the '-c' and '-x' options can't be specified together.
Diffstat (limited to 'runtime/staprun/common.c')
-rw-r--r--runtime/staprun/common.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/staprun/common.c b/runtime/staprun/common.c
index cbe88be0..9056c710 100644
--- a/runtime/staprun/common.c
+++ b/runtime/staprun/common.c
@@ -104,6 +104,11 @@ void parse_args(int argc, char **argv)
"option only has an effect when the module is inserted.\n");
usage(argv[0]);
}
+
+ if (target_cmd && target_pid) {
+ err("You can't specify the '-c' and '-x' options together.\n");
+ usage(argv[0]);
+ }
}
void usage(char *prog)