函数逻辑报告 |
Source Code:kernel\trace\trace_uprobe.c |
Create Date:2022-07-27 13:56:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__uprobe_trace_func
函数原型:static void __uprobe_trace_func(struct trace_uprobe *tu, unsigned long func, struct pt_regs *regs, struct uprobe_cpu_buffer *ucb, int dsize, struct trace_event_file *trace_file)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct trace_uprobe * | tu | |
unsigned long | func | |
struct pt_regs * | regs | |
struct uprobe_cpu_buffer * | ucb | |
int | dsize | |
struct trace_event_file * | trace_file |
938 | call等于trace_probe_event_call( & tp) |
940 | WARN_ON(call != event_call) |
942 | 如果WARN_ON_ONCE( trace entry size + dsize > PAGE_SIZE)则返回 |
948 | esize等于SIZEOF_TRACE_ENTRY(is_ret_probe(tu)) |
949 | size等于esize加 trace entry size 加dsize |
950 | event等于trace_event_buffer_lock_reserve( & buffer, trace_file, type, size, 0, 0) |
952 | 如果非event则返回 |
955 | entry等于g_buffer_event_data - return the data of the event*@event: the event to get the data from |
956 | 如果is_ret_probe(tu)则 |
958 | vaddr[1]等于instruction_pointer(regs) |
959 | data等于DATAOF_TRACE_ENTRY(entry, true) |
960 | 否则 |
961 | vaddr[0]等于instruction_pointer(regs) |
962 | data等于DATAOF_TRACE_ENTRY(entry, false) |
965 | 内存复制(data, buf, trace entry size + dsize) |
名称 | 描述 |
---|---|
uprobe_trace_func | probe handler |
uretprobe_trace_func |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |