函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reate_var_ref - Create a variable reference and attach it to trigger*@hist_data: The trigger that will be referencing the variable*@var_field: The VAR field to create a reference to*@system: The optional system string*@event_name: The optional event_name

函数原型:static struct hist_field *create_var_ref(struct hist_trigger_data *hist_data, struct hist_field *var_field, char *system, char *event_name)

返回类型:struct hist_field

参数:

类型参数名称
struct hist_trigger_data *hist_data
struct hist_field *var_field
char *system
char *event_name
2691  flags等于HIST_FIELD_FL_VAR_REF
2696 i小于n_var_refs循环
2697  ref_field等于var_refs[i]
2698  如果idx恒等于idxhist_data恒等于hist_data
2701  返回:ref_field
2705  ref_field等于create_hist_field(hist_data, NULL, flags, NULL)
2706  如果ref_field
2709  返回:NULL
2712  var_refs[n_var_refs]等于ref_field
2713  * When a histogram trigger is hit, if it has any references * to variables, the values of those variables are collected * into a var_ref_vals array by resolve_var_refs(). The * current value of each variable is read from the tracing_map * using the hist fi等于n_var_refs自加
2716  返回:ref_field
调用者
名称描述
parse_var_ref
track_data_create
trace_action_create