函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:trace_inject_entry

函数原型:static int trace_inject_entry(struct trace_event_file *file, void *rec, int len)

返回类型:int

参数:

类型参数名称
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  如果entry
26  内存复制(entry, rec, len)
27  written等于len
28  trace_event_buffer_commit( & fbuffer)
30  标记rcu锁结束
32  返回:written
调用者
名称描述
event_inject_write