Message ID | 1460643725-167413-4-git-send-email-wangnan0@huawei.com |
---|---|
State | New |
Headers | show |
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index ca40726..32db7a7 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c @@ -1338,6 +1338,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)