函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Carry out grace-period forward-progress testing.

函数原型:static int rcu_torture_fwd_prog(void *args)

返回类型:int

参数:

类型参数名称
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  如果非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_SMP)或非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_RCU_BOOST)则set_user_nice(当前进程, MAX_NICE)
1977  循环
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  当非Is it time for the current torture test to stop?循环
1989  WARN_ON(!tested && tested_tries >= 5)
1990  打印警报信息("%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  返回:0