From: David Ahern Date: Wed, 6 Nov 2013 18:41:35 +0000 (-0700) Subject: perf record: Remove advance_output function X-Git-Tag: MMI-PSA29.97-13-9~13343^2~1^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f34b9001f9a2f6fa41d3582fe515d194cc86bfb2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git perf record: Remove advance_output function 1 line function with only 1 user; might as well embed directly. Signed-off-by: David Ahern Suggested-by: Ingo Molnar Acked-by: Ingo Molnar Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Jiri Olsa Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/r/1383763297-27066-3-git-send-email-dsahern@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- 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 { 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; } }