函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__trace_define_field

函数原型:static int __trace_define_field(struct list_head *head, const char *type, const char *name, int offset, int size, int is_signed, int filter_type)

返回类型:int

参数:

类型参数名称
struct list_head *head
const char *type
const char *name
intoffset
intsize
intis_signed
intfilter_type
111  field等于kmem_cache_alloc(field_cachep, GFP_TRACE)
112  如果非field则返回:负ENOMEM
115  name等于name
116  type等于type
118  如果filter_type恒等于FILTER_OTHERfilter_type等于filter_assign_type(type)
120  否则filter_type等于filter_type
123  offset等于offset
124  size等于size
125  is_signed等于is_signed
127  添加链表项
129  返回:0
调用者
名称描述
trace_define_field