|
|
@@ -1677,8 +1677,10 @@ int cmd_record(int argc, const char **argv, const char *prefix __maybe_unused)
|
|
|
|
|
|
argc = parse_options(argc, argv, record_options, record_usage,
|
|
|
PARSE_OPT_STOP_AT_NON_OPTION);
|
|
|
+
|
|
|
+ /* Make system wide (-a) the default target. */
|
|
|
if (!argc && target__none(&rec->opts.target))
|
|
|
- usage_with_options(record_usage, record_options);
|
|
|
+ rec->opts.target.system_wide = true;
|
|
|
|
|
|
if (nr_cgroups && !rec->opts.target.system_wide) {
|
|
|
usage_with_options_msg(record_usage, record_options,
|