Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Store the value of each argument

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

Type:void

Parameter:

TypeParameterName
void *data
struct trace_probe *tp
struct pt_regs *regs
intheader_size
intmaxlen
195  base = data - header_size
196  dyndata = data + trace entry size
200  When i < nr_args cycle
201  arg = args + i
202  dl = data + Offset from argument entry
204  If Value for the false possibility is greater at compile time( Dynamic array (string) is used ) Then 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  Else
210  dyndata += ret
211  maxlen -= ret
Caller
NameDescribe
__kprobe_trace_funcKprobe handler
__kretprobe_trace_funcKretprobe handler
uprobe_dispatcher
uretprobe_dispatcher