函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:RCU perf reader kthread. Repeatedly does empty RCU read-side* critical section, minimizing update-side interference.

函数原型:static int rcu_perf_reader(void *arg)

返回类型:int

参数:

类型参数名称
void *arg
317  me等于arg
319  VERBOSE_PERFOUT_STRING("rcu_perf_reader task started")
320  set_cpus_allowed_ptr(当前进程, cpumask_of - the cpumask containing just a given cpu*@cpu: the cpu (<= nr_cpu_ids)(me % nr_cpu_ids))
321  set_user_nice(当前进程, MAX_NICE)
322  atomic_inc( & n_rcu_perf_reader_started)
324  循环
325  local_irq_save(flags)
326  idx等于readlock()
327  readunlock(idx)
328  local_irq_restore(flags)
329  If performance tests complete, wait for shutdown to commence.
330  当非Is it time for the current torture test to stop?循环
331  Each kthread must wait for kthread_should_stop() before returning from* its top-level function, otherwise segfaults ensue
332  返回:0