perf record: Remove advance_output function
authorDavid Ahern <[email protected]>
Wed, 6 Nov 2013 18:41:35 +0000 (11:41 -0700)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 7 Nov 2013 13:43:15 +0000 (10:43 -0300)
1 line function with only 1 user; might as well embed directly.

Signed-off-by: David Ahern <[email protected]>
Suggested-by: Ingo Molnar <[email protected]>
Acked-by: Ingo Molnar <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/builtin-record.c

index 2932069ad7a81894d0aa95e0c79a05e925da1ed2..19c4db6bdd6f91ea6d61ce3e04450770f44feb9b 100644 (file)
@@ -77,11 +77,6 @@ struct perf_record {
        off_t                   post_processing_offset;
 };
 
-static void advance_output(struct perf_record *rec, size_t size)
-{
-       rec->bytes_written += size;
-}
-
 static int write_output(struct perf_record *rec, void *buf, size_t size)
 {
        struct perf_data_file *file = &rec->file;
@@ -461,7 +456,7 @@ static int __cmd_record(struct perf_record *rec, int argc, const char **argv)
                                pr_err("Couldn't record tracing data.\n");
                                goto out_delete_session;
                        }
-                       advance_output(rec, err);
+                       rec->bytes_written += err;
                }
        }