Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Allocate new trace_uprobe and initialize it (including uprobes).

Proto:static struct trace_uprobe *alloc_trace_uprobe(const char *group, const char *event, int nargs, bool is_ret)

Type:struct trace_uprobe

Parameter:

TypeParameterName
const char *group
const char *event
intnargs
boolis_ret
343  tu = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
344  If Not tu Then Return ERR_PTR( - ENOMEM)
347  ret = trace_probe_init( & tp, event, group, true)
348  If ret < 0 Then Go to error
351  dyn_event_init( & devent, & trace_uprobe_ops)
352  handler = uprobe_dispatcher
353  If is_ret Then ret_handler = uretprobe_dispatcher
355  init_trace_uprobe_filter(filter)
356  Return tu
358  error :
359  kfree(tu)
361  Return ERR_PTR(ret)
Caller
NameDescribe
trace_uprobe_create