Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Shuffle tasks across CPUs, with the intent of allowing each CPU in the* system to become idle at a time and cut off its timer ticks. This is meant* to test the support for such tickless idle CPU in RCU.

Proto:static int torture_shuffle(void *arg)

Type:int

Parameter:

TypeParameterName
void *arg
409  VERBOSE_TOROUT_STRING("torture_shuffle task started")
410  Do
411  We can use __set_current_state() here because schedule_timeout() calls* schedule() unconditionally.
412  Shuffle tasks such that we allow shuffle_idle_cpu to become idle.* A special case is when shuffle_idle_cpu = -1, in which case we allow* the tasks to run on all CPUs.
413  Absorb kthreads into a kernel function that won't return, so that* they won't ever access module text or data again.
414  When Not Is it time for the current torture test to stop? cycle
415  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
416  Return 0