函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\trace\trace_events.c Create Date:2022-07-27 13:26:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:f_show

函数原型:static int f_show(struct seq_file *m, void *v)

返回类型:int

参数:

类型参数名称
struct seq_file *m
void *v
1244  call等于event_file_data(private)
1249  :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  返回:0
1255  :v恒等于FORMAT_FIELD_SEPERATOR
1256  seq_putc(m, '\n')
1257  返回:0
1259  :v恒等于FORMAT_PRINTFMT
1260  seq_printf(m, "\nprint fmt: %s\n", print_fmt)
1262  返回: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  如果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 array_descriptor = NULL
1278  如果非array_descriptorseq_printf(m, "\tfield:%s %s;\toffset:%u;\tsize:%u;\tsigned:%d;\n", type, name, offset, size, !!is_signed)
1282  否则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  返回:0