diff options
-rw-r--r-- | trace-cmd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/trace-cmd.c b/trace-cmd.c index 22441b8..52ae03c 100644 --- a/trace-cmd.c +++ b/trace-cmd.c | |||
@@ -1191,7 +1191,7 @@ int main (int argc, char **argv) | |||
1191 | case 'o': | 1191 | case 'o': |
1192 | if (!record) | 1192 | if (!record) |
1193 | die("start does not take output\n" | 1193 | die("start does not take output\n" |
1194 | "Did you mean 'record'?\n"); | 1194 | "Did you mean 'record'?"); |
1195 | if (output) | 1195 | if (output) |
1196 | die("only one output file allowed"); | 1196 | die("only one output file allowed"); |
1197 | output = optarg; | 1197 | output = optarg; |
@@ -1264,6 +1264,9 @@ int main (int argc, char **argv) | |||
1264 | die("Command start does not take any commands\n" | 1264 | die("Command start does not take any commands\n" |
1265 | "Did you mean 'record'?"); | 1265 | "Did you mean 'record'?"); |
1266 | 1266 | ||
1267 | if (!events && !plugin) | ||
1268 | die("no event or plugin was specified... aborting"); | ||
1269 | |||
1267 | if (record) { | 1270 | if (record) { |
1268 | if (output) | 1271 | if (output) |
1269 | output_file = output; | 1272 | output_file = output; |