Function report |
Source Code:kernel\events\callchain.c |
Create Date:2022-07-28 13:43:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:alloc_callchain_buffers
Proto:static int alloc_callchain_buffers(void)
Type:int
Parameter:Nothing
81 | size = offsetof(structcallchain_cpus_entries, cpu_entries[Setup number of possible processor ids ]) |
83 | entries = 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). |
87 | size = perf_callchain_entry__sizeof() * Number of contexts where an event can trigger:* task, softirq, hardirq, nmi. |
90 | cpu_entries[cpu] = kmalloc_node(size, GFP_KERNEL, cpu_to_node(cpu)) |
92 | If Not cpu_entries[cpu] Then Go to fail |
98 | Return 0 |
100 | fail : |
101 | for_each_possible_cpu(cpu) |
102 | kfree(cpu_entries[cpu]) |
105 | Return -ENOMEM |
Name | Describe |
---|---|
get_callchain_buffers |
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 |