函数逻辑报告 |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-27 13:10:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:ftrace_dump
函数原型:void ftrace_dump(enum ftrace_dump_mode oops_dump_mode)
返回类型:void
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| 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 | 如果atomic_inc_return( & dump_running)不等于1则 |
| 9067 | atomic_dec( & dump_running) |
| 9068 | 返回 |
| 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) |
| 9094 | trace_flags与等于TRACE_ITER_SYM_USEROBJ的反 |
| 9097 | 当:oops_dump_mode恒等于DUMP_ALL |
| 9098 | cpu_file等于RING_BUFFER_ALL_CPUS |
| 9099 | 退出 |
| 9100 | 当:oops_dump_mode恒等于DUMP_ORIG |
| 9103 | 当:oops_dump_mode恒等于DUMP_NONE |
| 9104 | 转到:out_enable |
| 9105 | 默认 |
| 9107 | cpu_file等于RING_BUFFER_ALL_CPUS |
| 9113 | 如果ftrace_is_dead()则 |
| 9125 | 当非trace_empty( & iter)循环 |
| 9130 | cnt自加 |
| 9133 | iter_flags或等于TRACE_FILE_LAT_FMT |
| 9135 | 如果(Find the next real entry, and increment the iterator to the next entry != NULL)则 |
| 9139 | 如果ret不等于TRACE_TYPE_NO_CONSUME则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) |
| 名称 | 描述 |
|---|---|
| trace_panic_handler | |
| trace_die_handler |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |