Skip to content

perf: Enable mmap2 and add dcacheline sorting

Don Zickus lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 3 repliesIn review
  2. v37 patches 5 repliesSuperseded
  3. v26 patches 10 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches15 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7events, perf: Pass protection and flags bits through mmap2 interfaceinclude/uapi/linux/perf_event.h kernel/events/core.c+34 -00 replies
2/7Revert "perf: Disable PERF_RECORD_MMAP2 support"kernel/events/core.c tools/perf/tests/dwarf-unwind.c tools/perf/util/event.c +1 more+21 -222 replies
3/7perf: Update mmap2 interface with protection and flag bitstools/perf/util/event.c tools/perf/util/event.h tools/perf/util/machine.c +2 more+32 -50 replies
4/7perf report: Add mem-mode documentation to report commandtools/perf/Documentation/perf-report.txt+22 -00 replies
5/7perf: Add cpumode to struct hist_entrytools/perf/util/hist.c tools/perf/util/sort.h+5 -30 replies
6/7perf: Add support to dynamically get cacheline sizetools/perf/perf.c tools/perf/util/cpumap.c tools/perf/util/cpumap.h +3 more+38 -05 replies
7/7perf: Add dcacheline sorttools/perf/Documentation/perf-report.txt tools/perf/builtin-report.c tools/perf/util/hist.c +3 more+114 -20 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH 0/7 V4] perf: Enable mmap2 and add dcacheline sorting

These patches enable mmap2 support in the kernel and perf to allow support for data cacheline sorting.

Note: I haven't been able to reproduce Jiri's perf hang yet, so I don't have a patch for that particular problem yet.

V4: reworked setting up cacheline size (Jiri Olsa)

V3: added patch to get cacheline size at runtime
updated some changelogs
fix a test failure (after install libunwind-devel) fix header column length

V2: change cacheline to dcacheline (Namhyung Kim)
change dcacheline alogorithm a bit
re-order mmap2 patches (Namhyung Kim)
provide documentation (Andi Kleen)

Don Zickus (7):
events, perf: Pass protection and flags bits through mmap2 interface Revert "perf: Disable PERF_RECORD_MMAP2 support"
perf: Update mmap2 interface with protection and flag bits perf report: Add mem-mode documentation to report command
perf: Add cpumode to struct hist_entry
perf: Add support to dynamically get cacheline size
perf: Add dcacheline sort

 include/uapi/linux/perf_event.h          |   1 +
 kernel/events/core.c                     |  37 +++++++++--
 tools/perf/Documentation/perf-report.txt |  23 +++++++
 tools/perf/builtin-report.c              |   2 +-
 tools/perf/perf.c                        |   5 ++
 tools/perf/tests/dwarf-unwind.c          |   2 +-
 tools/perf/util/cpumap.c                 |  27 ++++++++
 tools/perf/util/cpumap.h                 |   3 +
 tools/perf/util/event.c                  |  59 +++++++++++------
 tools/perf/util/event.h                  |   2 +
 tools/perf/util/evsel.c                  |   1 +
 tools/perf/util/hist.c                   |   9 ++-
 tools/perf/util/hist.h                   |   1 +
 tools/perf/util/machine.c                |   4 +-
 tools/perf/util/map.c                    |   4 +-
 tools/perf/util/map.h                    |   4 +-
 tools/perf/util/sort.c                   | 108 +++++++++++++++++++++++++++++++
 tools/perf/util/sort.h                   |   2 +
 tools/perf/util/util.c                   |   1 +
 tools/perf/util/util.h                   |   1 +
 20 files changed, 265 insertions(+), 31 deletions(-)
Signature · 1 line
1.7.11.7