Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_vmalloc.c Create Date:2022-07-28 06:30:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_concurrent_test

Proto:static void do_concurrent_test(void)

Type:void

Parameter:Nothing

474  init_test_configurtion()
479  lock for writing
482  t = per_cpu_test_driver[cpu]
484  cpu = cpu
485  task = kthread_run - create and wake a thread.*@threadfn: the function to run until signal_pending(current).*@data: data ptr for @threadfn.*@namefmt: printf-style name for the thread.* Description: Convenient wrapper for kthread_create() followed by(test_func, t, "vmalloc_test/%d", cpu)
487  If Not IS_ERR(task) Then atomic_inc( & test_n_undone)
490  Else pr_err("Failed to start kthread for %d CPU\n", cpu)
497  lease a write lock
505  Do
506  ret = wait_for_completion_timeout( & Completion tracking for worker threads., HZ)
507  When Not ret cycle
510  t = per_cpu_test_driver[cpu]
513  If Not IS_ERR(task) Then stop a thread
516  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(test_case_array) cycle
517  If Not ((run_test_mask & 1 << i ) >> i) Then Continue
520  pr_info("Summary: %s passed: %d failed: %d repeat: %d loops: %d avg: %llu usec\n", test_name, test_passed, test_failed, test_repeat_count, test_loop_count, time)
529  pr_info("All test took CPU%d=%lu cycles\n", cpu, stop - start)
Caller
NameDescribe
vmalloc_test_init