Function report |
Source Code:kernel\trace\trace_events_hist.c |
Create Date:2022-07-28 12:32:38 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:create_sort_keys
Proto:static int create_sort_keys(struct hist_trigger_data *hist_data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct hist_trigger_data * | hist_data |
4799 | fields_str = sort_key_str |
4801 | ret = 0 |
4804 | n_sort_keys = 1 |
4806 | If Not fields_str Then Go to out |
4809 | When i < TRACING_MAP_SORT_KEYS_MAX cycle |
4817 | If Not field_str Then Break |
4820 | If Not field_str Then |
4825 | If i == TRACING_MAP_SORT_KEYS_MAX - 1 && fields_str Then |
4831 | If Not field_name || Not field_name Then |
4836 | If strcmp(field_name, "hitcount") == 0 Then |
4837 | descending = is_descending(field_str) |
4838 | If descending < 0 Then |
4839 | ret = descending |
4840 | Break |
4842 | descending = descending |
4843 | Continue |
4849 | hist_field = fields[j] |
4850 | If flags & HIST_FIELD_FL_VAR Then Continue |
4855 | test_name = hist_field_name(hist_field, 0) |
4857 | If strcmp(field_name, test_name) == 0 Then |
4859 | descending = is_descending(field_str) |
4860 | If descending < 0 Then |
4861 | ret = descending |
4862 | Go to out |
4864 | descending = descending |
4865 | Break |
4874 | n_sort_keys = i |
4875 | out : |
4876 | Return ret |
Name | Describe |
---|---|
create_hist_data |
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 |