Function report |
Source Code:kernel\trace\trace_events_filter.c |
Create Date:2022-07-28 12:24:57 |
| Last Modify:2022-05-22 20:19:57 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:select_comparison_fn
Proto:static filter_pred_fn_t select_comparison_fn(enum filter_op_ids op, int field_size, int field_is_signed)
Type:filter_pred_fn_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| enum filter_op_ids | op | |
| int | field_size | |
| int | field_is_signed |
| 1098 | filter_pred_fn_t fn = NULL |
| 1099 | pred_func_index = -1 |
| 1104 | Break |
| 1105 | Default |
| 1106 | If WARN_ON_ONCE(op < pred functions are OP_LE, OP_LT, OP_GE, OP_GT, and OP_BAND* pred_funcs_##type below must match the order of them above.) Then Return NULL |
| 1108 | pred_func_index = op - pred functions are OP_LE, OP_LT, OP_GE, OP_GT, and OP_BAND* pred_funcs_##type below must match the order of them above. |
| 1109 | If WARN_ON_ONCE(pred_func_index > PRED_FUNC_MAX) Then Return NULL |
| 1114 | Case field_size == 8 |
| 1115 | If pred_func_index < 0 Then fn = filter_pred_64 |
| 1117 | Else if field_is_signed Then fn = pred_funcs_s64[pred_func_index] |
| 1119 | Else fn = pred_funcs_u64[pred_func_index] |
| 1121 | Break |
| 1122 | Case field_size == 4 |
| 1123 | If pred_func_index < 0 Then fn = filter_pred_32 |
| 1125 | Else if field_is_signed Then fn = pred_funcs_s32[pred_func_index] |
| 1127 | Else fn = pred_funcs_u32[pred_func_index] |
| 1129 | Break |
| 1130 | Case field_size == 2 |
| 1131 | If pred_func_index < 0 Then fn = filter_pred_16 |
| 1133 | Else if field_is_signed Then fn = pred_funcs_s16[pred_func_index] |
| 1135 | Else fn = pred_funcs_u16[pred_func_index] |
| 1137 | Break |
| 1138 | Case field_size == 1 |
| 1139 | If pred_func_index < 0 Then fn = filter_pred_8 |
| 1141 | Else if field_is_signed Then fn = pred_funcs_s8[pred_func_index] |
| 1143 | Else fn = pred_funcs_u8[pred_func_index] |
| 1145 | Break |
| 1148 | Return fn |
| Name | Describe |
|---|---|
| parse_pred | Called when a predicate is encountered by predicate_parse() |
| 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 |