Message ID | 1452520124-2073-38-git-send-email-wangnan0@huawei.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index e8f930c..d32facd 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -1343,6 +1343,9 @@ int cmd_record(int argc, const char **argv, const char *prefix __maybe_unused) return -EINVAL; } + if (rec->switch_output) + rec->timestamp_filename = true; + if (!rec->itr) { rec->itr = auxtrace_record__init(rec->evlist, &err); if (err)