函数逻辑报告 |
Source Code:kernel\trace\trace.c |
Create Date:2022-07-27 13:05:02 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__ftrace_trace_stack
函数原型:static void __ftrace_trace_stack(struct ring_buffer *buffer, unsigned long flags, int skip, int pc, struct pt_regs *regs)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct ring_buffer * | buffer | |
unsigned long | flags | |
int | skip | |
int | pc | |
struct pt_regs * | regs |
2892 | call等于event_kernel_stack |
2914 | preempt_disable_notrace() |
2931 | fstack等于this_cpu_ptr(stacks)加stackidx |
2934 | 如果regs则 |
2937 | 否则 |
2941 | size等于nr_entries乘sizeof(unsignedlong) |
2942 | event等于__trace_buffer_lock_reserve(buffer, TRACE_STACK, entry的长度 + size, flags, pc) |
2946 | entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from |
2949 | size等于nr_entries |
2951 | 如果非call_filter_check_discard(call, entry, buffer, event)则__buffer_unlock_commit(buffer, event) |
2954 | out : |
2958 | preempt_enable_notrace() |
名称 | 描述 |
---|---|
ftrace_trace_stack | |
__trace_stack | |
trace_dump_stack | race_dump_stack - record a stack back trace in the trace buffer*@skip: Number of functions to skip (helper handlers) |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |