Searched refs:query (Results 1 – 4 of 4) sorted by relevance
/kernel/bpf/ |
D | net_namespace.c | 251 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in __netns_bpf_prog_query() 260 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __netns_bpf_prog_query() 262 if (copy_to_user(&uattr->query.prog_cnt, &prog_cnt, sizeof(prog_cnt))) in __netns_bpf_prog_query() 264 if (!attr->query.prog_cnt || !prog_ids || !prog_cnt) in __netns_bpf_prog_query() 268 attr->query.prog_cnt); in __netns_bpf_prog_query() 278 if (attr->query.query_flags) in netns_bpf_prog_query() 281 type = to_netns_bpf_attach_type(attr->query.attach_type); in netns_bpf_prog_query() 285 net = get_net_ns_by_fd(attr->query.target_fd); in netns_bpf_prog_query()
|
D | cgroup.c | 1022 __u32 __user *prog_attach_flags = u64_to_user_ptr(attr->query.prog_attach_flags); in __cgroup_bpf_query() 1023 bool effective_query = attr->query.query_flags & BPF_F_QUERY_EFFECTIVE; in __cgroup_bpf_query() 1024 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in __cgroup_bpf_query() 1025 enum bpf_attach_type type = attr->query.attach_type; in __cgroup_bpf_query() 1037 if (!effective_query && attr->query.prog_cnt && in __cgroup_bpf_query() 1064 if (copy_to_user(&uattr->query.attach_flags, &flags, sizeof(flags))) in __cgroup_bpf_query() 1066 if (copy_to_user(&uattr->query.prog_cnt, &total_cnt, sizeof(total_cnt))) in __cgroup_bpf_query() 1068 if (attr->query.prog_cnt == 0 || !prog_ids || !total_cnt) in __cgroup_bpf_query() 1072 if (attr->query.prog_cnt < total_cnt) { in __cgroup_bpf_query() 1073 total_cnt = attr->query.prog_cnt; in __cgroup_bpf_query() [all …]
|
D | syscall.c | 3573 #define BPF_PROG_QUERY_LAST_FIELD query.prog_attach_flags 3582 if (attr->query.query_flags & ~BPF_F_QUERY_EFFECTIVE) in bpf_prog_query() 3585 switch (attr->query.attach_type) { in bpf_prog_query()
|
/kernel/trace/ |
D | bpf_trace.c | 2201 struct perf_event_query_bpf query = {}; in perf_event_query_prog_array() local 2210 if (copy_from_user(&query, uquery, sizeof(query))) in perf_event_query_prog_array() 2213 ids_len = query.ids_len; in perf_event_query_prog_array()
|