Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dynamic_emit_prefix

Proto:static char *dynamic_emit_prefix(const struct _ddebug *desc, char *buf)

Type:char

Parameter:

TypeParameterName
const struct _ddebug *desc
char *buf
524  pos = 0
526  buf = '\0'
528  If flags & _DPRINTK_FLAGS_INCL_TID Then
529  If in_interrupt() Then pos += 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*@
531  Else pos += 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*@
535  pos_after_tid = pos
536  If flags & _DPRINTK_FLAGS_INCL_MODNAME Then pos += 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*@
539  If flags & _DPRINTK_FLAGS_INCL_FUNCNAME Then pos += 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*@
542  If flags & _DPRINTK_FLAGS_INCL_LINENO Then pos += 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*@
545  If pos - pos_after_tid Then pos += 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*@
547  If pos >= PREFIX_SIZE Then buf[PREFIX_SIZE - 1] = '\0'
550  Return buf
Caller
NameDescribe
__dynamic_pr_debug
__dynamic_dev_dbg
__dynamic_netdev_dbg
__dynamic_ibdev_dbg