Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_tracing_log_err

Proto:static struct tracing_log_err *get_tracing_log_err(struct trace_array *tr)

Type:struct tracing_log_err

Parameter:

TypeParameterName
struct trace_array *tr
7074  If n_err_log_entries < TRACING_LOG_ERRS_MAX Then
7075  err = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
7076  If Not err Then err = ERR_PTR( - ENOMEM)
7078  n_err_log_entries++
7080  Return err
7083  err = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & err_log, structtracing_log_err, list)
7084  deletes entry from list
7086  Return err
Caller
NameDescribe
tracing_log_errracing_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