Home
last modified time | relevance | path

Searched refs:uattr (Results 1 - 4 of 4) sorted by relevance

/device/soc/rockchip/common/sdk_linux/kernel/bpf/
H A Dsyscall.c1274 int generic_map_delete_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) in generic_map_delete_batch() argument
1320 if (copy_to_user(&uattr->batch.count, &cp, sizeof(cp))) { in generic_map_delete_batch()
1328 int generic_map_update_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) in generic_map_update_batch() argument
1380 if (copy_to_user(&uattr->batch.count, &cp, sizeof(cp))) { in generic_map_update_batch()
1392 int generic_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) in generic_map_lookup_batch() argument
1417 if (put_user(0, &uattr->batch.count)) { in generic_map_lookup_batch()
1488 if ((copy_to_user(&uattr->batch.count, &cp, sizeof(cp)) || in generic_map_lookup_batch()
2147 static int bpf_prog_load(union bpf_attr *attr, union bpf_attr __user *uattr) in bpf_prog_load() argument
2262 err = bpf_check(&prog, attr, uattr); in bpf_prog_load()
3104 static int bpf_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) in bpf_prog_query() argument
3153 bpf_prog_test_run(const union bpf_attr *attr, union bpf_attr __user *uattr) bpf_prog_test_run() argument
3185 bpf_obj_get_next_id(const union bpf_attr *attr, union bpf_attr __user *uattr, struct idr *idr, spinlock_t *lock) bpf_obj_get_next_id() argument
3459 bpf_prog_get_info_by_fd(struct file *file, struct bpf_prog *prog, const union bpf_attr *attr, union bpf_attr __user *uattr) bpf_prog_get_info_by_fd() argument
3749 bpf_map_get_info_by_fd(struct file *file, struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr) bpf_map_get_info_by_fd() argument
3793 bpf_btf_get_info_by_fd(struct file *file, struct btf *btf, const union bpf_attr *attr, union bpf_attr __user *uattr) bpf_btf_get_info_by_fd() argument
3808 bpf_link_get_info_by_fd(struct file *file, struct bpf_link *link, const union bpf_attr *attr, union bpf_attr __user *uattr) bpf_link_get_info_by_fd() argument
3847 bpf_obj_get_info_by_fd(const union bpf_attr *attr, union bpf_attr __user *uattr) bpf_obj_get_info_by_fd() argument
3908 bpf_task_fd_query_copy(const union bpf_attr *attr, union bpf_attr __user *uattr, u32 prog_id, u32 fd_type, const char *buf, u64 probe_offset, u64 probe_addr) bpf_task_fd_query_copy() argument
3959 bpf_task_fd_query(const union bpf_attr *attr, union bpf_attr __user *uattr) bpf_task_fd_query() argument
4053 bpf_map_do_batch(const union bpf_attr *attr, union bpf_attr __user *uattr, int cmd) bpf_map_do_batch() argument
[all...]
H A Dverifier.c8552 static int check_btf_func(struct bpf_verifier_env *env, const union bpf_attr *attr, union bpf_attr __user *uattr) in check_btf_func() argument
8608 if (put_user(min_size, &uattr->func_info_rec_size)) { in check_btf_func()
8695 static int check_btf_line(struct bpf_verifier_env *env, const union bpf_attr *attr, union bpf_attr __user *uattr) in check_btf_line() argument
8739 if (put_user(expected_size, &uattr->line_info_rec_size)) { in check_btf_line()
8812 static int check_btf_info(struct bpf_verifier_env *env, const union bpf_attr *attr, union bpf_attr __user *uattr) in check_btf_info() argument
8830 err = check_btf_func(env, attr, uattr); in check_btf_info()
8835 err = check_btf_line(env, attr, uattr); in check_btf_info()
12147 int bpf_check(struct bpf_prog **prog, union bpf_attr *attr, union bpf_attr __user *uattr) in bpf_check() argument
12241 ret = check_btf_info(env, attr, uattr); in bpf_check()
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Dbpf.h65 int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr);
66 int (*map_lookup_and_delete_batch)(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr);
67 int (*map_update_batch)(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr);
68 int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr);
465 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr);
1254 int generic_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr);
1255 int generic_map_update_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr);
1256 int generic_map_delete_batch(struct bpf_map *map, const union bpf_attr *attr, union bpf_attr __user *uattr);
1391 int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, union bpf_attr __user *uattr);
1425 int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr);
1590 bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_xdp() argument
1596 bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_skb() argument
1602 bpf_prog_test_run_tracing(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_tracing() argument
1608 bpf_prog_test_run_flow_dissector(struct bpf_prog *prog, const union bpf_attr *kattr, union bpf_attr __user *uattr) bpf_prog_test_run_flow_dissector() argument
[all...]
/device/soc/rockchip/common/sdk_linux/kernel/sched/
H A Dcore.c6129 static int sched_copy_attr(struct sched_attr __user *uattr, in sched_copy_attr() argument
6138 ret = get_user(size, &uattr->size); in sched_copy_attr()
6151 ret = copy_struct_from_user(attr, sizeof(*attr), uattr, size); in sched_copy_attr()
6179 put_user(sizeof(*attr), &uattr->size); in sched_copy_attr()
6216 * @uattr: structure containing the extended parameters.
6219 SYSCALL_DEFINE3(sched_setattr, pid_t, pid, struct sched_attr __user *, uattr, in SYSCALL_DEFINE3()
6226 if (!uattr || pid < 0 || flags) { in SYSCALL_DEFINE3()
6230 retval = sched_copy_attr(uattr, &attr); in SYSCALL_DEFINE3()
6343 static int sched_attr_copy_to_user(struct sched_attr __user *uattr, in sched_attr_copy_to_user() argument
6348 if (!access_ok(uattr, usiz in sched_attr_copy_to_user()
[all...]

Completed in 32 milliseconds