[PATCH 0/3] perf tools: Factor perf data handling
From: Jiri Olsa
Date: Mon Oct 07 2013 - 05:32:31 EST
hi,
adding patches to centralize perf.data handling. New object
perf_data_file is added as a handler for perf.data file.
This cleans up perf.data handling and will become handy
for other perf.data file related changes in future, like
multiple file storage or separating storage into multiple
threads.
This patchset is extracted and rebased as generic one
from my earlier 'multiple file support' patchset:
http://marc.info/?t=137803189400001&r=1&w=2
It's reachable here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/file38
thanks,
jirka
Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
Cc: Corey Ashford <cjashfor@xxxxxxxxxxxxxxxxxx>
Cc: Frederic Weisbecker <fweisbec@xxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Cc: David Ahern <dsahern@xxxxxxxxx>
Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
Cc: Andi Kleen <andi@xxxxxxxxxxxxxx>
---
Jiri Olsa (3):
perf tools: Add data object to handle perf data file
perf tools: Add perf_data_file__open interface to data object
perf tools: Separating data file properties from session
tools/perf/Makefile | 1 +
tools/perf/builtin-annotate.c | 11 ++++++---
tools/perf/builtin-buildid-cache.c | 8 +++++--
tools/perf/builtin-buildid-list.c | 11 ++++++---
tools/perf/builtin-diff.c | 19 +++++++++------
tools/perf/builtin-evlist.c | 7 +++++-
tools/perf/builtin-inject.c | 7 +++++-
tools/perf/builtin-kmem.c | 7 +++++-
tools/perf/builtin-kvm.c | 13 +++++++---
tools/perf/builtin-lock.c | 7 +++++-
tools/perf/builtin-mem.c | 9 +++++--
tools/perf/builtin-record.c | 78 +++++++++++++++++++-----------------------------------------
tools/perf/builtin-report.c | 18 ++++++++++----
tools/perf/builtin-sched.c | 6 ++++-
tools/perf/builtin-script.c | 17 +++++++++----
tools/perf/builtin-timechart.c | 10 ++++++--
tools/perf/builtin-top.c | 7 ++----
tools/perf/builtin-trace.c | 8 ++++---
tools/perf/perf.h | 1 -
tools/perf/util/data.c | 120 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
tools/perf/util/data.h | 48 +++++++++++++++++++++++++++++++++++++
tools/perf/util/header.c | 20 +++++++++-------
tools/perf/util/session.c | 125 +++++++++++++++++++++++++++++++++++-------------------------------------------------------------
tools/perf/util/session.h | 11 ++++-----
24 files changed, 376 insertions(+), 193 deletions(-)
create mode 100644 tools/perf/util/data.c
create mode 100644 tools/perf/util/data.h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/