函数逻辑报告 |
Source Code:arch\x86\kernel\kprobes\opt.c |
Create Date:2022-07-27 09:38:35 |
Last Modify:2022-05-22 07:44:06 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Copy replacing target instructions* Target instructions MUST be relocatable (checked inside)* This is called when new aggr(opt)probe is allocated or reused.
函数原型:int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *__unused)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct optimized_kprobe * | op | |
struct kprobe * | __unused |
367 | detour code buffer 等于slot等于get_optinsn_slot() |
368 | 如果非slot则 |
387 | ret等于copy_optimized_instructions(buf + TMPL_END_IDX, location of the probe point , slot + TMPL_END_IDX) |
404 | len加等于RELATIVEJUMP_SIZE |
408 | ret等于0 |
409 | out : |
410 | 释放内存 |
411 | 返回:ret |
413 | err : |
415 | 转到:out |
名称 | 描述 |
---|---|
__prepare_optimized_kprobe |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |