函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hist_trigger_elt_update

函数原型:static void hist_trigger_elt_update(struct hist_trigger_data *hist_data, struct tracing_map_elt *elt, void *rec, struct ring_buffer_event *rbe, u64 *var_ref_vals)

返回类型:void

参数:

类型参数名称
struct hist_trigger_data *hist_data
struct tracing_map_elt *elt
void *rec
struct ring_buffer_event *rbe
u64 *var_ref_vals
5253  elt_data等于private_data
5254  var_ref_vals等于var_ref_vals
5257  hist_field等于fields[i]
5258  hist_val等于fn(hist_field, elt, rbe, rec)
5259  如果flags按位与HIST_FIELD_FL_VAR
5260  var_idx等于idx
5261  racing_map_set_var - Assign a tracing_map_elt's variable field*@elt: The tracing_map_elt*@i: The index of the given variable associated with the tracing_map_elt*@n: The value to assign* Assign n to variable i associated with the specified tracing_map_elt
5262  继续下一循环
5264  racing_map_update_sum - Add a value to a tracing_map_elt's sum field*@elt: The tracing_map_elt*@i: The index of the given sum associated with the tracing_map_elt*@n: The value to add to the sum* Add n to sum i associated with the specified tracing_map_elt
5268  hist_field等于fields[i]
5269  如果flags按位与HIST_FIELD_FL_VAR
5270  hist_val等于fn(hist_field, elt, rbe, rec)
5271  var_idx等于idx
5272  racing_map_set_var - Assign a tracing_map_elt's variable field*@elt: The tracing_map_elt*@i: The index of the given variable associated with the tracing_map_elt*@n: The value to assign* Assign n to variable i associated with the specified tracing_map_elt
5276  update_field_vars(hist_data, elt, rbe, rec)
调用者
名称描述
event_hist_trigger