Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:trace_inject_entry

Proto:static int trace_inject_entry(struct trace_event_file *file, void *rec, int len)

Type:int

Parameter:

TypeParameterName
struct trace_event_file *file
void *rec
intlen
20  written = 0
23  _read_lock_sched() - mark the beginning of a RCU-sched critical section* This is equivalent of rcu_read_lock(), but disables preemption.* Read-side critical sections can also be introduced by anything else
24  entry = trace_event_buffer_reserve( & fbuffer, file, len)
25  If entry Then
26  No 3D Now!(entry, rec, len)
27  written = len
28  trace_event_buffer_commit( & fbuffer)
30  _read_unlock_sched - marks the end of a RCU-classic critical section* See rcu_read_lock_sched for more information.
32  Return written
Caller
NameDescribe
event_inject_write