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

Name:track_data_alloc

Proto:static struct track_data *track_data_alloc(unsigned int key_len, struct action_data *action_data, struct hist_trigger_data *hist_data)

Type:struct track_data

Parameter:

TypeParameterName
unsigned intkey_len
struct action_data *action_data
struct hist_trigger_data *hist_data
564  data = 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).
567  If Not data Then Return ERR_PTR( - ENOMEM)
570  key = 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).
571  If Not key Then
572  track_data_free(data)
573  Return ERR_PTR( - ENOMEM)
576  key_len = key_len
577  action_data = action_data
578  hist_data = hist_data
580  elt_data = 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).
581  If Not elt_data Then
582  track_data_free(data)
583  Return ERR_PTR( - ENOMEM)
585  private_data = elt_data
587  comm = 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).
588  If Not comm Then
589  track_data_free(data)
590  Return ERR_PTR( - ENOMEM)
593  Return data
Caller
NameDescribe
action_create