函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:create_tracing_map_fields

函数原型:static int create_tracing_map_fields(struct hist_trigger_data *hist_data)

返回类型:int

参数:

类型参数名称
struct hist_trigger_data *hist_data
5145  map等于map
5148  idx等于0
5151  hist_field等于fields[i]
5152  如果flags按位与HIST_FIELD_FL_KEY
5155  field等于field
5157  如果flags按位与HIST_FIELD_FL_STACKTRACEcmp_fn等于tracing_map_cmp_none
5159  否则如果非fieldcmp_fn等于DEFINE_TRACING_MAP_CMP_FN(s64);DEFINE_TRACING_MAP_CMP_FN(u64);DEFINE_TRACING_MAP_CMP_FN(s32);DEFINE_TRACING_MAP_CMP_FN(u32);DEFINE_TRACING_MAP_CMP_FN(s16);DEFINE_TRACING_MAP_CMP_FN(u16);DEFINE_TRACING_MAP_CMP_FN(s8);DEFINE_TRACING_MAP_CMP_FN(u8);
5162  否则如果is_string_field(field)则cmp_fn等于tracing_map_cmp_string
5164  否则cmp_fn等于DEFINE_TRACING_MAP_CMP_FN(s64);DEFINE_TRACING_MAP_CMP_FN(u64);DEFINE_TRACING_MAP_CMP_FN(s32);DEFINE_TRACING_MAP_CMP_FN(u32);DEFINE_TRACING_MAP_CMP_FN(s16);DEFINE_TRACING_MAP_CMP_FN(u16);DEFINE_TRACING_MAP_CMP_FN(s8);DEFINE_TRACING_MAP_CMP_FN(u8);
5167  idx等于racing_map_add_key_field - Add a field describing a tracing_map key*@map: The tracing_map*@offset: The offset within the key*@cmp_fn: The comparison function that will be used to sort on the key* Let the map know there is a key and that if it's used as a
5170  否则如果非flags按位与HIST_FIELD_FL_VAR的值则idx等于racing_map_add_sum_field - Add a field describing a tracing_map sum*@map: The tracing_map* Add a sum field to the key and return the index identifying it in* the map and associated tracing_map_elts
5173  如果idx小于0则返回:idx
5176  如果flags按位与HIST_FIELD_FL_VAR
5177  idx等于racing_map_add_var - Add a field describing a tracing_map var*@map: The tracing_map* Add a var to the map and return the index identifying it in the map* and associated tracing_map_elts
5178  如果idx小于0则返回:idx
5180  idx等于idx
5181  hist_data等于hist_data
5185  返回:0
调用者
名称描述
create_hist_data