函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__update_field_vars

函数原型:static inline void __update_field_vars(struct tracing_map_elt *elt, struct ring_buffer_event *rbe, void *rec, struct field_var **field_vars, unsigned int n_field_vars, unsigned int field_var_str_start)

返回类型:void

参数:

类型参数名称
struct tracing_map_elt *elt
struct ring_buffer_event *rbe
void *rec
struct field_var **field_vars
unsigned intn_field_vars
unsigned intfield_var_str_start
3439  elt_data等于private_data
3443 i小于n_field_vars循环
3444  field_var等于field_vars[i]
3445  var等于var
3446  val等于val
3448  var_val等于fn(val, elt, rbe, rec)
3449  var_idx等于idx
3451  如果flags按位与HIST_FIELD_FL_STRING
3452  str等于field_var_str[j++]
3453  val_str等于var_val
3456  var_val等于str
3458  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
调用者
名称描述
update_field_vars
save_track_data_vars