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:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:trace_print_array_seq

Proto:const char *trace_print_array_seq(struct trace_seq *p, const void *buf, int count, size_t el_size)

Type:char

Parameter:

TypeParameterName
struct trace_seq *p
const void *buf
intcount
size_tel_size
236  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
237  prefix = ""
238  ptr = buf
239  buf_len = count * el_size
241  trace_seq_putc(p, '{')
243  When ptr < buf + buf_len cycle
245  Case el_size == 1
248  Break
249  Case el_size == 2
252  Break
253  Case el_size == 4
256  Break
257  Case el_size == 8
260  Break
261  Default
264  el_size = 1
266  prefix = ","
267  ptr += el_size
270  trace_seq_putc(p, '}')
271  trace_seq_putc(p, 0)
273  Return ret