Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_synth_tracepoint

Proto:static struct tracepoint *alloc_synth_tracepoint(char *name)

Type:struct tracepoint

Parameter:

TypeParameterName
char *name
1104  tp = 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).
1105  If Not tp Then Return ERR_PTR( - ENOMEM)
1108  Tracepoint name = kstrdup(name, GFP_KERNEL)
1109  If Not Tracepoint name Then
1110  kfree(tp)
1111  Return ERR_PTR( - ENOMEM)
1114  Return tp
Caller
NameDescribe
register_synth_event