函数逻辑报告 |
Source Code:kernel\bpf\local_storage.c |
Create Date:2022-07-27 14:31:34 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:bpf_cgroup_storage_assign
函数原型:int bpf_cgroup_storage_assign(struct bpf_prog_aux *aux, struct bpf_map *_map)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct bpf_prog_aux * | aux | |
| struct bpf_map * | _map |
| 425 | stype等于cgroup_storage_type(_map) |
| 426 | map等于map_to_storage(_map) |
| 429 | spin_lock_bh( & lock) |
| 433 | 如果cgroup_storage[stype]且cgroup_storage[stype]不等于_map则转到:unlock |
| 438 | cgroup_storage[stype]等于_map |
| 439 | ret等于0 |
| 440 | unlock : |
| 441 | spin_unlock_bh( & lock) |
| 443 | 返回:ret |
| 名称 | 描述 |
|---|---|
| replace_map_fd_with_map_ptr | look for pseudo eBPF instructions that access map FDs and* replace them with actual map pointers |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |