Skip to content

perf tool: Fix enable/disable events logic for record command

Jiri Olsa lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5perf tool: Fix attributes for '{}' defined event groupstools/perf/builtin-record.c tools/perf/builtin-stat.c tools/perf/tests/attr/test-record-group1 +5 more+20 -281 reply
2/5perf tool: Fix 'disabled' attribute config for record commandtools/perf/builtin-record.c tools/perf/tests/attr/test-record-group tools/perf/tests/attr/test-record-group1 +1 more+56 -31 reply
3/5perf tool: Ensure single disable call per event in record comandtools/perf/builtin-record.c+4 -11 reply
4/5perf tool: Omit group members from perf_evlist__disable/enabletools/perf/util/evlist.c+4 -01 reply
5/5perf tool: Add basic event modifier sanity checktools/perf/util/parse-events.c tools/perf/util/parse-events.l+21 -13 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNamhyung Kim
SeriesA-b
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] perf tool: Fix enable/disable events logic for record command

hi,
this patchset fixes the event enable/disable logic for record command (patches 1 - 4) plus small fix for event parsing (patch 5).

Attached patches:
1/5 perf tool: Fix attributes for '{}' defined event groups 2/5 perf tool: Fix 'disabled' attribute config for record command 3/5 perf tool: Ensure single disable call per event in record comand 4/5 perf tool: Omit group members from perf_evlist__disable/enable 5/5 perf tool: Add basic event modifier sanity check

Also available in:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/linux.git
perf/enable5

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]>
---
 tools/perf/builtin-record.c               | 26 ++++++++++++++++++++++----
 tools/perf/builtin-stat.c                 | 11 ++++-------
 tools/perf/tests/attr/test-record-group   |  1 +
 tools/perf/tests/attr/test-record-group1  |  5 ++---
 tools/perf/tests/attr/test-stat-group1    |  6 ++----
 tools/perf/tests/open-syscall-tp-fields.c |  2 +-
 tools/perf/util/evlist.c                  | 10 ++++++----
 tools/perf/util/evsel.c                   | 50 ++++++++++++++++++++++++++++++++++++++++++++------
 tools/perf/util/evsel.h                   |  3 +--
 tools/perf/util/parse-events.c            | 20 ++++++++++++++++++++
 tools/perf/util/parse-events.l            |  2 +-
 11 files changed, 104 insertions(+), 32 deletions(-)