函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:resolve_var_refs

函数原型:static bool resolve_var_refs(struct hist_trigger_data *hist_data, void *key, u64 *var_ref_vals, bool self)

返回类型:bool

参数:

类型参数名称
struct hist_trigger_data *hist_data
void *key
u64 *var_ref_vals
boolself
1925  bool resolved = true
1926  var_val等于0
1928 i小于n_var_refs循环
1929  hist_field等于var_refs[i]
1930  var_idx等于idx
1931  var_data等于hist_data
1933  如果(var_data == NULL)则
1934  resolved = false
1935  退出
1938  如果selfvar_data不等于hist_data或非selfvar_data恒等于hist_data则继续下一循环
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  如果非var_elt
1944  resolved = false
1945  退出
1949  resolved = false
1950  退出
1953  如果self或非read_oncevar_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  否则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  返回:resolved
调用者
名称描述
event_hist_trigger