Skip to content

perf tools: Add perf_event_max_sample_rate freq check

Jiri Olsa lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 7 repliesSuperseded

Changes in v2 from the cover letter

naming changes suggested by Arnaldo in patch 1/3 patch 3/3:
- unify freq. config code for record and top
- add warning for default rate crossing the max

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3perf tools: Factor sysfs code into generic fs objecttools/perf/Makefile.perf tools/perf/tests/parse-events.c tools/perf/util/cpumap.c +6 more+119 -720 replies
2/3perf tools: Add procfs support into fs objecttools/perf/util/fs.c tools/perf/util/fs.h tools/perf/util/include/linux/magic.h+19 -20 replies
3/3perf tools: Check maximum frequency rate for record/toptools/perf/builtin-record.c tools/perf/builtin-top.c tools/perf/util/evlist.h +1 more+75 -280 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCHv2 0/3] perf tools: Add perf_event_max_sample_rate freq check

hi,
adding the check for maximum allowed frequency rate defined in perf_event_max_sample_rate.

Plus procfs mountpoint reading code. Reachable here:
git://git.kernel.org/pub/scm/linux/kernel/git/jolsa/perf.git
perf/max_rate

v2 changes:
naming changes suggested by Arnaldo in patch 1/3 patch 3/3:
- unify freq. config code for record and top
- add warning for default rate crossing the max

jirka

Cc Adrian Hunter <[email protected]>
Cc Corey Ashford <[email protected]>
Cc David Ahern <[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 Joe Mario <[email protected]>
Cc Don Zickus <[email protected]>

---
Jiri Olsa (3):
perf tools: Factor sysfs code into generic fs object perf tools: Add procfs support into fs object perf tools: Check maximum frequency rate for record/top

 tools/perf/Makefile.perf              |   4 ++--
 tools/perf/builtin-record.c           |  15 +-----------
 tools/perf/builtin-top.c              |  15 +-----------
 tools/perf/tests/parse-events.c       |   2 +-
 tools/perf/util/cpumap.c              |   2 +-
 tools/perf/util/evlist.h              |   1 +
 tools/perf/util/fs.c                  | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/util/fs.h                  |   7 ++++++
 tools/perf/util/include/linux/magic.h |   4 ++++
 tools/perf/util/pmu.c                 |   2 +-
 tools/perf/util/python-ext-sources    |   2 +-
 tools/perf/util/record.c              |  72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/perf/util/sysfs.c               |  60 -----------------------------------------------
 tools/perf/util/sysfs.h               |   6 -----
 14 files changed, 211 insertions(+), 100 deletions(-)
 create mode 100644 tools/perf/util/fs.c
 create mode 100644 tools/perf/util/fs.h
 delete mode 100644 tools/perf/util/sysfs.c
 delete mode 100644 tools/perf/util/sysfs.h