Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_hist.c Create Date:2022-07-28 12:32:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:create_tracing_map_fields

Proto:static int create_tracing_map_fields(struct hist_trigger_data *hist_data)

Type:int

Parameter:

TypeParameterName
struct hist_trigger_data *hist_data
5145  map = map
5148  idx = 0
5151  hist_field = fields[i]
5152  If flags & HIST_FIELD_FL_KEY Then
5155  field = field
5157  If flags & HIST_FIELD_FL_STACKTRACE Then cmp_fn = tracing_map_cmp_none
5159  Else if Not field Then 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);
5162  Else if is_string_field(field) Then cmp_fn = tracing_map_cmp_string
5164  Else 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  Else if Not (flags & HIST_FIELD_FL_VAR) Then 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  If idx < 0 Then Return idx
5176  If flags & HIST_FIELD_FL_VAR Then
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  If idx < 0 Then Return idx
5180  idx = idx
5181  hist_data = hist_data
5185  Return 0
Caller
NameDescribe
create_hist_data