Function report |
Source Code:kernel\trace\tracing_map.c |
Create Date:2022-07-28 12:07:33 |
Last Modify:2020-03-17 19:44:05 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:racing_map_create - Create a lock-free map and element pool*@map_bits: The size of the map (2 ** map_bits)*@key_size: The size of the key for the map in bytes*@ops: Optional client-defined tracing_map_ops instance*@private_data: Client data associated
Proto:struct tracing_map *tracing_map_create(unsigned int map_bits, unsigned int key_size, const struct tracing_map_ops *ops, void *private_data)
Type:struct tracing_map
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned int | map_bits | |
unsigned int | key_size | |
const struct tracing_map_ops * | ops | |
void * | private_data |
768 | If map_bits < TRACING_MAP_BITS_MIN || map_bits > TRACING_MAP_BITS_MAX Then Return ERR_PTR( - EINVAL) |
772 | map = 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). |
778 | atomic_set( & next_elt, - 1) |
783 | private_data = private_data |
785 | map = tracing_map_array_alloc(map_size, sizeof(structtracing_map_entry)) |
791 | When i < TRACING_MAP_KEYS_MAX cycle key_idx[i] = -1 |
793 | out : |
794 | Return map |
795 | free : |
799 | Go to out |
Name | Describe |
---|---|
create_hist_data |
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 |