函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_vmalloc.c Create Date:2022-07-27 07:27:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_concurrent_test

函数原型:static void do_concurrent_test(void)

返回类型:void

参数:

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  如果非是错误atomic_inc( & test_n_undone)
490  否则打印错误信息("Failed to start kthread for %d CPU\n", cpu)
497  lease a write lock
505  循环
506  ret等于wait_for_completion_timeout( & Completion tracking for worker threads., HZ)
507  当非ret循环
510  t等于per_cpu_test_driver[cpu]
513  如果非是错误结束线程的运行
516 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(test_case_array)循环
517  如果非run_test_mask按位与1左移i位的值右移i位的值则继续下一循环
520  打印信息("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  打印信息("All test took CPU%d=%lu cycles\n", cpu, stop - start)
调用者
名称描述
vmalloc_test_init