Function report |
Source Code:kernel\trace\tracing_map.c |
Create Date:2022-07-28 12:07:46 |
Last Modify:2020-03-17 19:44:05 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sort_secondary
Proto: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)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
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 | If is_key(map, field_idx) Then primary_fn = cmp_entries_key |
1000 | Else primary_fn = cmp_entries_sum |
1003 | If is_key(map, field_idx) Then secondary_fn = cmp_entries_key |
1005 | Else secondary_fn = cmp_entries_sum |
1012 | If primary_fn(a, b) == 0 Then |
1018 | If n_sub < 2 Then |
1024 | set_sort_key(map, secondary_key) |
1025 | sort( & entries[start], n_sub, size of * , (int( * )(constvoid * , constvoid * ))secondary_fn, NULL) |
1028 | set_sort_key(map, primary_key) |
1031 | n_sub = 1 |
Name | Describe |
---|---|
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 |
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 |