Function report |
Source Code:kernel\profile.c |
Create Date:2022-07-28 10:37:26 |
Last Modify:2020-03-17 15:11:09 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:profile_init
Proto:int __ref profile_init(void)
Type:int
Parameter:Nothing
106 | If Not prof_on Then Return 0 |
111 | buffer_bytes = prof_len * sizeof(atomic_t) |
113 | If Not alloc_cpumask_var( & prof_cpu_mask, GFP_KERNEL) Then Return -ENOMEM |
118 | prof_buffer = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
119 | If prof_buffer Then Return 0 |
124 | If prof_buffer Then Return 0 |
127 | prof_buffer = vzalloc(buffer_bytes) |
128 | If prof_buffer Then Return 0 |
132 | Return -ENOMEM |
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 |