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

Name:resolve_var_refs

Proto:static bool resolve_var_refs(struct hist_trigger_data *hist_data, void *key, u64 *var_ref_vals, bool self)

Type:bool

Parameter:

TypeParameterName
struct hist_trigger_data *hist_data
void *key
u64 *var_ref_vals
boolself
1925  bool resolved = true
1926  var_val = 0
1928  When i < n_var_refs cycle
1929  hist_field = var_refs[i]
1930  var_idx = idx
1931  var_data = hist_data
1933  If (var_data == NULL) Then
1934  resolved = false
1935  Break
1938  If self && var_data != hist_data || Not self && var_data == hist_data Then Continue
1942  var_elt = racing_map_lookup - Retrieve val from a tracing_map*@map: The tracing_map to perform the lookup on*@key: The key to look up* Looks up key in tracing_map and if found returns the matching* tracing_map_elt. This is a lock-free lookup; see
1943  If Not var_elt Then
1944  resolved = false
1945  Break
1949  resolved = false
1950  Break
1953  If self || Not read_once Then var_val = racing_map_read_var - Return the value of 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* Retrieve the value of the variable i associated with the specified
1955  Else var_val = racing_map_read_var_once - Return and reset 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* Retrieve the value of the variable i associated with the specified*
1958  var_ref_vals[i] = var_val
1961  Return resolved
Caller
NameDescribe
event_hist_trigger