Function report |
Source Code:mm\kasan\report.c |
Create Date:2022-07-28 15:52:52 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:get_address_stack_frame_info
Proto:static bool __must_check get_address_stack_frame_info(const void *addr, unsigned long *offset, const char **frame_descr, const void **frame_pc)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
const void * | addr | |
unsigned long * | offset | |
const char ** | frame_descr | |
const void ** | frame_pc |
301 | BUILD_BUG_ON - break compile if a condition is true(IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_STACK_GROWSUP)) |
307 | If Not object_is_on_stack(addr) Then Return false |
312 | shadow_ptr = kasan_mem_to_shadow((void * )aligned_addr) |
316 | shadow_ptr-- |
317 | mem_ptr -= KASAN_SHADOW_SCALE_SIZE |
321 | shadow_ptr-- |
322 | mem_ptr -= KASAN_SHADOW_SCALE_SIZE |
325 | If shadow_ptr < shadow_bottom Then Return false |
328 | frame = mem_ptr + KASAN_SHADOW_SCALE_SIZE |
329 | If frame[0] != Stack frame marker (compiler ABI). Then |
332 | Return false |
336 | frame_descr = frame[1] |
339 | Return true |
Name | Describe |
---|---|
print_address_stack_frame |
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 |