Function report |
Source Code:kernel\gcov\fs.c |
Create Date:2022-07-28 11:31:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Associate a profiling data set with an existing node. Needs to be called* with node_lock held.
Proto:static void add_info(struct gcov_node *node, struct gcov_info *info)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct gcov_node * | node | |
struct gcov_info * | info |
617 | num = num_loaded |
624 | loaded_info = kcalloc - allocate memory for an array. The memory is set to zero.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc). |
625 | If Not loaded_info Then |
626 | pr_warn("could not add '%s' (out of memory)\n", Interface to access gcov_info data ) |
628 | Return |
630 | No 3D Now!(loaded_info, loaded_info, num * size of * ) |
632 | loaded_info[num] = info |
634 | If num == 0 Then |
639 | If Not gcov_info_is_compatible(unloaded_info, info) Then |
640 | pr_warn("discarding saved data for %s (incompatible version)\n", Interface to access gcov_info data ) |
644 | unloaded_info = NULL |
646 | Else |
651 | If Not gcov_info_is_compatible(loaded_info[0], info) Then |
652 | pr_warn("could not add '%s' (incompatible version)\n", Interface to access gcov_info data ) |
654 | kfree(loaded_info) |
655 | Return |
659 | kfree(loaded_info) |
660 | loaded_info = loaded_info |
661 | num_loaded = num + 1 |
Name | Describe |
---|---|
gcov_event | Callback to create/remove profiling files when code compiled with* -fprofile-arcs is loaded/unloaded. |
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 |