Skip to content

perf tools: Factor perf data handling

Jiri Olsa lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf tools: Add data object to handle perf data filetools/perf/builtin-annotate.c tools/perf/builtin-buildid-cache.c tools/perf/builtin-buildid-list.c +18 more+186 -730 replies
2/3perf tools: Add perf_data_file__open interface to data objecttools/perf/Makefile tools/perf/builtin-record.c tools/perf/builtin-top.c +4 more+158 -1070 replies
3/3perf tools: Separating data file properties from sessiontools/perf/builtin-annotate.c tools/perf/builtin-buildid-list.c tools/perf/builtin-record.c +6 more+55 -360 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] perf tools: Factor perf data handling

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

Cc Corey Ashford <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Arnaldo Carvalho de Melo <[email protected]>
Cc David Ahern <[email protected]>
Cc Adrian Hunter <[email protected]>
Cc Andi Kleen <[email protected]>

---
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