Skip to content

RFC test driver to analyse vmalloc allocator

Uladzislau Rezki (Sony) linux-mm lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 RFC Latest3 patches 2 repliesIn review
  2. v3 RFC3 patches 0 repliesSuperseded
  3. v2 RFC3 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC1 patch9 repliesSuperseded

Changes in v4 from the cover letter

- Since the test can take time, switch to wait_for_completion_timeout() with HZ sleep interval to prevent triggering of the trace about hung task;
- Fix clean apply for v4.20 kernel.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3vmalloc: export __vmalloc_node_range for CONFIG_TEST_VMALLOC_MODULEmm/vmalloc.c+9 -00 replies
2/3vmalloc: add test driver to analyse vmalloc allocatorlib/Kconfig.debug lib/Makefile lib/test_vmalloc.c+561 -00 replies
3/3selftests/vm: add script helper for CONFIG_TEST_VMALLOC_MODULEtools/testing/selftests/vm/run_vmtests tools/testing/selftests/vm/test_vmalloc.sh+192 -02 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchShuah Khan
1/3
2/3
3/3R-b

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

Read the v4 thread

Cover letter [RFC PATCH v4 0/3] test driver to analyse vmalloc allocator

Hello.

This is v4. I think it is ready to go with, unless there are extra requests or comments.

Changes in v4:
- Since the test can take time, switch to wait_for_completion_timeout() with HZ sleep interval to prevent triggering of the trace about hung task;
- Fix clean apply for v4.20 kernel.

Changes in v3:
- Export __vmalloc_node_range() with _GPL-only prefix;
- Add skip cases if the test can not be executed in current environment. That is kselftest framework requirement.

Changes in v2:
- Code cleanup to make it more simple;
- Now __vmalloc_node_range() is exported if CONFIG_TEST_VMALLOC_MODULE=m
- Integrate vmalloc test suite into tools/testing/selftests/vm

I think it is ready to go with, unless there are more requests or comments.

Thank you in advance.

Uladzislau Rezki (Sony) (3):
vmalloc: export __vmalloc_node_range for CONFIG_TEST_VMALLOC_MODULE
vmalloc: add test driver to analyse vmalloc allocator selftests/vm: add script helper for CONFIG_TEST_VMALLOC_MODULE

 lib/Kconfig.debug                          |  12 +
 lib/Makefile                               |   1 +
 lib/test_vmalloc.c                         | 548 +++++++++++++++++++++++++++++
 mm/vmalloc.c                               |   9 +
 tools/testing/selftests/vm/run_vmtests     |  16 +
 tools/testing/selftests/vm/test_vmalloc.sh | 176 +++++++++
 6 files changed, 762 insertions(+)
 create mode 100644 lib/test_vmalloc.c
 create mode 100755 tools/testing/selftests/vm/test_vmalloc.sh
Signature · 1 line
2.11.0