Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:race_print_hex_seq - print buffer as hex sequence*@p: trace seq struct to write to*@buf: The buffer to print*@buf_len: Length of @buf in bytes*@concatenate: Print @buf as single hex string or with spacing* Prints the passed buffer as a hex sequence either

Proto:const char *trace_print_hex_seq(struct trace_seq *p, const unsigned char *buf, int buf_len, bool concatenate)

Type:char

Parameter:

TypeParameterName
struct trace_seq *p
const unsigned char *buf
intbuf_len
boolconcatenate
221  ret = race_seq_buffer_ptr - return pointer to next location in buffer*@s: trace sequence descriptor* Returns the pointer to the buffer where the next write to* the buffer will happen
222  fmt = If concatenate Then "%*phN" Else "%*ph"
224  When i < buf_len cycle Currently only defined when tracing is enabled.
226  trace_seq_putc(p, 0)
228  Return ret