Function report |
Source Code:kernel\trace\tracing_map.c |
Create Date:2022-07-28 12:07:50 |
Last Modify:2020-03-17 19:44:05 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto: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)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If n_entries == 0 Then |
1094 | If n_entries == 1 Then |
1095 | sort_entries = entries |
1096 | Return 1 |
1099 | detect_dups(entries, n_entries, key_size) |
1101 | If is_key(map, field_idx) Then cmp_entries_fn = cmp_entries_key |
1103 | Else cmp_entries_fn = cmp_entries_sum |
1106 | set_sort_key(map, & sort_keys[0]) |
1108 | sort(entries, n_entries, size of * , (int( * )(constvoid * , constvoid * ))cmp_entries_fn, NULL) |
1111 | If n_sort_keys > 1 Then sort_secondary(map, (conststructtracing_map_sort_entry * * )entries, n_entries, & sort_keys[0], & sort_keys[1]) |
1118 | sort_entries = entries |
1120 | Return n_entries |
1121 | free : |
1124 | Return ret |
Name | Describe |
---|---|
print_entries |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |