函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:uprobe_event_define_fields

函数原型:static int uprobe_event_define_fields(struct trace_event_call *event_call)

返回类型:int

参数:

类型参数名称
struct trace_event_call *event_call
1168  tu等于trace_uprobe_primary_from_call(event_call)
1169  如果此条件成立可能性小(为编译器优化)(!tu)则返回:负ENODEV
1172  如果is_ret_probe(tu)则
1173  DEFINE_FIELD(unsignedlong, vaddr[0], FIELD_STRING_FUNC, 0)
1174  DEFINE_FIELD(unsignedlong, vaddr[1], FIELD_STRING_RETIP, 0)
1175  size等于SIZEOF_TRACE_ENTRY(true)
1176  否则
1177  DEFINE_FIELD(unsignedlong, vaddr[0], Reserved field names , 0)
1178  size等于SIZEOF_TRACE_ENTRY(false)
1181  返回:traceprobe_define_arg_fields(event_call, size, & tp)