Function report |
Source Code:lib\debugobjects.c |
Create Date:2022-07-28 06:55:11 |
| 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_activate - debug checks when an object is activated*@addr: address of the object*@descr: pointer to an object specific debug description structure* Returns 0 for success, -EINVAL for check failed.
Proto:int debug_object_activate(void *addr, struct debug_obj_descr *descr)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| void * | addr | |
| struct debug_obj_descr * | descr |
| 631 | If Not debug_objects_enabled Then Return 0 |
| 634 | 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. |
| 636 | raw_spin_lock_irqsave( & lock, flags) |
| 639 | If obj Then |
| 640 | bool print_object = false |
| 643 | Case state == ODEBUG_STATE_INIT |
| 644 | Case state == ODEBUG_STATE_INACTIVE |
| 649 | Case state == ODEBUG_STATE_ACTIVE |
| 651 | raw_spin_unlock_irqrestore( & lock, flags) |
| 652 | debug_print_object(obj, "activate") |
| 656 | Case state == ODEBUG_STATE_DESTROYED |
| 660 | Default |
| 661 | ret = 0 |
| 662 | Break |
| 664 | raw_spin_unlock_irqrestore( & lock, flags) |
| 665 | If print_object Then debug_print_object(obj, "activate") |
| 667 | Return ret |
| 670 | raw_spin_unlock_irqrestore( & lock, flags) |
| 679 | If is_static_object && is_static_object(addr) Then |
| 683 | Else |
| 684 | debug_print_object( & o, "activate") |
| 689 | Return 0 |
| Name | Describe |
|---|---|
| debug_object_activate | debug_object_activate - debug checks when an object is activated*@addr: address of the object*@descr: pointer to an object specific debug description structure* Returns 0 for success, -EINVAL for check failed. |
| 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 |