Function report |
Source Code:kernel\bpf\local_storage.c |
Create Date:2022-07-28 13:14:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_percpu_cgroup_storage_copy
Proto:int bpf_percpu_cgroup_storage_copy(struct bpf_map *_map, void *_key, void *value)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct bpf_map * | _map | |
| void * | _key | |
| void * | value |
| 173 | map = map_to_storage(_map) |
| 176 | off = 0 |
| 180 | storage = cgroup_storage_lookup(map, key, false) |
| 181 | If Not storage Then |
| 183 | Return -ENOENT |
| 191 | for_each_possible_cpu(cpu) |
| 192 | bpf_long_memcpy(value + off, per_cpu_ptr(percpu_buf, cpu), size) |
| 197 | Return 0 |
| 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 |