Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:racing_log_err - write an error to the tracing error log*@tr: The associated trace array for the error (NULL for top level array)*@loc: A string describing where the error occurred*@cmd: The tracing command that caused the error*@errs: The array of

Proto:void tracing_log_err(struct trace_array *tr, const char *loc, const char *cmd, const char **errs, u8 type, u8 pos)

Type:void

Parameter:

TypeParameterName
struct trace_array *tr
const char *loc
const char *cmd
const char **errs
u8type
u8pos
7148  If Not tr Then tr = The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing.
7151  mutex_lock( & tracing_err_log_lock)
7152  err = get_tracing_log_err(tr)
7153  If PTR_ERR(err) == -ENOMEM Then
7154  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.
7155  Return
7158  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
7159  snprintf - Format a string and place it in a buffer*@buf: The buffer to place the result into*@size: The size of the buffer, including the trailing null space*@fmt: The format string to use*@
7161  ptr to loc-specific array of err strings = errs
7162  index into errs -> specific err string = type
7163  MAX_FILTER_STR_VAL = 256 = pos
7164  ts = local_clock()
7166  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
7167  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.
Caller
NameDescribe
append_filter_err
hist_err
__trace_probe_log_err