Function report |
Source Code:lib\debugobjects.c |
Create Date:2022-07-28 06:55:03 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Allocate a new object. If the pool is empty, switch off the debugger.* Must be called with interrupts disabled.
Proto:static struct debug_obj *alloc_object(void *addr, struct debug_bucket *b, struct debug_obj_descr *descr)
Type:struct debug_obj
Parameter:
Type | Parameter | Name |
---|---|---|
void * | addr | |
struct debug_bucket * | b | |
struct debug_obj_descr * | descr |
228 | percpu_pool = this_cpu_ptr( & percpu_obj_pool) |
231 | If Value is more likely to compile time(obj_cache) Then |
239 | raw_spin_lock( & pool_lock) |
241 | If obj Then |
242 | obj_pool_used++ |
243 | WRITE_ONCE(obj_pool_free, obj_pool_free - 1) |
249 | If Value is more likely to compile time(obj_cache) Then |
252 | When i < ODEBUG_BATCH_SIZE cycle |
256 | If Not obj2 Then Break |
258 | hlist_add_head( & node, & free_objs) |
260 | obj_free++ |
261 | obj_pool_used++ |
262 | WRITE_ONCE(obj_pool_free, obj_pool_free - 1) |
266 | If obj_pool_used > obj_pool_max_used Then obj_pool_max_used = obj_pool_used |
272 | raw_spin_unlock( & pool_lock) |
274 | init_obj : |
275 | If obj Then |
282 | Return obj |
Name | Describe |
---|---|
__debug_object_init |
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 |