Home
last modified time | relevance | path

Searched refs:used_maps (Results 1 – 3 of 3) sorted by relevance

/linux-4.1.27/kernel/bpf/
Dverifier.c200 struct bpf_map *used_maps[MAX_USED_MAPS]; /* array of map's used by eBPF program */ member
1877 if (env->used_maps[j] == map) { in replace_map_fd_with_map_ptr()
1888 env->used_maps[env->used_map_cnt++] = map; in replace_map_fd_with_map_ptr()
1917 bpf_map_put(env->used_maps[i]); in release_maps()
2124 env->prog->aux->used_maps = kmalloc_array(env->used_map_cnt, in bpf_check()
2125 sizeof(env->used_maps[0]), in bpf_check()
2128 if (!env->prog->aux->used_maps) { in bpf_check()
2133 memcpy(env->prog->aux->used_maps, env->used_maps, in bpf_check()
2134 sizeof(env->used_maps[0]) * env->used_map_cnt); in bpf_check()
2147 if (!env->prog->aux->used_maps) in bpf_check()
Dsyscall.c411 bpf_map_put(aux->used_maps[i]); in free_used_maps()
413 kfree(aux->used_maps); in free_used_maps()
/linux-4.1.27/include/linux/
Dbpf.h124 struct bpf_map **used_maps; member