Function report |
Source Code:kernel\rcu\rcutorture.c |
Create Date:2022-07-28 10:22:04 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:CPU-stall kthread. It waits as specified by stall_cpu_holdoff, then* induces a CPU stall for the time specified by stall_cpu.
Proto:static int rcu_torture_stall(void *args)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | args |
1598 | VERBOSE_TOROUT_STRING("rcu_torture_stall task started") |
1599 | If stall_cpu_holdoff > 0 Then |
1600 | VERBOSE_TOROUT_STRING("rcu_torture_stall begin holdoff") |
1602 | VERBOSE_TOROUT_STRING("rcu_torture_stall end holdoff") |
1605 | stop_at = me64_t base interfaces + stall_cpu |
1608 | If stall_cpu_irqsoff Then local_irq_disable() |
1612 | pr_alert("rcu_torture_stall start on CPU %d.\n", smp_processor_id()) |
1614 | When ULONG_CMP_LT((unsignedlong)me64_t base interfaces, stop_at) cycle |
1616 | Continue |
1617 | If stall_cpu_irqsoff Then The local_irq_*() APIs are equal to the raw_local_irq*()* if !TRACE_IRQFLAGS.() |
1619 | Else preempt_enable() |
1622 | pr_alert("rcu_torture_stall end.\n") |
1626 | schedule_timeout_interruptible(10 * HZ) |
1627 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |