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

Name:Currently we only register event commands from __init, so mark this* __init too.

Proto:__init int register_event_command(struct event_command *cmd)

Type:int

Parameter:

TypeParameterName
struct event_command *cmd
326  ret = 0
328  mutex_lock( & trigger_cmd_mutex)
330  If strcmp(name, name) == 0 Then
331  ret = -EBUSY
332  Go to out_unlock
335  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
336  out_unlock :
337  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
339  Return ret
Caller
NameDescribe
register_trigger_stacktrace_cmd
register_trigger_enable_disable_cmds
register_trigger_traceon_traceoff_cmds
register_trigger_hist_cmd
register_trigger_hist_enable_disable_cmds