Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:race_array_get_by_name - Create/Lookup a trace array, given its name

Proto:struct trace_array *trace_array_get_by_name(const char *name)

Type:struct trace_array

Parameter:

TypeParameterName
const char *name
8575  mutex_lock( & event_mutex)
8576  mutex_lock( & race_types_lock is used to protect the trace_types list.)
8579  If name && strcmp(name, name) == 0 Then Go to out_unlock
8583  tr = trace_array_create(name)
8585  If IS_ERR(tr) Then tr = NULL
8587  out_unlock :
8588  If tr Then ref++
8591  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.
8592  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.
8593  Return tr