Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_sched_wakeup.c Create Date:2022-07-28 12:10:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:start_wakeup_tracer

Proto:static void start_wakeup_tracer(struct trace_array *tr)

Type:void

Parameter:

TypeParameterName
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  If ret Then
610  pr_info("wakeup trace: Couldn't activate tracepoint probe to kernel_sched_wakeup\n")
612  Return
615  ret = Tracepoint for waking up a new task:
616  If ret Then
617  pr_info("wakeup trace: Couldn't activate tracepoint probe to kernel_sched_wakeup_new\n")
619  Go to fail_deprobe
622  ret = Tracepoint for task switches, performed by the scheduler:
623  If ret Then
624  pr_info("sched trace: Couldn't activate tracepoint probe to kernel_sched_switch\n")
626  Go to fail_deprobe_wake_new
629  ret = Tracepoint for a task being migrated:
630  If ret Then
631  pr_info("wakeup trace: Couldn't activate tracepoint probe to kernel_sched_migrate_task\n")
633  Go to fail_deprobe_sched_switch
636  wakeup_reset(tr)
645  smp_wmb()
647  If start_func_tracer(tr, is_graph(tr)) Then 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  Return
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.
Caller
NameDescribe
__wakeup_tracer_init