Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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 activityDownload SCCTChinese

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:

TypeParameterName
enum filter_op_idsop
intfield_size
intfield_is_signed
1098  filter_pred_fn_t fn = NULL
1099  pred_func_index = -1
1102  Case op == OP_EQ
1103  Case op == OP_NE
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
1121  Break
1122  Case field_size == 4
1123  If pred_func_index < 0 Then fn = filter_pred_32
1129  Break
1130  Case field_size == 2
1131  If pred_func_index < 0 Then fn = filter_pred_16
1137  Break
1138  Case field_size == 1
1139  If pred_func_index < 0 Then fn = filter_pred_8
1145  Break
1148  Return fn
Caller
NameDescribe
parse_predCalled when a predicate is encountered by predicate_parse()