函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_hist.c Create Date:2022-07-27 13:42:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:create_hist_data

函数原型:static struct hist_trigger_data *create_hist_data(unsigned int map_bits, struct hist_trigger_attrs *attrs, struct trace_event_file *file, bool remove)

返回类型:struct hist_trigger_data

参数:

类型参数名称
unsigned intmap_bits
struct hist_trigger_attrs *attrs
struct trace_event_file *file
boolremove
5194  const struct tracing_map_ops * map_ops = NULL
5196  ret等于0
5198  hist_data等于分配内存并置零
5199  如果非hist_data则返回:错误号
5202  attrs等于attrs
5203  remove等于remove
5204  event_file等于file
5206  ret等于parse_actions(hist_data)
5207  如果ret则转到:free
5210  ret等于create_hist_fields(hist_data, file)
5211  如果ret则转到:free
5214  ret等于create_sort_keys(hist_data)
5215  如果ret则转到:free
5218  map_ops等于hist_trigger_elt_data_ops
5220  map等于racing_map_create - Create a lock-free map and element pool*@map_bits: The size of the map (2 ** map_bits)*@key_size: The size of the key for the map in bytes*@ops: Optional client-defined tracing_map_ops instance*@private_data: Client data associated
5222  如果是错误
5223  ret等于错误
5224  map = NULL
5225  转到:free
5228  ret等于create_tracing_map_fields(hist_data)
5229  如果ret则转到:free
5231  out :
5232  返回:hist_data
5233  free :
5234  attrs = NULL
5236  destroy_hist_data(hist_data)
5238  hist_data等于错误号
5240  转到:out
调用者
名称描述
event_hist_trigger_func