Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-28 09:37:06
Last Modify:2022-05-22 13:40:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sched_show_task

Proto:void sched_show_task(struct task_struct *p)

Type:void

Parameter:

TypeParameterName
struct task_struct *p
5936  free = 0
5939  If Not try_get_task_stack(p) Then Return
5942  printk(formational "%-15.15s %c", * executable name, excluding path. * - normally initialized setup_new_exec() * - access it with [gs]et_task_comm() * - lock it with task_lock(), task_state_to_char(p))
5944  If run state == Used in tsk->state: Then 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  If 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. Then ppid = task_pid_nr( fetch RCU-protected pointer for dereferencing( Real parent process: ))
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) Per task flags (PF_*), defined further below: )
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)
Caller
NameDescribe
show_state_filter
dump_cpu_task
try_to_freeze_tasks
rcu_torture_stats_printPrint torture statistics
check_hung_task