aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorScott Mayhew <[email protected]>2024-03-21 10:32:00 -0400
committerShuah Khan <[email protected]>2024-05-06 14:22:02 -0600
commit5496b9b77d7420652202b73cf036e69760be5deb (patch)
tree6f448fc462dfea34af39ef98d0e7cd7e255d0398 /tools/perf/util/scripting-engines/trace-event-python.c
parenta96a39457705018ad1aac79e7a8453ee52b512ba (diff)
kunit: bail out early in __kunit_test_suites_init() if there are no suites to test
Commit c72a870926c2 added a mutex to prevent kunit tests from running concurrently. Unfortunately that mutex gets locked during module load regardless of whether the module actually has any kunit tests. This causes a problem for kunit tests that might need to load other kernel modules (e.g. gss_krb5_test loading the camellia module). So check to see if there are actually any tests to run before locking the kunit_run_lock mutex. Fixes: c72a870926c2 ("kunit: add ability to run tests after boot using debugfs") Reported-by: Nico Pache <[email protected]> Signed-off-by: Scott Mayhew <[email protected]> Reviewed-by: Rae Moar <[email protected]> Reviewed-by: David Gow <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions