函数逻辑报告 |
Source Code:lib\livepatch\test_klp_shadow_vars.c |
Create Date:2022-07-27 07:35:56 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:test_klp_shadow_vars_init
函数原型:static int test_klp_shadow_vars_init(void)
返回类型:int
参数:无
| 129 | obj等于THIS_MODULE |
| 130 | id等于0x1234 |
| 131 | size等于*的长度 |
| 132 | gfp_flags等于GFP_KERNEL |
| 139 | ptr_id(NULL) |
| 149 | ret等于Shadow variable wrapper functions that echo the function and arguments* to the kernel log for testing verification. Don't display raw pointers,* but use the ptr_id() value instead. |
| 156 | sv1等于shadow_alloc(obj, id, size, gfp_flags, Shadow variable constructor - remember simple pointer data , & var1) |
| 160 | sv2等于shadow_alloc(obj + 1, id, size, gfp_flags, Shadow variable constructor - remember simple pointer data , & var2) |
| 164 | sv3等于shadow_alloc(obj, id + 1, size, gfp_flags, Shadow variable constructor - remember simple pointer data , & var3) |
| 172 | ret等于Shadow variable wrapper functions that echo the function and arguments* to the kernel log for testing verification. Don't display raw pointers,* but use the ptr_id() value instead. |
| 175 | 如果ret恒等于sv1且sv1恒等于var1则打印信息(" got expected PTR%d -> PTR%d result\n", ptr_id(sv1), ptr_id( * sv1)) |
| 179 | ret等于Shadow variable wrapper functions that echo the function and arguments* to the kernel log for testing verification. Don't display raw pointers,* but use the ptr_id() value instead. |
| 182 | 如果ret恒等于sv2且sv2恒等于var2则打印信息(" got expected PTR%d -> PTR%d result\n", ptr_id(sv2), ptr_id( * sv2)) |
| 185 | ret等于Shadow variable wrapper functions that echo the function and arguments* to the kernel log for testing verification. Don't display raw pointers,* but use the ptr_id() value instead. |
| 188 | 如果ret恒等于sv3且sv3恒等于var3则打印信息(" got expected PTR%d -> PTR%d result\n", ptr_id(sv3), ptr_id( * sv3)) |
| 196 | sv4等于shadow_get_or_alloc(obj + 2, id, size, gfp_flags, Shadow variable constructor - remember simple pointer data , & var4) |
| 200 | ret等于shadow_get_or_alloc(obj + 2, id, size, gfp_flags, Shadow variable constructor - remember simple pointer data , & var4) |
| 203 | 如果ret恒等于sv4且sv4恒等于var4则打印信息(" got expected PTR%d -> PTR%d result\n", ptr_id(sv4), ptr_id( * sv4)) |
| 211 | shadow_free(obj, id, shadow_dtor) |
| 212 | ret等于Shadow variable wrapper functions that echo the function and arguments* to the kernel log for testing verification. Don't display raw pointers,* but use the ptr_id() value instead. |
| 216 | shadow_free(obj + 1, id, shadow_dtor) |
| 217 | ret等于Shadow variable wrapper functions that echo the function and arguments* to the kernel log for testing verification. Don't display raw pointers,* but use the ptr_id() value instead. |
| 221 | shadow_free(obj + 2, id, shadow_dtor) |
| 222 | ret等于Shadow variable wrapper functions that echo the function and arguments* to the kernel log for testing verification. Don't display raw pointers,* but use the ptr_id() value instead. |
| 229 | ret等于Shadow variable wrapper functions that echo the function and arguments* to the kernel log for testing verification. Don't display raw pointers,* but use the ptr_id() value instead. |
| 232 | 如果ret恒等于sv3且sv3恒等于var3则打印信息(" got expected PTR%d -> PTR%d result\n", ptr_id(sv3), ptr_id( * sv3)) |
| 239 | shadow_free_all(id + 1, shadow_dtor) |
| 240 | ret等于Shadow variable wrapper functions that echo the function and arguments* to the kernel log for testing verification. Don't display raw pointers,* but use the ptr_id() value instead. |
| 245 | free_ptr_list() |
| 247 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |