函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Store the value of each argument

函数原型:static inline __attribute__((__always_inline__)) void store_trace_args(void *data, struct trace_probe *tp, struct pt_regs *regs, int header_size, int maxlen)

返回类型:void

参数:

类型参数名称
void *data
struct trace_probe *tp
struct pt_regs *regs
intheader_size
intmaxlen
195  base等于dataheader_size
196  dyndata等于data trace entry size
200 i小于nr_args循环
201  arg等于argsi
202  dl等于data Offset from argument entry
204  如果此条件成立可能性小(为编译器优化)( Dynamic array (string) is used )则dl等于data_loc: data location, compatible with u32 (maxlen, dyndata - base)
206  ret等于Note that we don't verify it, since the code does not come from user space
209  否则
210  dyndata加等于ret
211  maxlen减等于ret
调用者
名称描述
__kprobe_trace_funcKprobe handler
__kretprobe_trace_funcKretprobe handler
uprobe_dispatcher
uretprobe_dispatcher