Messages in this thread | | | From | Jiri Olsa <> | Subject | [PATCH 0/3] perf tools: Add data file write interface | Date | Fri, 22 Nov 2013 15:24:25 +0100 |
| |
hi, adding perf_data_file__write function to centralize output file writes. Using it in record and inject commands.
David, patch 2 could colide with your mmap changes, not sure what's your plan with that in near future, let me know and I can rebase if needed.
thanks, jirka
Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Stephane Eranian <eranian@google.com> Cc: David Ahern <dsahern@gmail.com> Cc: Adrian Hunter <adrian.hunter@intel.com> --- Jiri Olsa (3): perf tools: Add perf_data_file__write interface perf record: Use perf_data_file__write for output file perf inject: Handle output file via perf_data_file object
tools/perf/builtin-inject.c | 71 +++++++++++++++++++++++++++++++---------------------------------------- tools/perf/builtin-record.c | 42 +++++++++++++----------------------------- tools/perf/util/data.c | 20 ++++++++++++++++++++ tools/perf/util/data.h | 15 ++++++++------- 4 files changed, 72 insertions(+), 76 deletions(-)
| |