Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:uretprobe_dispatcher

Proto:static int uretprobe_dispatcher(struct uprobe_consumer *con, unsigned long func, struct pt_regs *regs)

Type:int

Parameter:

TypeParameterName
struct uprobe_consumer *con
unsigned longfunc
struct pt_regs *regs
1500  tu = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(con, structtrace_uprobe, consumer)
1502  tu = tu
1503  bp_addr = func
1505  vaddr = (unsigned long) & udd
1507  If WARN_ON_ONCE(!uprobe_cpu_buffer) Then Return 0
1510  dsize = Sum up total data length for dynamic arraies (strings)
1511  esize = SIZEOF_TRACE_ENTRY(is_ret_probe(tu))
1513  ucb = uprobe_buffer_get()
1514  Store the value of each argument
1516  If trace_probe_test_flag( & tp, Flags for trace_probe ) Then uretprobe_trace_func(tu, func, regs, ucb, dsize)
1523  uprobe_buffer_put(ucb)
1524  Return 0