函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tracing_sched_switch_trace

函数原型:static void tracing_sched_switch_trace(struct trace_array *tr, struct task_struct *prev, struct task_struct *next, unsigned long flags, int pc)

返回类型:void

参数:

类型参数名称
struct trace_array *tr
struct task_struct *prev
struct task_struct *next
unsigned longflags
intpc
380  call等于event_context_switch
381  buffer等于buffer
385  event等于trace_buffer_lock_reserve(buffer, TRACE_CTX, entry的长度, flags, pc)
387  如果非event则返回
389  entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from
390  prev_pid等于进程ID
391  prev_prio等于prio
392  prev_state等于task_state_index(prev)
393  next_pid等于进程ID
394  next_prio等于prio
395  next_state等于task_state_index(next)
396  next_cpu等于task_cpu(next)
398  如果非call_filter_check_discard(call, entry, buffer, event)则trace_buffer_unlock_commit(tr, buffer, event, flags, pc)
调用者
名称描述
probe_wakeup_sched_switch