diff options
Diffstat (limited to 'runtime/staprun/common.c')
-rw-r--r-- | runtime/staprun/common.c | 5 |
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) |