Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Carry out grace-period forward-progress testing.

Proto:static int rcu_torture_fwd_prog(void *args)

Type:int

Parameter:

TypeParameterName
void *args
1970  tested = 0
1971  tested_tries = 0
1973  VERBOSE_TOROUT_STRING("rcu_torture_fwd_progress task started")
1974  rcu_bind_current_to_nocb()
1975  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_SMP) || Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_RCU_BOOST) Then set_user_nice(current process, MAX_NICE)
1977  Do
1978  schedule_timeout_interruptible(fwd_progress_holdoff * HZ)
1979  WRITE_ONCE(rcu_fwd_emergency_stop, false)
1980  register_oom_notifier( & rcutorture_oom_nb)
1981  Carry out need_resched()/cond_resched() forward-progress testing.
1982  Carry out call_rcu() forward-progress testing.
1983  unregister_oom_notifier( & rcutorture_oom_nb)
1986  Task stuttering, which forces load/no-load transitions.
1987  When Not Is it time for the current torture test to stop? cycle
1989  WARN_ON(!tested && tested_tries >= 5)
1990  pr_alert("%s: tested %d tested_tries %d\n", __func__, tested, tested_tries)
1991  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
1992  Return 0