函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:37:39
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:sched_show_task

函数原型:void sched_show_task(struct task_struct *p)

返回类型:void

参数:

类型参数名称
struct task_struct *p
5936  free等于0
5939  如果非try_get_task_stack(p)则返回
5942  printk(formational "%-15.15s %c", 是否使用FPU, task_state_to_char(p))
5944  如果任务状态恒等于就绪态printk(Annotation for a "continued" line of log printout (only done after a* line that had no enclosing \n). Only to be used by core/arch code* during early bootup (a continued line is not SMP-safe otherwise)." running task ")
5949  ppid等于0
5950  _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
5951  如果pid_alive - check that a task structure is not stale*@p: Task structure to be checked.* Test if a process is not yet dead (at most zombie state)* If pid_alive fails, then pointers within the task structure* can be stale and must not be dereferenced.ppid等于task_pid_nr(cu_dereference() - fetch RCU-protected pointer for dereferencing*@p: The pointer to read, prior to dereferencing* This is a simple wrapper around rcu_dereference_check().(真正的父进程))
5953  _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()
5954  printk(Annotation for a "continued" line of log printout (only done after a* line that had no enclosing \n). Only to be used by core/arch code* during early bootup (a continued line is not SMP-safe otherwise)."%5lu %5d %6d 0x%08lx\n", free, task_pid_nr(p), ppid, (unsignedlong)任务标志)
5958  print_worker_info - print out worker information and description*@log_lvl: the log level to use when printing*@task: target task* If @task is a worker and currently executing a work item, print out the* name of the workqueue being serviced and worker
5959  show_stack(p, NULL)
5960  put_task_stack(p)
调用者
名称描述
show_state_filter
dump_cpu_task
try_to_freeze_tasks
rcu_torture_stats_printPrint torture statistics
check_hung_task
rcu_check_gp_kthread_starvationComplain about starvation of grace-period kthread.
print_other_cpu_stall