Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:f_show

Proto:static int f_show(struct seq_file *m, void *v)

Type:int

Parameter:

TypeParameterName
struct seq_file *m
void *v
1244  call = event_file_data(private)
1249  Case v == FORMAT_HEADER
1250  seq_printf(m, "name: %s\n", trace_event_name(call))
1251  seq_printf(m, "ID: %d\n", type)
1252  seq_puts(m, "format:\n")
1253  Return 0
1255  Case v == FORMAT_FIELD_SEPERATOR
1256  seq_putc(m, '\n')
1257  Return 0
1259  Case v == FORMAT_PRINTFMT
1260  seq_printf(m, "\nprint fmt: %s\n", print_fmt)
1262  Return 0
1265  field = list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(v, structftrace_event_field, link)
1273  array_descriptor = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for
1275  If str_has_prefix - Test if a string has a given prefix*@str: The string to test*@prefix: The string to see if @str starts with* A common way to test a prefix of a string is to do:* strncmp(str, prefix, sizeof(prefix) - 1)* But this can lead to bugs due to Then array_descriptor = NULL
1278  If Not array_descriptor Then seq_printf(m, "\tfield:%s %s;\toffset:%u;\tsize:%u;\tsigned:%d;\n", type, name, offset, size, !!is_signed)
1282  Else seq_printf(m, "\tfield:%.*s %s%s;\toffset:%u;\tsize:%u;\tsigned:%d;\n", (int)(array_descriptor - type), type, name, array_descriptor, offset, size, !!is_signed)
1289  Return 0