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:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tracing_sched_switch_trace

Proto:static void tracing_sched_switch_trace(struct trace_array *tr, struct task_struct *prev, struct task_struct *next, unsigned long flags, int pc)

Type:void

Parameter:

TypeParameterName
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, size of entry , flags, pc)
387  If Not event Then Return
389  entry = g_buffer_event_data - return the data of the event*@event: the event to get the data from
390  prev_pid = process id
391  prev_prio = prio
392  prev_state = task_state_index(prev)
393  next_pid = process id
394  next_prio = prio
395  next_state = task_state_index(next)
396  next_cpu = task_cpu(next)
398  If Not call_filter_check_discard(call, entry, buffer, event) Then trace_buffer_unlock_commit(tr, buffer, event, flags, pc)
Caller
NameDescribe
probe_wakeup_sched_switch