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

Name:hist_trigger_elt_update

Proto: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)

Type:void

Parameter:

TypeParameterName
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  If flags & HIST_FIELD_FL_VAR Then
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  Continue
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  If flags & HIST_FIELD_FL_VAR Then
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)
Caller
NameDescribe
event_hist_trigger