diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin-record.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c index 2932069ad7a8..19c4db6bdd6f 100644 --- a/tools/perf/builtin-record.c +++ b/tools/perf/builtin-record.c | |||
@@ -77,11 +77,6 @@ struct perf_record { | |||
77 | off_t post_processing_offset; | 77 | off_t post_processing_offset; |
78 | }; | 78 | }; |
79 | 79 | ||
80 | static void advance_output(struct perf_record *rec, size_t size) | ||
81 | { | ||
82 | rec->bytes_written += size; | ||
83 | } | ||
84 | |||
85 | static int write_output(struct perf_record *rec, void *buf, size_t size) | 80 | static int write_output(struct perf_record *rec, void *buf, size_t size) |
86 | { | 81 | { |
87 | struct perf_data_file *file = &rec->file; | 82 | struct perf_data_file *file = &rec->file; |
@@ -461,7 +456,7 @@ static int __cmd_record(struct perf_record *rec, int argc, const char **argv) | |||
461 | pr_err("Couldn't record tracing data.\n"); | 456 | pr_err("Couldn't record tracing data.\n"); |
462 | goto out_delete_session; | 457 | goto out_delete_session; |
463 | } | 458 | } |
464 | advance_output(rec, err); | 459 | rec->bytes_written += err; |
465 | } | 460 | } |
466 | } | 461 | } |
467 | 462 | ||