函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:CPU-stall kthread. It waits as specified by stall_cpu_holdoff, then* induces a CPU stall for the time specified by stall_cpu.

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

返回类型:int

参数:

类型参数名称
void *args
1598  VERBOSE_TOROUT_STRING("rcu_torture_stall task started")
1599  如果stall_cpu_holdoff大于0则
1600  VERBOSE_TOROUT_STRING("rcu_torture_stall begin holdoff")
1601  schedule_timeout_interruptible(stall_cpu_holdoff * HZ)
1602  VERBOSE_TOROUT_STRING("rcu_torture_stall end holdoff")
1604  如果非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().
1605  stop_at等于me64_t base interfacesstall_cpu
1607  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
1608  如果stall_cpu_irqsoff禁止中断()
1610  否则禁止抢占()
1612  打印警报信息("rcu_torture_stall start on CPU %d.\n", 当前cpu ID())
1614 ULONG_CMP_LT((unsignedlong)me64_t base interfaces, stop_at)循环
1616  继续下一循环
1617  如果stall_cpu_irqsoff开中断()
1619  否则禁用抢占和中断()
1621  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
1622  打印警报信息("rcu_torture_stall end.\n")
1624  Test auto-shutdown handling.
1625  当非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().循环
1626  schedule_timeout_interruptible(10 * HZ)
1627  返回:0