Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kthread function to drive and coordinate RCU barrier testing.

Proto:static int rcu_torture_barrier(void *arg)

Type:int

Parameter:

TypeParameterName
void *arg
2067  VERBOSE_TOROUT_STRING("rcu_torture_barrier task starting")
2068  Do
2069  atomic_set( & Barrier callbacks invoked. , 0)
2070  atomic_set( & Barrier callbacks registered. , n_barrier_cbs)
2072  smp_store_release( & Test phase. , !Test phase. )
2073  When i < n_barrier_cbs cycle wake_up( & Coordinate barrier testing. [i])
2075  wait_event - sleep until a condition gets true*@wq_head: the waitqueue to wait on*@condition: a C expression for the event to wait for* The process is put to sleep (TASK_UNINTERRUPTIBLE) until the*@condition evaluates to true(barrier_wq, atomic_read( & Barrier callbacks registered. ) == 0 || Is it time for the current torture test to stop?)
2078  If Is it time for the current torture test to stop? Then Break
2080  n_barrier_attempts++
2081  cb_barrier()
2084  pr_err("barrier_cbs_invoked = %d, n_barrier_cbs = %d\n", atomic_read( & Barrier callbacks invoked. ), n_barrier_cbs)
2087  WARN_ON_ONCE(1)
2088  Else
2091  schedule_timeout_interruptible(HZ / 10)
2092  When Not Is it time for the current torture test to stop? cycle
2093  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
2094  Return 0