Skip to content

perf tools: Persistent events, changes for perf tool integration

Robert Richter lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4perf tools: Rename flex conditions to avoid name conflictstools/perf/util/parse-events.l+12 -120 replies
2/4perf tools: Modify event parser to update event attribute by indextools/perf/tests/parse-events.c tools/perf/util/parse-events.c tools/perf/util/parse-events.h +2 more+65 -600 replies
3/4perf tools: Add attr<num> syntax to event parsertools/perf/util/parse-events.l tools/perf/util/pmu.c tools/perf/util/pmu.h +2 more+37 -370 replies
4/4perf tools: Retry mapping buffers readonly on EACCEStools/perf/builtin-record.c tools/perf/builtin-top.c tools/perf/perf.h+15 -50 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH resent 0/4] perf tools: Persistent events, changes for perf tool integration

This patch set contains userland changes necessary for out-of-the-box support of persistent events. These patches are follow on patches of the kernel patches I sent out today:

[PATCH 00/16] perf, persistent: Kernel updates for perf tool integration

Persistent events are always enabled kernel events. Buffers are mapped readonly and multiple users are allowed. The persistent event flag of the event attribute must be set to specify such an event.

The following changes to perf tools are necessary to support persistent events. A way is needed to specify sysfs entries to set event flags. For this a new syntax 'attr<num>' was added to the event parser, see patch #3. We also need to change perf tools to mmap persistent event buffers readonly.

All patches can be found here:

git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile.git persistent-v3

-Robert

Robert Richter (4):
perf tools: Rename flex conditions to avoid name conflicts perf tools: Modify event parser to update event attribute by index perf tools: Add attr<num> syntax to event parser
perf tools: Retry mapping buffers readonly on EACCES

 tools/perf/builtin-record.c     | 11 +++++---
 tools/perf/builtin-top.c        |  8 ++++--
 tools/perf/perf.h               |  1 +
 tools/perf/tests/parse-events.c | 12 ++++++---
 tools/perf/util/parse-events.c  | 59 +++++++++++++++++++----------------------
 tools/perf/util/parse-events.h  | 12 ++++-----
 tools/perf/util/parse-events.l  | 56 +++++++++++++++++++++++---------------
 tools/perf/util/parse-events.y  | 24 ++++++++++-------
 tools/perf/util/pmu.c           | 32 +++++-----------------
 tools/perf/util/pmu.h           |  9 ++-----
 tools/perf/util/pmu.l           |  1 +
 tools/perf/util/pmu.y           | 18 ++++++++++---
 12 files changed, 129 insertions(+), 114 deletions(-)
Signature · 1 line
1.8.3.2