Function report |
Source Code:arch\x86\kernel\stacktrace.c |
Create Date:2022-07-28 07:53:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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.
Proto:int arch_stack_walk_reliable(stack_trace_consume_fn consume_entry, void *cookie, struct task_struct *task)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
stack_trace_consume_fn | consume_entry | |
void * | cookie | |
struct task_struct * | task |
45 | When Not unwind_done( & state) && Not unwind_error( & state) cycle |
49 | regs = unwind_get_entry_regs( & state, NULL) |
50 | If regs Then |
52 | If ser_mode(regs) determines whether a register set came from user* mode Then Return 0 |
66 | addr = unwind_get_return_address( & state) |
76 | If Not consume_entry(cookie, addr, false) Then Return -EINVAL |
81 | If unwind_error( & state) Then Return -EINVAL |
85 | If Not ( Per task flags (PF_*), defined further below: & (I am a kernel thread | I am an IDLE thread )) Then Return -EINVAL |
88 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |