Commit f34b9001 authored by David Ahern's avatar David Ahern Committed by Arnaldo Carvalho de Melo

perf record: Remove advance_output function

1 line function with only 1 user; might as well embed directly.
Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
Suggested-by: default avatarIngo Molnar <mingo@kernel.org>
Acked-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1383763297-27066-3-git-send-email-dsahern@gmail.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 57706abc
...@@ -77,11 +77,6 @@ struct perf_record { ...@@ -77,11 +77,6 @@ struct perf_record {
off_t post_processing_offset; 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) static int write_output(struct perf_record *rec, void *buf, size_t size)
{ {
struct perf_data_file *file = &rec->file; 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,7 +456,7 @@ static int __cmd_record(struct perf_record *rec, int argc, const char **argv)
pr_err("Couldn't record tracing data.\n"); pr_err("Couldn't record tracing data.\n");
goto out_delete_session; goto out_delete_session;
} }
advance_output(rec, err); rec->bytes_written += err;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment