Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events_hist.c Create Date:2022-07-28 12:33:47
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:hist_trigger_match

Proto:static bool hist_trigger_match(struct event_trigger_data *data, struct event_trigger_data *data_test, struct event_trigger_data *named_data, bool ignore_filter)

Type:bool

Parameter:

TypeParameterName
struct event_trigger_data *data
struct event_trigger_data *data_test
struct event_trigger_data *named_data
boolignore_filter
5876  If named_data && named_data != data_test && named_data != named_data Then Return false
5880  If Not named_data && s_named_trigger - determine if a given trigger is a named trigger*@test: The trigger data to test* Return: true if 'test' is a named trigger, false otherwise. Then Return false
5883  hist_data = private_data
5884  hist_data_test = private_data
5886  If n_vals != n_vals || n_fields != n_fields || n_sort_keys != n_sort_keys Then Return false
5891  If Not ignore_filter Then
5892  If filter_str && Not filter_str || Not filter_str && filter_str Then Return false
5898  key_field = fields[i]
5899  key_field_test = fields[i]
5901  If flags != flags Then Return false
5903  If Not compatible_field(field, field) Then Return false
5905  If offset != offset Then Return false
5907  If size != size Then Return false
5909  If is_signed != is_signed Then Return false
5911  If Not Not name != Not Not name Then Return false
5913  If name && strcmp(name, name) != 0 Then Return false
5918  When i < n_sort_keys cycle
5919  sort_key = sort_keys[i]
5920  sort_key_test = sort_keys[i]
5922  If field_idx != field_idx || descending != descending Then Return false
5927  If Not ignore_filter && filter_str && strcmp(filter_str, filter_str) != 0 Then Return false
5931  If Not actions_match(hist_data, hist_data_test) Then Return false
5934  Return true
Caller
NameDescribe
hist_register_trigger
have_hist_trigger_match
hist_trigger_check_refs
hist_unregister_trigger