函数逻辑报告 |
Source Code:kernel\trace\tracing_map.c |
Create Date:2022-07-27 13:14:28 |
| Last Modify:2020-03-17 19:44:05 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:racing_map_sort_entries - Sort the current set of tracing_map_elts in a map*@map: The tracing_map*@sort_key: The sort key to use for sorting*@sort_entries: outval: pointer to allocated and sorted array of entries* tracing_map_sort_entries() sorts the
函数原型:int tracing_map_sort_entries(struct tracing_map *map, struct tracing_map_sort_key *sort_keys, unsigned int n_sort_keys, struct tracing_map_sort_entry ***sort_entries)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct tracing_map * | map | |
| struct tracing_map_sort_key * | sort_keys | |
| unsigned int | n_sort_keys | |
| struct tracing_map_sort_entry *** | sort_entries |
| 1064 | int( * cmp_entries_fn)(const struct tracing_map_sort_entry * * , const struct tracing_map_sort_entry * * ) |
| 1076 | entry等于TRACING_MAP_ENTRY(map, i) |
| 1081 | entries[n_entries]等于create_sort_entry(key, val) |
| 1089 | 如果n_entries恒等于0则 |
| 1094 | 如果n_entries恒等于1则 |
| 1095 | sort_entries等于entries |
| 1096 | 返回:1 |
| 1099 | detect_dups(entries, n_entries, key_size) |
| 1101 | 如果is_key(map, field_idx)则cmp_entries_fn等于cmp_entries_key |
| 1103 | 否则cmp_entries_fn等于cmp_entries_sum |
| 1106 | set_sort_key(map, & sort_keys[0]) |
| 1108 | sort(entries, n_entries, *的长度, (int( * )(constvoid * , constvoid * ))cmp_entries_fn, NULL) |
| 1111 | 如果n_sort_keys大于1则sort_secondary(map, (conststructtracing_map_sort_entry * * )entries, n_entries, & sort_keys[0], & sort_keys[1]) |
| 1118 | sort_entries等于entries |
| 1120 | 返回:n_entries |
| 1121 | free : |
| 1124 | 返回:ret |
| 名称 | 描述 |
|---|---|
| print_entries |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |