函数逻辑报告 |
Source Code:kernel\trace\tracing_map.c |
Create Date:2022-07-27 13:14:24 |
Last Modify:2020-03-17 19:44:05 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:sort_secondary
函数原型:static void sort_secondary(struct tracing_map *map, const struct tracing_map_sort_entry **entries, unsigned int n_entries, struct tracing_map_sort_key *primary_key, struct tracing_map_sort_key *secondary_key)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tracing_map * | map | |
const struct tracing_map_sort_entry ** | entries | |
unsigned int | n_entries | |
struct tracing_map_sort_key * | primary_key | |
struct tracing_map_sort_key * | secondary_key |
992 | int( * primary_fn)(const struct tracing_map_sort_entry * * , const struct tracing_map_sort_entry * * ) |
994 | int( * secondary_fn)(const struct tracing_map_sort_entry * * , const struct tracing_map_sort_entry * * ) |
998 | 如果is_key(map, field_idx)则primary_fn等于cmp_entries_key |
1000 | 否则primary_fn等于cmp_entries_sum |
1003 | 如果is_key(map, field_idx)则secondary_fn等于cmp_entries_key |
1005 | 否则secondary_fn等于cmp_entries_sum |
1012 | 如果primary_fn(a, b)恒等于0则 |
1018 | 如果n_sub小于2则 |
1024 | set_sort_key(map, secondary_key) |
1025 | sort( & entries[start], n_sub, *的长度, (int( * )(constvoid * , constvoid * ))secondary_fn, NULL) |
1028 | set_sort_key(map, primary_key) |
1031 | n_sub等于1 |
名称 | 描述 |
---|---|
tracing_map_sort_entries | 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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |