Function report |
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 activity | Download SCCT | Chinese |
Name:f_show
Proto:static int f_show(struct seq_file *m, void *v)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| 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) |
| 1253 | Return 0 |
| 1255 | Case v == FORMAT_FIELD_SEPERATOR |
| 1259 | Case v == FORMAT_PRINTFMT |
| 1260 | seq_printf(m, "\nprint fmt: %s\n", print_fmt) |
| 1262 | Return 0 |
| 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 |
| 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 |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |