Skip to content

perf tests: Check for ARM [vectors] page

Florian Fainelli lkml 3 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 5 repliesApplied
  2. v22 patches 6 repliesSuperseded
  3. v12 patches 7 repliesSuperseded

Changes in v3 from the cover letter

- remove find_vdso_map() call find_map() with VDSO__MAP_NAME

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2perf tools: Make find_vdso_map() more modulartools/perf/Makefile.perf tools/perf/perf-read-vdso.c tools/perf/util/find-map.c +1 more+11 -120 replies
2/2perf tests: Add a test for the ARM 32-bit [vectors] pagetools/perf/arch/arm/tests/Build tools/perf/arch/arm/tests/arch-tests.c tools/perf/arch/arm/tests/vectors-page.c +1 more+34 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJiri Olsa
SeriesA-b
1/2
2/2

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

Read the v3 thread

Cover letter [PATCH v3 0/2] perf tests: Check for ARM [vectors] page

Hi all,

I just painfully learned that perf would segfault when CONFIG_KUSER_HELPERS is disabled because it unconditionally makes use of it. This patch series adds an ARM test for that by leveraging the existing find_vdso_map() function and making it more generic and capable of location any map within /proc/self/maps.

Changes in v3:

- remove find_vdso_map() call find_map() with VDSO__MAP_NAME

Changes in v2:

- use strlen() instead of sizeof() -1 since we made the page name a parameter
- use TEST_OK/TEST_FAIL in lieu of 0/-1
- added an error message indicating CONFIG_KUSER_HELPERS might be disabled

Florian Fainelli (2):
perf tools: Make find_vdso_map() more modular perf tests: Add a test for the ARM 32-bit [vectors] page

 tools/perf/Makefile.perf                      |  4 ++--
 tools/perf/arch/arm/tests/Build               |  1 +
 tools/perf/arch/arm/tests/arch-tests.c        |  4 ++++
 tools/perf/arch/arm/tests/vectors-page.c      | 24 +++++++++++++++++++
 tools/perf/perf-read-vdso.c                   |  6 ++---
 tools/perf/tests/tests.h                      |  5 ++++
 .../perf/util/{find-vdso-map.c => find-map.c} |  7 +++---
 tools/perf/util/vdso.c                        |  6 ++---
 8 files changed, 45 insertions(+), 12 deletions(-)
 create mode 100644 tools/perf/arch/arm/tests/vectors-page.c
 rename tools/perf/util/{find-vdso-map.c => find-map.c} (71%)
Signature · 1 line
2.17.1