函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hist_field_var_ref

函数原型:static u64 hist_field_var_ref(struct hist_field *hist_field, struct tracing_map_elt *elt, struct ring_buffer_event *rbe, void *event)

返回类型:u64

参数:

类型参数名称
struct hist_field *hist_field
struct tracing_map_elt *elt
struct ring_buffer_event *rbe
void *event
1907  var_val等于0
1909  如果WARN_ON_ONCE(!elt)则返回:var_val
1912  elt_data等于private_data
1913  var_val等于var_ref_vals[* 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]
1915  返回:var_val