aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/kunit/kunit_parser.py
diff options
context:
space:
mode:
authorDavid Gow <[email protected]>2022-11-25 16:43:06 +0800
committerShuah Khan <[email protected]>2022-12-12 14:13:47 -0700
commit909c6475d568826be377893cf5abb7cde5877230 (patch)
tree31df9e91758274a18a70b5ecff90a4e511f1863c /tools/testing/kunit/kunit_parser.py
parent91e93592219f74c4d5cd4f27006d726ac86ae15d (diff)
mm: slub: test: Use the kunit_get_current_test() function
Use the newly-added function kunit_get_current_test() instead of accessing current->kunit_test directly. This function uses a static key to return more quickly when KUnit is enabled, but no tests are actively running. There should therefore be a negligible performance impact to enabling the slub KUnit tests. Other than the performance improvement, this should be a no-op. Cc: Oliver Glitta <[email protected]> Cc: Hyeonggon Yoo <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: David Rientjes <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: David Gow <[email protected]> Acked-by: Vlastimil Babka <[email protected]> Acked-by: Hyeonggon Yoo <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/testing/kunit/kunit_parser.py')
0 files changed, 0 insertions, 0 deletions