Function report |
Source Code:kernel\trace\trace_kdb.c |
Create Date:2022-07-28 12:41:42 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ftrace_dump_buf
Proto:static void ftrace_dump_buf(int skip_entries, long cpu_file)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
int | skip_entries | |
long | cpu_file |
27 | cnt = 0 |
31 | old_userobj = trace_flags |
36 | kdb_printf("Dumping ftrace buffer:\n") |
37 | If skip_entries Then kdb_printf("(skipping %d entries)\n", skip_entries) |
41 | iter_flags |= TRACE_FILE_LAT_FMT |
43 | If cpu_file == RING_BUFFER_ALL_CPUS Then |
49 | tracing_iter_reset( & iter, cpu) |
51 | Else |
57 | tracing_iter_reset( & iter, cpu_file) |
61 | If Not cnt Then kdb_printf("---------------------------------\n") |
63 | cnt++ |
65 | If Not skip_entries Then |
68 | Else |
69 | skip_entries-- |
72 | If KDB_FLAG(CMD_INTERRUPT) Then Go to out |
76 | If Not cnt Then kdb_printf(" (ftrace buffer empty)\n") |
78 | Else kdb_printf("---------------------------------\n") |
81 | out : |
82 | trace_flags = old_userobj |
85 | If buffer_iter[cpu] Then |
Name | Describe |
---|---|
kdb_ftdump | kdb_ftdump - Dump the ftrace log buffer |
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 |