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:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:gister_trigger - Generic event_command @reg implementation*@glob: The raw string used to register the trigger*@ops: The trigger ops associated with the trigger*@data: Trigger-specific data to associate with the trigger*@file: The trace_event_file

Proto:static int 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
540  ret = 0
542  lockdep_assert_held( & event_mutex)
545  If trigger_type == trigger_type Then
546  ret = -EEXIST
547  Go to out
551  If init Then
552  ret = init(ops, data)
553  If ret < 0 Then Go to out
557  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
558  ret++
560  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
561  If trace_event_trigger_enable_disable(file, 1) < 0 Then
562  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
563  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
564  ret--
566  out :
567  Return ret