函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:start_wakeup_tracer

函数原型:static void start_wakeup_tracer(struct trace_array *tr)

返回类型:void

参数:

类型参数名称
struct trace_array *tr
608  ret等于Tracepoint called when the task is actually woken; p->state == TASK_RUNNNG.* It it not always called from the waking context.
609  如果ret
610  打印信息("wakeup trace: Couldn't activate tracepoint probe to kernel_sched_wakeup\n")
612  返回
615  ret等于Tracepoint for waking up a new task:
616  如果ret
617  打印信息("wakeup trace: Couldn't activate tracepoint probe to kernel_sched_wakeup_new\n")
619  转到:fail_deprobe
622  ret等于Tracepoint for task switches, performed by the scheduler:
623  如果ret
624  打印信息("sched trace: Couldn't activate tracepoint probe to kernel_sched_switch\n")
626  转到:fail_deprobe_wake_new
629  ret等于Tracepoint for a task being migrated:
630  如果ret
631  打印信息("wakeup trace: Couldn't activate tracepoint probe to kernel_sched_migrate_task\n")
633  转到:fail_deprobe_sched_switch
636  wakeup_reset(tr)
645  smp_wmb()
647  如果start_func_tracer(tr, is_graph(tr))则printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
650  返回
651  fail_deprobe_sched_switch :
652  Tracepoint for task switches, performed by the scheduler:
653  fail_deprobe_wake_new :
654  Tracepoint for waking up a new task:
655  fail_deprobe :
656  Tracepoint called when the task is actually woken; p->state == TASK_RUNNNG.* It it not always called from the waking context.
调用者
名称描述
__wakeup_tracer_init