函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\tracing_map.c Create Date:2022-07-27 13:13:46
Last Modify:2020-03-17 19:44:05 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:tracing_map_add_field

函数原型:static int tracing_map_add_field(struct tracing_map *map, tracing_map_cmp_fn_t cmp_fn)

返回类型:int

参数:

类型参数名称
struct tracing_map *map
tracing_map_cmp_fn_tcmp_fn
204  ret等于负EINVAL
206  如果n_fields小于TRACING_MAP_FIELDS_MAX
207  ret等于n_fields
208  cmp_fn等于cmp_fn
211  返回:ret
调用者
名称描述
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