Function report |
Source Code:lib\debugobjects.c |
Create Date:2022-07-28 06:55:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__debug_object_init
Proto:static void __debug_object_init(void *addr, struct debug_obj_descr *descr, int onstack)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
void * | addr | |
struct debug_obj_descr * | descr | |
int | onstack |
535 | bool check_stack = false |
540 | fill_pool() |
542 | db = We use the pfn of the address for the hash. That way we can check* for freed objects simply by checking the affected bucket. |
544 | raw_spin_lock_irqsave( & lock, flags) |
547 | If Not obj Then |
548 | obj = Allocate a new object. If the pool is empty, switch off the debugger.* Must be called with interrupts disabled. |
549 | If Not obj Then |
555 | check_stack = true |
559 | Case state == ODEBUG_STATE_NONE |
560 | Case state == ODEBUG_STATE_INIT |
561 | Case state == ODEBUG_STATE_INACTIVE |
562 | state = ODEBUG_STATE_INIT |
563 | Break |
565 | Case state == ODEBUG_STATE_ACTIVE |
572 | Case state == ODEBUG_STATE_DESTROYED |
576 | Default |
577 | Break |
580 | raw_spin_unlock_irqrestore( & lock, flags) |
581 | If check_stack Then debug_object_is_on_stack(addr, onstack) |
Name | Describe |
---|---|
debug_object_init | debug_object_init - debug checks when an object is initialized*@addr: address of the object*@descr: pointer to an object specific debug description structure |
debug_object_init_on_stack | debug_object_init_on_stack - debug checks when an object on stack is* initialized*@addr: address of the object*@descr: pointer to an object specific debug description structure |
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 |