Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\tracing_map.c Create Date:2022-07-28 12:07:09
Last Modify:2020-03-17 19:44:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tracing_map_add_field

Proto:static int tracing_map_add_field(struct tracing_map *map, tracing_map_cmp_fn_t cmp_fn)

Type:int

Parameter:

TypeParameterName
struct tracing_map *map
tracing_map_cmp_fn_tcmp_fn
204  ret = -EINVAL
206  If n_fields < TRACING_MAP_FIELDS_MAX Then
207  ret = n_fields
208  cmp_fn = cmp_fn
211  Return ret
Caller
NameDescribe
tracing_map_add_sum_fieldracing_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
tracing_map_add_key_fieldracing_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