Messages in this thread | | | From | Jiri Olsa <> | Subject | [PATCH 0/4] perf tool: Refactoring IO mmap/data files code | Date | Fri, 9 Dec 2011 18:30:34 +0100 |
| |
Hi, centralizing event mmaps and output file functionality.
Adding perf_mmap object to encapsulate event's memory maps, and perf_data object to handle intput/output data file processing.
attached patches: 1/4 perf, tool: Centralize the memory maps handling 2/4 perf, tool: Factor evlist code to use global unmap function 3/4 perf, tool: Introducing perf_mmap object 4/4 perf, tool: Introducing perf_data object
wbr, jirka --- tools/perf/Makefile | 5 + tools/perf/builtin-annotate.c | 2 +- tools/perf/builtin-buildid-list.c | 4 +- tools/perf/builtin-diff.c | 6 +- tools/perf/builtin-evlist.c | 3 +- tools/perf/builtin-inject.c | 3 +- tools/perf/builtin-kmem.c | 3 +- tools/perf/builtin-lock.c | 3 +- tools/perf/builtin-record.c | 165 ++++++++---------------------- tools/perf/builtin-report.c | 2 +- tools/perf/builtin-sched.c | 6 +- tools/perf/builtin-script.c | 3 +- tools/perf/builtin-timechart.c | 5 +- tools/perf/builtin-top.c | 8 +- tools/perf/perf.h | 26 ----- tools/perf/util/data.c | 201 +++++++++++++++++++++++++++++++++++++ tools/perf/util/data.h | 64 ++++++++++++ tools/perf/util/evlist.c | 131 +++++------------------- tools/perf/util/evlist.h | 1 + tools/perf/util/header.c | 28 +++--- tools/perf/util/header.h | 4 +- tools/perf/util/mmap.c | 140 ++++++++++++++++++++++++++ tools/perf/util/mmap.h | 49 +++++++++ tools/perf/util/session.c | 111 +++++++------------- tools/perf/util/session.h | 21 +++- tools/perf/util/setup.py | 2 +- 26 files changed, 633 insertions(+), 363 deletions(-)
| |