函数逻辑报告 |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-27 13:10:45 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:tracer_alloc_buffers
函数原型:__init static int tracer_alloc_buffers(void)
返回类型:int
参数:无
9256 | 如果security_locked_down(LOCKDOWN_TRACEFS)则 |
9265 | BUILD_BUG_ON - break compile if a condition is true( Make sure we don't go more than we have bits for > TRACE_FLAGS_MAX_SIZE) |
9270 | 如果非分配CPU掩码则转到:out_free_buffer_mask |
9279 | 如果On boot up, the ring buffer is set to the minimum size, so that* we do not waste memory on systems that are not using tracing.则ring_buf_size等于trace_buf_size |
9281 | 否则ring_buf_size等于1 |
9287 | raw_spin_lock_init( & start_lock) |
9295 | ret等于puhp_setup_state_multi - Add callbacks for multi state*@state: The state for which the calls are installed*@name: Name of the callback |
9298 | 如果ret小于0则转到:out_free_cpumask |
9303 | 如果非temp_buffer则转到:out_rm_hp_state |
9306 | 如果trace_create_savedcmd()小于0则转到:out_free_temp_buffer |
9312 | WARN_ON(1) |
9313 | 转到:out_free_savedcmd |
9319 | 如果trace_boot_clock则 |
9320 | ret等于tracing_set_clock( & The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing., trace_boot_clock) |
9321 | 如果ret小于0则打印警告信息("Trace clock %s not defined, going back to default\n", trace_boot_clock) |
9331 | current_trace等于nop_trace |
9335 | ftrace_init_global_array_ops( & The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing.) |
9337 | init_trace_flags_index( & The global_trace is the descriptor that holds the top-level tracing* buffers for the live tracing.) |
9342 | init_function_trace() |
9350 | register_die_notifier( & trace_die_notifier) |
9352 | flags等于TRACE_ARRAY_FL_GLOBAL |
9354 | 初始化链表头 |
9355 | 初始化链表头 |
9356 | 初始化链表头 |
9357 | 初始化链表头 |
9358 | 添加链表项 |
9360 | apply_trace_boot_options() |
9362 | register_snapshot_cmd() |
9364 | 返回:0 |
9366 | out_free_savedcmd : |
9368 | out_free_temp_buffer : |
9370 | out_rm_hp_state : |
9372 | out_free_cpumask : |
9373 | 释放CPU掩码 |
9374 | out_free_buffer_mask : |
9375 | 释放CPU掩码 |
9376 | out : |
9377 | 返回:ret |
名称 | 描述 |
---|---|
early_trace_init |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |