Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__trace_define_field

Proto: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)

Type:int

Parameter:

TypeParameterName
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  If Not field Then Return -ENOMEM
115  name = name
116  type = type
118  If filter_type == FILTER_OTHER Then filter_type = filter_assign_type(type)
120  Else filter_type = filter_type
123  offset = offset
124  size = size
125  is_signed = is_signed
127  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
129  Return 0
Caller
NameDescribe
trace_define_field