函数逻辑报告 |
Source Code:arch\x86\kernel\stacktrace.c |
Create Date:2022-07-27 08:53:48 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:This function returns an error if it detects any unreliable features of the* stack. Otherwise it guarantees that the stack trace is reliable.* If the task is not 'current', the caller *must* ensure the task is inactive.
函数原型:int arch_stack_walk_reliable(stack_trace_consume_fn consume_entry, void *cookie, struct task_struct *task)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| stack_trace_consume_fn | consume_entry | |
| void * | cookie | |
| struct task_struct * | task |
| 45 | 以非unwind_done( & state)且非unwind_error( & state)循环 |
| 49 | regs等于unwind_get_entry_regs( & state, NULL) |
| 50 | 如果regs则 |
| 66 | addr等于unwind_get_return_address( & state) |
| 76 | 如果非consume_entry(cookie, addr, false)则返回:负EINVAL |
| 81 | 如果unwind_error( & state)则返回:负EINVAL |
| 85 | 如果非任务标志按位与I am a kernel thread 按位或I am an IDLE thread 的值的值则返回:负EINVAL |
| 88 | 返回:0 |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |