Skip to content

perf tool: Add support for multiple data file storage

Jiri Olsa lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest25 patches 18 repliesIn review
  2. v1 RFC23 patches 20 repliesSuperseded

Changes in v2 from the cover letter

- reworked perf mmap size setup to be able to get the mmap size value easily later
- added perf.data read/write test for v2 and v3 for both endianity
- added record '-M time' support

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/25perf tools: Check mmap pages value earlytools/perf/builtin-kvm.c tools/perf/builtin-record.c tools/perf/builtin-top.c +3 more+54 -220 replies
2/25perf tools: Add possibility to specify mmap sizetools/perf/Documentation/perf-kvm.txt tools/perf/Documentation/perf-record.txt tools/perf/Documentation/perf-top.txt +4 more+77 -100 replies
3/25perf tools: Introduce perf_evlist__new_default functiontools/perf/tests/perf-record.c tools/perf/tests/task-exit.c tools/perf/util/evlist.c +1 more+16 -230 replies
4/25perf tools: Adding throttle event data struct supporttools/perf/util/event.h tools/perf/util/python.c tools/perf/util/session.c+20 -70 replies
5/25perf tests: Add simple session read/write testtools/perf/Makefile tools/perf/tests/builtin-test.c tools/perf/tests/session-simple.c +1 more+608 -00 replies
6/25perf tests: Add session reading test for little endian perf datatools/perf/Makefile tools/perf/tests/perf.data.v2.le.h tools/perf/tests/session-simple.c+253 -00 replies
7/25perf tests: Add session reading test for big endian perf datatools/perf/Makefile tools/perf/tests/perf.data.v2.be.h tools/perf/tests/session-simple.c+272 -00 replies
8/25perf doc: Add perf data file documentationtools/perf/Documentation/perf-data-file-v2.txt+264 -00 replies
9/25perf tools: Introduce perf data file version CHECK macrotools/perf/util/header.c+16 -110 replies
10/25perf tools: Introduce swap_features functiontools/perf/util/header.c+35 -340 replies
11/25perf tools: Introduce swap_header functiontools/perf/util/header.c+18 -130 replies
12/25perf tools: Separate version 2 specific perf data header bitstools/perf/util/header.c tools/perf/util/header.h+92 -460 replies
13/25perf tools: Using evlist as a holder for event_desc featuretools/perf/util/header.c+38 -460 replies
14/25perf tools: Introduce perf.data version 3 formattools/perf/Documentation/perf-data-file-v3.txt tools/perf/util/header.c tools/perf/util/header.h+78 -10 replies
15/25perf tools: Add perf data version 3 header swaptools/perf/util/header.c+18 -30 replies
16/25perf tools: Add perf data version 3 header readtools/perf/util/header.c+39 -70 replies
17/25perf tools: Add perf.data version 3 header writetools/perf/Documentation/perf-data-file-v2.txt tools/perf/builtin-inject.c tools/perf/builtin-record.c +3 more+36 -570 replies
18/25perf tools: Get rid of post_processing_offset in record commandtools/perf/builtin-record.c+6 -70 replies
19/25perf tools: Move synthesizing into single functiontools/perf/builtin-annotate.c tools/perf/builtin-buildid-cache.c tools/perf/builtin-buildid-list.c +19 more+290 -1430 replies
20/25perf tools: Add perf_data_file__open interface to data objecttools/perf/Makefile tools/perf/builtin-record.c tools/perf/builtin-top.c +5 more+158 -1100 replies
21/25perf tools: Separating data file properties from sessiontools/perf/builtin-annotate.c tools/perf/builtin-buildid-list.c tools/perf/builtin-record.c +7 more+64 -390 replies
22/25perf tests: Add session reading test for little endian perf data v3tools/perf/Makefile tools/perf/tests/perf.data.v3.le.h tools/perf/tests/session-simple.c+219 -00 replies
23/25perf tests: Add session reading test for big endian perf data v3tools/perf/Makefile tools/perf/tests/perf.data.v3.be.h tools/perf/tests/session-simple.c+265 -00 replies
24/25perf tools: Add multi file '-M' option for record commandtools/perf/Documentation/perf-record.txt tools/perf/builtin-record.c tools/perf/perf.h +3 more+280 -224 replies
25/25perf tools: Have the process properly sythesized in subsequent data filestools/perf/builtin-record.c+11 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCHv2 00/25] perf tool: Add support for multiple data file storage

hi,
sending the support for multiple file storage. Initial RFC is here:
http://marc.info/?l=linux-kernel&m=137408381902423&w=2

v2 changes:
- reworked perf mmap size setup to be able to get the mmap size value easily later
- added perf.data read/write test for v2 and v3 for both endianity
- added record '-M time' support

It's reachable here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/core_file

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 Andi Kleen <[email protected]>
Cc David Ahern <[email protected]>

---
Jiri Olsa (25):
perf tools: Check mmap pages value early
perf tools: Add possibility to specify mmap size
perf tools: Introduce perf_evlist__new_default function
perf tools: Adding throttle event data struct support
perf tests: Add simple session read/write test
perf tests: Add session reading test for little endian perf data perf tests: Add session reading test for big endian perf data perf doc: Add perf data file documentation
perf tools: Introduce perf data file version CHECK macro perf tools: Introduce swap_features function
perf tools: Introduce swap_header function
perf tools: Separate version 2 specific perf data header bits perf tools: Using evlist as a holder for event_desc feature perf tools: Introduce perf.data version 3 format
perf tools: Add perf data version 3 header swap
perf tools: Add perf data version 3 header read
perf tools: Add perf.data version 3 header write
perf tools: Get rid of post_processing_offset in record command perf tools: Move synthesizing into single function
perf tools: Add perf_data_file__open interface to data object perf tools: Separating data file properties from session perf tests: Add session reading test for little endian perf data v3 perf tests: Add session reading test for big endian perf data v3 perf tools: Add multi file '-M' option for record command perf tools: Have the process properly sythesized in subsequent data files

 tools/perf/Documentation/perf-data-file-v2.txt | 265 ++++++++++++++++++++++++++++++++++
 tools/perf/Documentation/perf-data-file-v3.txt |  63 ++++++++
 tools/perf/Documentation/perf-kvm.txt          |   4 +-
 tools/perf/Documentation/perf-record.txt       |  18 ++-
 tools/perf/Documentation/perf-top.txt          |   4 +-
 tools/perf/Documentation/perf-trace.txt        |   4 +-
 tools/perf/Makefile                            |   6 +
 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                    |  10 +-
 tools/perf/builtin-kmem.c                      |   7 +-
 tools/perf/builtin-kvm.c                       |  18 ++-
 tools/perf/builtin-lock.c                      |   8 +-
 tools/perf/builtin-mem.c                       |   9 +-
 tools/perf/builtin-record.c                    | 484 ++++++++++++++++++++++++++++++++++++++++++++------------------
 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                       |  12 +-
 tools/perf/builtin-trace.c                     |  13 +-
 tools/perf/perf.h                              |  15 +-
 tools/perf/tests/builtin-test.c                |   4 +
 tools/perf/tests/perf-record.c                 |  12 +-
 tools/perf/tests/perf.data.v2.be.h             | 265 ++++++++++++++++++++++++++++++++++
 tools/perf/tests/perf.data.v2.le.h             | 219 ++++++++++++++++++++++++++++
 tools/perf/tests/perf.data.v3.be.h             | 258 +++++++++++++++++++++++++++++++++
 tools/perf/tests/perf.data.v3.le.h             | 212 +++++++++++++++++++++++++++
 tools/perf/tests/session-simple.c              | 658 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/tests/task-exit.c                   |  14 +-
 tools/perf/tests/tests.h                       |   1 +
 tools/perf/util/data.c                         | 120 ++++++++++++++++
 tools/perf/util/data.h                         |  48 +++++++
 tools/perf/util/event.h                        |   7 +
 tools/perf/util/evlist.c                       |  78 ++++++++--
 tools/perf/util/evlist.h                       |   9 +-
 tools/perf/util/evsel.c                        |  24 ++++
 tools/perf/util/header.c                       | 446 +++++++++++++++++++++++++++++++++------------------------
 tools/perf/util/header.h                       |  31 +++-
 tools/perf/util/python.c                       |   7 -
 tools/perf/util/session.c                      | 138 ++++++++----------
 tools/perf/util/session.h                      |  11 +-
 tools/perf/util/util.c                         |  25 ++++
 tools/perf/util/util.h                         |  14 ++
 47 files changed, 3137 insertions(+), 511 deletions(-)
 create mode 100644 tools/perf/Documentation/perf-data-file-v2.txt
 create mode 100644 tools/perf/Documentation/perf-data-file-v3.txt
 create mode 100644 tools/perf/tests/perf.data.v2.be.h
 create mode 100644 tools/perf/tests/perf.data.v2.le.h
 create mode 100644 tools/perf/tests/perf.data.v3.be.h
 create mode 100644 tools/perf/tests/perf.data.v3.le.h
 create mode 100644 tools/perf/tests/session-simple.c
 create mode 100644 tools/perf/util/data.c
 create mode 100644 tools/perf/util/data.h