函数逻辑报告 |
Source Code:kernel\trace\trace_kprobe.c |
Create Date:2022-07-27 13:49:38 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Allocate new trace_probe and initialize it (including kprobes).
函数原型:static struct trace_kprobe *alloc_trace_kprobe(const char *group, const char *event, void *addr, const char *symbol, unsigned long offs, int maxactive, int nargs, bool is_return)
返回类型:struct trace_kprobe
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| const char * | group | |
| const char * | event | |
| void * | addr | |
| const char * | symbol | |
| unsigned long | offs | |
| int | maxactive | |
| int | nargs | |
| bool | is_return |
| 271 | nhit等于alloc_percpu(unsignedlong) |
| 275 | 如果symbol则 |
| 276 | symbol name 等于kstrdup(symbol, GFP_KERNEL) |
| 277 | 如果非symbol name 则转到:error |
| 280 | Offset into the symbol 等于offs |
| 281 | 否则 location of the probe point 等于addr |
| 284 | 如果is_return则handler等于kretprobe_dispatcher |
| 290 | INIT_HLIST_NODE( & hlist) |
| 291 | 初始化链表头 |
| 293 | ret等于trace_probe_init( & tp, event, group, false) |
| 297 | dyn_event_init( & devent, & trace_kprobe_ops) |
| 298 | 返回:tk |
| 299 | error : |
| 300 | free_trace_kprobe(tk) |
| 301 | 返回:错误号 |
| 名称 | 描述 |
|---|---|
| trace_kprobe_create |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |