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:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:uprobe_dispatcher

Proto:static int uprobe_dispatcher(struct uprobe_consumer *con, struct pt_regs *regs)

Type:int

Parameter:

TypeParameterName
struct uprobe_consumer *con
struct pt_regs *regs
1461  ret = 0
1464  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)
1465  nhit++
1467  tu = tu
1468  bp_addr = instruction_pointer(regs)
1470  vaddr = (unsigned long) & udd
1472  If WARN_ON_ONCE(!uprobe_cpu_buffer) Then Return 0
1475  dsize = Sum up total data length for dynamic arraies (strings)
1476  esize = SIZEOF_TRACE_ENTRY(is_ret_probe(tu))
1478  ucb = uprobe_buffer_get()
1479  Store the value of each argument
1481  If trace_probe_test_flag( & tp, Flags for trace_probe ) Then ret |= probe handler
1488  uprobe_buffer_put(ucb)
1489  Return ret