函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:uretprobe_dispatcher

函数原型:static int uretprobe_dispatcher(struct uprobe_consumer *con, unsigned long func, struct pt_regs *regs)

返回类型:int

参数:

类型参数名称
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  如果WARN_ON_ONCE(!uprobe_cpu_buffer)则返回: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  如果trace_probe_test_flag( & tp, Flags for trace_probe )则uretprobe_trace_func(tu, func, regs, ucb, dsize)
1523  uprobe_buffer_put(ucb)
1524  返回:0