aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorAdam Sindelar <[email protected]>2022-06-27 18:39:12 +0200
committerakpm <[email protected]>2022-07-03 18:08:52 -0700
commit4f2930c6718afbb6c5904cda6f6781a70c52a042 (patch)
treee93f7d6e262c5d66aa2ba243e7431167ab4f54b6 /tools/perf/scripts/python/export-to-sqlite.py
parent1baec203b77cafa24610b5c9ae7a2aa380d74ef6 (diff)
selftests/vm: only run 128TBswitch with 5-level paging
The test va_128TBswitch.c expects to be able to pass mmap an address hint and length that cross the address 1<<47. On x86_64, this is not possible without 5-level page tables, so the test fails. The test is already only run on 64-bit powerpc and x86_64 archs, but this patch adds an additional check on x86_64 that skips the test if PG_TABLE_LEVELS < 5. There is precedent for checking /proc/config.gz in selftests, e.g. in selftests/firmware. Running the tests produces the desired output: sudo make -C tools/testing/selftests TARGETS=vm run_tests --------------------------- running ./va_128TBswitch.sh --------------------------- ./va_128TBswitch.sh: PG_TABLE_LEVELS=4, must be >= 5 to run this test [SKIP] ------------------------------- [[email protected]: restrict the check to x86_64] Link: https://lkml.kernel.org/r/[email protected] [[email protected]: fix formatting issues, rename "die" to "fail"] Link: https://lkml.kernel.org/r/[email protected] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Adam Sindelar <[email protected]> Cc: Adam Sindelar <[email protected]> Cc: David Vernet <[email protected]> Cc: Aneesh Kumar K.V <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions