Function report |
Source Code:kernel\trace\trace_kdb.c |
Create Date:2022-07-28 12:41:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kdb_ftdump - Dump the ftrace log buffer
Proto:static int kdb_ftdump(int argc, const char **argv)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
int | argc | |
const char ** | argv |
97 | skip_entries = 0 |
103 | If argc > 2 Then Return KDB_ARGCOUNT |
106 | If argc Then |
107 | skip_entries = simple_strtol(argv[1], & cp, 0) |
108 | If cp Then skip_entries = 0 |
112 | If argc == 2 Then |
113 | cpu_file = simple_strtol(argv[2], & cp, 0) |
114 | If cp || cpu_file >= Places which use this should consider cpumask_var_t. || cpu_file < 0 || Not cpu_online(cpu_file) Then Return KDB_BADINT |
117 | Else |
118 | cpu_file = RING_BUFFER_ALL_CPUS |
121 | kdb_trap_printk++ |
123 | trace_init_global_iter( & iter) |
124 | buffer_iter = buffer_iter |
126 | for_each_tracing_cpu(cpu) |
127 | atomic_inc( & disabled) |
131 | If skip_entries < 0 Then |
132 | If cpu_file == RING_BUFFER_ALL_CPUS Then cnt = trace_total_entries(NULL) |
134 | Else cnt = trace_total_entries_cpu(NULL, cpu_file) |
141 | for_each_tracing_cpu(cpu) |
142 | atomic_dec( & disabled) |
145 | kdb_trap_printk-- |
147 | 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 |