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

Name:hist_trigger_elt_data_alloc

Proto:static int hist_trigger_elt_data_alloc(struct tracing_map_elt *elt)

Type:int

Parameter:

TypeParameterName
struct tracing_map_elt *elt
2258  hist_data = private_data
2259  size = Task command name length:
2264  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).
2265  If Not elt_data Then Return -ENOMEM
2269  key_field = fields[i]
2271  If flags & HIST_FIELD_FL_EXECNAME Then
2272  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).
2273  If Not comm Then
2274  kfree(elt_data)
2275  Return -ENOMEM
2277  Break
2281  n_str = n_field_var_str + n_save_var_str
2283  size = must be multiple of sizeof(u64)
2285  When i < n_str cycle
2286  field_var_str[i] = 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).
2287  If Not field_var_str[i] Then
2289  Return -ENOMEM
2293  private_data = elt_data
2295  Return 0