diff options
Diffstat (limited to 'tools/perf/builtin-record.c')
-rw-r--r-- | tools/perf/builtin-record.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 6a5db675ee4f..3ce2f03f217a 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include "util/header.h" | 17 | #include "util/header.h" |
18 | #include "util/event.h" | 18 | #include "util/event.h" |
19 | #include "util/debug.h" | 19 | #include "util/debug.h" |
20 | #include "util/trace-event.h" | ||
20 | 21 | ||
21 | #include <unistd.h> | 22 | #include <unistd.h> |
22 | #include <sched.h> | 23 | #include <sched.h> |
@@ -519,6 +520,9 @@ static int __cmd_record(int argc, const char **argv) | |||
519 | signal(SIGCHLD, sig_handler); | 520 | signal(SIGCHLD, sig_handler); |
520 | signal(SIGINT, sig_handler); | 521 | signal(SIGINT, sig_handler); |
521 | 522 | ||
523 | if (raw_samples) | ||
524 | read_tracing_data(); | ||
525 | |||
522 | if (!stat(output_name, &st) && st.st_size) { | 526 | if (!stat(output_name, &st) && st.st_size) { |
523 | if (!force && !append_file) { | 527 | if (!force && !append_file) { |
524 | fprintf(stderr, "Error, output file %s exists, use -A to append or -f to overwrite.\n", | 528 | fprintf(stderr, "Error, output file %s exists, use -A to append or -f to overwrite.\n", |