Function report |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-28 12:04:00 |
| 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
Proto:void ftrace_dump(enum ftrace_dump_mode oops_dump_mode)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| enum ftrace_dump_mode | oops_dump_mode |
| 9060 | tr = The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing. |
| 9063 | cnt = 0 |
| 9066 | If atomic_inc_return( & dump_running) != 1 Then |
| 9067 | atomic_dec( & dump_running) |
| 9068 | Return |
| 9081 | local_irq_save(flags) |
| 9082 | printk_nmi_direct_enter() |
| 9085 | trace_init_global_iter( & iter) |
| 9087 | for_each_tracing_cpu(cpu) |
| 9088 | atomic_inc( & disabled) |
| 9091 | old_userobj = trace_flags & TRACE_ITER_SYM_USEROBJ |
| 9094 | trace_flags &= ~TRACE_ITER_SYM_USEROBJ |
| 9097 | Case oops_dump_mode == DUMP_ALL |
| 9098 | cpu_file = RING_BUFFER_ALL_CPUS |
| 9099 | Break |
| 9100 | Case oops_dump_mode == DUMP_ORIG |
| 9102 | Break |
| 9103 | Case oops_dump_mode == DUMP_NONE |
| 9104 | Go to out_enable |
| 9105 | Default |
| 9107 | cpu_file = RING_BUFFER_ALL_CPUS |
| 9113 | If ftrace_is_dead() Then |
| 9125 | When Not trace_empty( & iter) cycle |
| 9130 | cnt++ |
| 9133 | iter_flags |= TRACE_FILE_LAT_FMT |
| 9135 | If (Find the next real entry, and increment the iterator to the next entry != NULL) Then |
| 9139 | If ret != TRACE_TYPE_NO_CONSUME Then trace_consume( & iter) |
| 9152 | out_enable : |
| 9153 | trace_flags |= old_userobj |
| 9155 | for_each_tracing_cpu(cpu) |
| 9156 | atomic_dec( & disabled) |
| 9158 | atomic_dec( & dump_running) |
| 9159 | printk_nmi_direct_exit() |
| 9160 | local_irq_restore(flags) |
| Name | Describe |
|---|---|
| trace_panic_handler | |
| trace_die_handler |
| 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 |