Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:rcu_torture_boost

Proto:static int rcu_torture_boost(void *arg)

Type:int

Parameter:

TypeParameterName
void *arg
803  struct rcu_boost_inflight rbi = {inflight = 0}
806  VERBOSE_TOROUT_STRING("rcu_torture_boost started")
809  sched_priority = 1
810  If sched_setscheduler - change the scheduling policy and/or RT priority of a thread.*@p: the task in question.*@policy: new policy.*@param: structure containing the new RT priority.* Return: 0 on success. An error code otherwise. < 0 Then
811  VERBOSE_TOROUT_STRING("rcu_torture_boost RT prio failed!")
812  n_rcu_torture_boost_rterror++
815  init_rcu_head_on_stack( & rcu)
817  Do
819  bool failed = false
830  If kthread_should_stop - should this kthread return now?* When someone calls kthread_stop() on your kthread, it will be woken* and this will return true. You should then return, and your return* value will be passed through to kthread_stop(). Then Go to checkwait
834  oldstarttime = jiffies of next boost test start.
843  endtime = oldstarttime + test_boost_duration * HZ
844  call_rcu_time = jiffies
847  If Not smp_load_acquire( & inflight) Then
867  If Not failed && smp_load_acquire( & inflight) Then rcu_torture_boost_failed(call_rcu_time, jiffies)
889  checkwait :
889  Task stuttering, which forces load/no-load transitions.
890  When Not Is it time for the current torture test to stop? cycle
893  When Not kthread_should_stop - should this kthread return now?* When someone calls kthread_stop() on your kthread, it will be woken* and this will return true. You should then return, and your return* value will be passed through to kthread_stop(). || smp_load_acquire( & inflight) cycle
894  Test auto-shutdown handling.
895  schedule_timeout_uninterruptible(1)
897  destroy_rcu_head_on_stack( & rcu)
898  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
899  Return 0