Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:event_enable_register_trigger

Proto:int event_enable_register_trigger(char *glob, struct event_trigger_ops *ops, struct event_trigger_data *data, struct trace_event_file *file)

Type:int

Parameter:

TypeParameterName
char *glob
struct event_trigger_ops *ops
struct event_trigger_data *data
struct trace_event_file *file
1502  enable_data = private_data
1505  ret = 0
1507  lockdep_assert_held( & event_mutex)
1510  test_enable_data = private_data
1511  If test_enable_data && trigger_type == trigger_type && file == file Then
1515  ret = -EEXIST
1516  Go to out
1520  If init Then
1521  ret = init(ops, data)
1522  If ret < 0 Then Go to out
1526  list_add_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head
1527  ret++
1529  pdate_cond_flag - Set or reset the TRIGGER_COND bit*@file: The trace_event_file associated with the event* If an event has triggers and any of those triggers has a filter or* a post_trigger, trigger invocation needs to be deferred until after* the current
1530  If trace_event_trigger_enable_disable(file, 1) < 0 Then
1531  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
1532  pdate_cond_flag - Set or reset the TRIGGER_COND bit*@file: The trace_event_file associated with the event* If an event has triggers and any of those triggers has a filter or* a post_trigger, trigger invocation needs to be deferred until after* the current
1533  ret--
1535  out :
1536  Return ret