函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace.c Create Date:2022-07-27 13:08:50
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:void tracing_log_err(struct trace_array *tr, const char *loc, const char *cmd, const char **errs, u8 type, u8 pos)

返回类型:void

参数:

类型参数名称
struct trace_array *tr
const char *loc
const char *cmd
const char **errs
u8type
u8pos
7148  如果非trtr等于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  如果错误恒等于负ENOMEM
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  返回
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  添加链表项
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.
调用者
名称描述
append_filter_err
hist_err
__trace_probe_log_err