Lines Matching refs:test
890 struct event_trigger_data *test; in find_var() local
899 list_for_each_entry(test, &file->triggers, list) { in find_var()
900 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in find_var()
901 test_data = test->private_data; in find_var()
946 struct event_trigger_data *test; in find_file_var() local
951 list_for_each_entry(test, &file->triggers, list) { in find_file_var()
952 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in find_file_var()
953 test_data = test->private_data; in find_file_var()
2342 struct event_trigger_data *test; in find_trigger_filter() local
2346 list_for_each_entry(test, &file->triggers, list) { in find_trigger_filter()
2347 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in find_trigger_filter()
2348 if (test->private_data == hist_data) in find_trigger_filter()
2349 return test->filter_str; in find_trigger_filter()
2394 struct event_trigger_data *test; in find_compatible_hist() local
2401 list_for_each_entry(test, &file->triggers, list) { in find_compatible_hist()
2402 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in find_compatible_hist()
2403 hist_data = test->private_data; in find_compatible_hist()
5458 struct event_trigger_data *test, *named_data = NULL; in hist_register_trigger() local
5479 list_for_each_entry(test, &file->triggers, list) { in hist_register_trigger()
5480 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in hist_register_trigger()
5481 if (!hist_trigger_match(data, test, named_data, false)) in hist_register_trigger()
5484 test->paused = true; in hist_register_trigger()
5486 test->paused = false; in hist_register_trigger()
5488 hist_clear(test); in hist_register_trigger()
5560 struct event_trigger_data *test, *named_data = NULL; in have_hist_trigger_match() local
5568 list_for_each_entry(test, &file->triggers, list) { in have_hist_trigger_match()
5569 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in have_hist_trigger_match()
5570 if (hist_trigger_match(data, test, named_data, false)) { in have_hist_trigger_match()
5584 struct event_trigger_data *test, *named_data = NULL; in hist_trigger_check_refs() local
5591 list_for_each_entry(test, &file->triggers, list) { in hist_trigger_check_refs()
5592 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in hist_trigger_check_refs()
5593 if (!hist_trigger_match(data, test, named_data, false)) in hist_trigger_check_refs()
5595 hist_data = test->private_data; in hist_trigger_check_refs()
5610 struct event_trigger_data *test, *named_data = NULL; in hist_unregister_trigger() local
5618 list_for_each_entry(test, &file->triggers, list) { in hist_unregister_trigger()
5619 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in hist_unregister_trigger()
5620 if (!hist_trigger_match(data, test, named_data, false)) in hist_unregister_trigger()
5623 list_del_rcu(&test->list); in hist_unregister_trigger()
5630 if (unregistered && test->ops->free) in hist_unregister_trigger()
5631 test->ops->free(test->ops, test); in hist_unregister_trigger()
5642 struct event_trigger_data *test; in hist_file_check_refs() local
5646 list_for_each_entry(test, &file->triggers, list) { in hist_file_check_refs()
5647 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in hist_file_check_refs()
5648 hist_data = test->private_data; in hist_file_check_refs()
5659 struct event_trigger_data *test, *n; in hist_unreg_all() local
5669 list_for_each_entry_safe(test, n, &file->triggers, list) { in hist_unreg_all()
5670 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in hist_unreg_all()
5671 hist_data = test->private_data; in hist_unreg_all()
5672 list_del_rcu(&test->list); in hist_unreg_all()
5683 if (test->ops->free) in hist_unreg_all()
5684 test->ops->free(test->ops, test); in hist_unreg_all()
5890 struct event_trigger_data *test; in hist_enable_trigger() local
5892 list_for_each_entry_rcu(test, &enable_data->file->triggers, list, in hist_enable_trigger()
5894 if (test->cmd_ops->trigger_type == ETT_EVENT_HIST) { in hist_enable_trigger()
5896 test->paused = false; in hist_enable_trigger()
5898 test->paused = true; in hist_enable_trigger()
5964 struct event_trigger_data *test, *n; in hist_enable_unreg_all() local
5966 list_for_each_entry_safe(test, n, &file->triggers, list) { in hist_enable_unreg_all()
5967 if (test->cmd_ops->trigger_type == ETT_HIST_ENABLE) { in hist_enable_unreg_all()
5968 list_del_rcu(&test->list); in hist_enable_unreg_all()
5971 if (test->ops->free) in hist_enable_unreg_all()
5972 test->ops->free(test->ops, test); in hist_enable_unreg_all()