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

Name:save_hist_vars

Proto:static int save_hist_vars(struct hist_trigger_data *hist_data)

Type:int

Parameter:

TypeParameterName
struct hist_trigger_data *hist_data
1705  tr = tr
1708  var_data = find_hist_vars(hist_data)
1709  If var_data Then Return 0
1712  If tracing_check_open_get_tr(tr) Then Return -ENODEV
1715  var_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).
1716  If Not var_data Then
1717  race_array_put - Decrement the reference counter for this trace array.* NOTE: Use this when we no longer need the trace array returned by* trace_array_get_by_name(). This ensures the trace array can be later* destroyed.
1718  Return -ENOMEM
1721  hist_data = hist_data
1722  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1724  Return 0
Caller
NameDescribe
event_hist_trigger_func