Lines Matching refs:func_id
890 static int check_map_func_compatibility(struct bpf_map *map, int func_id) in check_map_func_compatibility() argument
898 if (func_id != BPF_FUNC_tail_call) in check_map_func_compatibility()
902 if (func_id != BPF_FUNC_perf_event_read && in check_map_func_compatibility()
903 func_id != BPF_FUNC_perf_event_output) in check_map_func_compatibility()
911 switch (func_id) { in check_map_func_compatibility()
928 map->map_type, func_id); in check_map_func_compatibility()
932 static int check_call(struct verifier_env *env, int func_id) in check_call() argument
942 if (func_id < 0 || func_id >= __BPF_FUNC_MAX_ID) { in check_call()
943 verbose("invalid func %d\n", func_id); in check_call()
948 fn = env->prog->aux->ops->get_func_proto(func_id); in check_call()
951 verbose("unknown func %d\n", func_id); in check_call()
1003 fn->ret_type, func_id); in check_call()
1007 err = check_map_func_compatibility(map, func_id); in check_call()