drivers/media/rc/bpf-lirc.c
248
int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
drivers/media/rc/bpf-lirc.c
267
int lirc_prog_detach(const union bpf_attr *attr)
drivers/media/rc/bpf-lirc.c
295
int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr)
drivers/net/netkit.c
529
int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
drivers/net/netkit.c
570
int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog)
drivers/net/netkit.c
602
int netkit_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr)
drivers/net/netkit.c
774
const union bpf_attr *attr,
drivers/net/netkit.c
784
int netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
include/linux/bpf-cgroup.h
418
int cgroup_bpf_prog_attach(const union bpf_attr *attr,
include/linux/bpf-cgroup.h
420
int cgroup_bpf_prog_detach(const union bpf_attr *attr,
include/linux/bpf-cgroup.h
422
int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/bpf-cgroup.h
423
int cgroup_bpf_prog_query(const union bpf_attr *attr,
include/linux/bpf-cgroup.h
424
union bpf_attr __user *uattr);
include/linux/bpf-cgroup.h
435
static inline int cgroup_bpf_prog_attach(const union bpf_attr *attr,
include/linux/bpf-cgroup.h
442
static inline int cgroup_bpf_prog_detach(const union bpf_attr *attr,
include/linux/bpf-cgroup.h
448
static inline int cgroup_bpf_link_attach(const union bpf_attr *attr,
include/linux/bpf-cgroup.h
454
static inline int cgroup_bpf_prog_query(const union bpf_attr *attr,
include/linux/bpf-cgroup.h
455
union bpf_attr __user *uattr)
include/linux/bpf-netns.h
25
union bpf_attr;
include/linux/bpf-netns.h
29
int netns_bpf_prog_query(const union bpf_attr *attr,
include/linux/bpf-netns.h
30
union bpf_attr __user *uattr);
include/linux/bpf-netns.h
31
int netns_bpf_prog_attach(const union bpf_attr *attr,
include/linux/bpf-netns.h
33
int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype);
include/linux/bpf-netns.h
34
int netns_bpf_link_create(const union bpf_attr *attr,
include/linux/bpf-netns.h
37
static inline int netns_bpf_prog_query(const union bpf_attr *attr,
include/linux/bpf-netns.h
38
union bpf_attr __user *uattr)
include/linux/bpf-netns.h
43
static inline int netns_bpf_prog_attach(const union bpf_attr *attr,
include/linux/bpf-netns.h
49
static inline int netns_bpf_prog_detach(const union bpf_attr *attr,
include/linux/bpf-netns.h
55
static inline int netns_bpf_link_create(const union bpf_attr *attr,
include/linux/bpf.h
100
const union bpf_attr *attr,
include/linux/bpf.h
101
union bpf_attr __user *uattr);
include/linux/bpf.h
102
int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr,
include/linux/bpf.h
103
union bpf_attr __user *uattr);
include/linux/bpf.h
1093
int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
include/linux/bpf.h
1094
union bpf_attr __user *uattr);
include/linux/bpf.h
2118
int bpf_struct_ops_link_create(union bpf_attr *attr);
include/linux/bpf.h
2137
int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
include/linux/bpf.h
2138
union bpf_attr __user *uattr);
include/linux/bpf.h
2165
static inline int bpf_struct_ops_link_create(union bpf_attr *attr)
include/linux/bpf.h
2643
void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr);
include/linux/bpf.h
2645
const union bpf_attr *attr,
include/linux/bpf.h
2646
union bpf_attr __user *uattr);
include/linux/bpf.h
2648
const union bpf_attr *attr,
include/linux/bpf.h
2649
union bpf_attr __user *uattr);
include/linux/bpf.h
2651
const union bpf_attr *attr,
include/linux/bpf.h
2652
union bpf_attr __user *uattr);
include/linux/bpf.h
2779
int bpf_token_create(union bpf_attr *attr);
include/linux/bpf.h
2782
const union bpf_attr *attr,
include/linux/bpf.h
2783
union bpf_attr __user *uattr);
include/linux/bpf.h
2885
int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_prog *prog);
include/linux/bpf.h
2920
int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, bpfptr_t uattr, u32 uattr_size);
include/linux/bpf.h
2954
static inline int bpf_map_attr_numa_node(const union bpf_attr *attr)
include/linux/bpf.h
2961
int array_map_alloc_check(union bpf_attr *attr);
include/linux/bpf.h
2963
int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
include/linux/bpf.h
2964
union bpf_attr __user *uattr);
include/linux/bpf.h
2965
int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
include/linux/bpf.h
2966
union bpf_attr __user *uattr);
include/linux/bpf.h
2968
const union bpf_attr *kattr,
include/linux/bpf.h
2969
union bpf_attr __user *uattr);
include/linux/bpf.h
2971
const union bpf_attr *kattr,
include/linux/bpf.h
2972
union bpf_attr __user *uattr);
include/linux/bpf.h
2974
const union bpf_attr *kattr,
include/linux/bpf.h
2975
union bpf_attr __user *uattr);
include/linux/bpf.h
2977
const union bpf_attr *kattr,
include/linux/bpf.h
2978
union bpf_attr __user *uattr);
include/linux/bpf.h
2980
const union bpf_attr *kattr,
include/linux/bpf.h
2981
union bpf_attr __user *uattr);
include/linux/bpf.h
3184
const union bpf_attr *attr,
include/linux/bpf.h
3185
union bpf_attr __user *uattr)
include/linux/bpf.h
3260
const union bpf_attr *kattr,
include/linux/bpf.h
3261
union bpf_attr __user *uattr)
include/linux/bpf.h
3267
const union bpf_attr *kattr,
include/linux/bpf.h
3268
union bpf_attr __user *uattr)
include/linux/bpf.h
3274
const union bpf_attr *kattr,
include/linux/bpf.h
3275
union bpf_attr __user *uattr)
include/linux/bpf.h
3281
const union bpf_attr *kattr,
include/linux/bpf.h
3282
union bpf_attr __user *uattr)
include/linux/bpf.h
3288
const union bpf_attr *kattr,
include/linux/bpf.h
3289
union bpf_attr __user *uattr)
include/linux/bpf.h
3440
int bpf_prog_dev_bound_init(struct bpf_prog *prog, union bpf_attr *attr);
include/linux/bpf.h
3461
struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr);
include/linux/bpf.h
3465
const union bpf_attr *kattr,
include/linux/bpf.h
3466
union bpf_attr __user *uattr);
include/linux/bpf.h
3468
int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/bpf.h
3469
int sock_map_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype);
include/linux/bpf.h
3471
int sock_map_bpf_prog_query(const union bpf_attr *attr,
include/linux/bpf.h
3472
union bpf_attr __user *uattr);
include/linux/bpf.h
3473
int sock_map_link_create(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/bpf.h
3492
union bpf_attr *attr)
include/linux/bpf.h
3527
static inline struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr)
include/linux/bpf.h
3542
const union bpf_attr *kattr,
include/linux/bpf.h
3543
union bpf_attr __user *uattr)
include/linux/bpf.h
3549
static inline int sock_map_get_from_fd(const union bpf_attr *attr,
include/linux/bpf.h
3555
static inline int sock_map_prog_detach(const union bpf_attr *attr,
include/linux/bpf.h
3567
static inline int sock_map_bpf_prog_query(const union bpf_attr *attr,
include/linux/bpf.h
3568
union bpf_attr __user *uattr)
include/linux/bpf.h
3573
static inline int sock_map_link_create(const union bpf_attr *attr, struct bpf_prog *prog)
include/linux/bpf.h
85
int (*map_alloc_check)(union bpf_attr *attr);
include/linux/bpf.h
86
struct bpf_map *(*map_alloc)(union bpf_attr *attr);
include/linux/bpf.h
92
int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr,
include/linux/bpf.h
93
union bpf_attr __user *uattr);
include/linux/bpf.h
97
const union bpf_attr *attr,
include/linux/bpf.h
98
union bpf_attr __user *uattr);
include/linux/bpf_lirc.h
10
int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr);
include/linux/bpf_lirc.h
12
static inline int lirc_prog_attach(const union bpf_attr *attr,
include/linux/bpf_lirc.h
18
static inline int lirc_prog_detach(const union bpf_attr *attr)
include/linux/bpf_lirc.h
23
static inline int lirc_prog_query(const union bpf_attr *attr,
include/linux/bpf_lirc.h
24
union bpf_attr __user *uattr)
include/linux/bpf_lirc.h
8
int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/bpf_lirc.h
9
int lirc_prog_detach(const union bpf_attr *attr);
include/linux/bpf_local_storage.h
136
int bpf_local_storage_map_alloc_check(union bpf_attr *attr);
include/linux/bpf_local_storage.h
139
bpf_local_storage_map_alloc(union bpf_attr *attr,
include/linux/bpf_mprog.h
331
int bpf_mprog_query(const union bpf_attr *attr, union bpf_attr __user *uattr,
include/linux/btf.h
114
union bpf_attr;
include/linux/btf.h
148
int btf_new_fd(const union bpf_attr *attr, bpfptr_t uattr, u32 uattr_sz);
include/linux/btf.h
151
const union bpf_attr *attr,
include/linux/btf.h
152
union bpf_attr __user *uattr);
include/linux/lsm_hook_defs.h
431
LSM_HOOK(int, 0, bpf, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
include/linux/lsm_hook_defs.h
434
LSM_HOOK(int, 0, bpf_map_create, struct bpf_map *map, union bpf_attr *attr,
include/linux/lsm_hook_defs.h
437
LSM_HOOK(int, 0, bpf_prog_load, struct bpf_prog *prog, union bpf_attr *attr,
include/linux/lsm_hook_defs.h
440
LSM_HOOK(int, 0, bpf_token_create, struct bpf_token *token, union bpf_attr *attr,
include/linux/netdevice.h
4325
int bpf_xdp_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/security.h
2262
union bpf_attr;
include/linux/security.h
2267
extern int security_bpf(int cmd, union bpf_attr *attr, unsigned int size, bool kernel);
include/linux/security.h
2270
extern int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
include/linux/security.h
2273
extern int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
include/linux/security.h
2276
extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
include/linux/security.h
2282
static inline int security_bpf(int cmd, union bpf_attr *attr,
include/linux/security.h
2298
static inline int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
include/linux/security.h
2307
static inline int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
include/linux/security.h
2316
static inline int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
include/linux/skbuff.h
283
union bpf_attr;
include/linux/syscalls.h
67
union bpf_attr;
include/linux/syscalls.h
939
asmlinkage long sys_bpf(int cmd, union bpf_attr __user *attr, unsigned int size);
include/linux/trace_events.h
18
union bpf_attr;
include/linux/trace_events.h
784
int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/trace_events.h
785
int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/trace_events.h
829
bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
include/linux/trace_events.h
834
bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
include/net/netfilter/nf_bpf_link.h
11
static inline int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
include/net/netfilter/nf_bpf_link.h
9
int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/net/netkit.h
10
int netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/net/netkit.h
11
int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog);
include/net/netkit.h
12
int netkit_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr);
include/net/netkit.h
15
static inline int netkit_prog_attach(const union bpf_attr *attr,
include/net/netkit.h
21
static inline int netkit_link_attach(const union bpf_attr *attr,
include/net/netkit.h
27
static inline int netkit_prog_detach(const union bpf_attr *attr,
include/net/netkit.h
33
static inline int netkit_prog_query(const union bpf_attr *attr,
include/net/netkit.h
34
union bpf_attr __user *uattr)
include/net/netkit.h
9
int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/net/tcx.h
163
int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/net/tcx.h
164
int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/net/tcx.h
165
int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog);
include/net/tcx.h
168
int tcx_prog_query(const union bpf_attr *attr,
include/net/tcx.h
169
union bpf_attr __user *uattr);
include/net/tcx.h
178
static inline int tcx_prog_attach(const union bpf_attr *attr,
include/net/tcx.h
184
static inline int tcx_link_attach(const union bpf_attr *attr,
include/net/tcx.h
190
static inline int tcx_prog_detach(const union bpf_attr *attr,
include/net/tcx.h
196
static inline int tcx_prog_query(const union bpf_attr *attr,
include/net/tcx.h
197
union bpf_attr __user *uattr)
kernel/bpf/arena.c
176
static struct bpf_map *arena_map_alloc(union bpf_attr *attr)
kernel/bpf/arraymap.c
1172
static struct bpf_map *prog_array_map_alloc(union bpf_attr *attr)
kernel/bpf/arraymap.c
1374
static struct bpf_map *array_of_map_alloc(union bpf_attr *attr)
kernel/bpf/arraymap.c
53
int array_map_alloc_check(union bpf_attr *attr)
kernel/bpf/arraymap.c
84
static struct bpf_map *array_map_alloc(union bpf_attr *attr)
kernel/bpf/arraymap.c
851
static int fd_array_map_alloc_check(union bpf_attr *attr)
kernel/bpf/bloom_filter.c
84
static int bloom_map_alloc_check(union bpf_attr *attr)
kernel/bpf/bloom_filter.c
95
static struct bpf_map *bloom_map_alloc(union bpf_attr *attr)
kernel/bpf/bpf_cgrp_storage.c
115
static struct bpf_map *cgroup_storage_map_alloc(union bpf_attr *attr)
kernel/bpf/bpf_inode_storage.c
180
static struct bpf_map *inode_storage_map_alloc(union bpf_attr *attr)
kernel/bpf/bpf_insn_array.c
26
static int insn_array_alloc_check(union bpf_attr *attr)
kernel/bpf/bpf_insn_array.c
44
static struct bpf_map *insn_array_alloc(union bpf_attr *attr)
kernel/bpf/bpf_iter.c
504
int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr,
kernel/bpf/bpf_local_storage.c
788
int bpf_local_storage_map_alloc_check(union bpf_attr *attr)
kernel/bpf/bpf_local_storage.c
859
bpf_local_storage_map_alloc(union bpf_attr *attr,
kernel/bpf/bpf_struct_ops.c
1020
static int bpf_struct_ops_map_alloc_check(union bpf_attr *attr)
kernel/bpf/bpf_struct_ops.c
1042
static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr)
kernel/bpf/bpf_struct_ops.c
1359
int bpf_struct_ops_link_create(union bpf_attr *attr)
kernel/bpf/bpf_task_storage.c
213
static struct bpf_map *task_storage_map_alloc(union bpf_attr *attr)
kernel/bpf/btf.c
5876
if (uattr_size >= offsetofend(union bpf_attr, btf_log_true_size) &&
kernel/bpf/btf.c
5877
copy_to_bpfptr_offset(uattr, offsetof(union bpf_attr, btf_log_true_size),
kernel/bpf/btf.c
5884
static struct btf *btf_parse(const union bpf_attr *attr, bpfptr_t uattr, u32 uattr_size)
kernel/bpf/btf.c
8149
int btf_new_fd(const union bpf_attr *attr, bpfptr_t uattr, u32 uattr_size)
kernel/bpf/btf.c
8190
const union bpf_attr *attr,
kernel/bpf/btf.c
8191
union bpf_attr __user *uattr)
kernel/bpf/cgroup.c
1210
static int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
kernel/bpf/cgroup.c
1211
union bpf_attr __user *uattr)
kernel/bpf/cgroup.c
1314
static int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
kernel/bpf/cgroup.c
1315
union bpf_attr __user *uattr)
kernel/bpf/cgroup.c
1325
int cgroup_bpf_prog_attach(const union bpf_attr *attr,
kernel/bpf/cgroup.c
1355
int cgroup_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype)
kernel/bpf/cgroup.c
1477
int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/cgroup.c
1522
int cgroup_bpf_prog_query(const union bpf_attr *attr,
kernel/bpf/cgroup.c
1523
union bpf_attr __user *uattr)
kernel/bpf/cpumap.c
85
static struct bpf_map *cpu_map_alloc(union bpf_attr *attr)
kernel/bpf/devmap.c
111
static int dev_map_alloc_check(union bpf_attr *attr)
kernel/bpf/devmap.c
136
static int dev_map_init_map(struct bpf_dtab *dtab, union bpf_attr *attr)
kernel/bpf/devmap.c
164
static struct bpf_map *dev_map_alloc(union bpf_attr *attr)
kernel/bpf/hashtab.c
1767
const union bpf_attr *attr,
kernel/bpf/hashtab.c
1768
union bpf_attr __user *uattr,
kernel/bpf/hashtab.c
2007
htab_percpu_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr,
kernel/bpf/hashtab.c
2008
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2016
const union bpf_attr *attr,
kernel/bpf/hashtab.c
2017
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2024
htab_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr,
kernel/bpf/hashtab.c
2025
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2033
const union bpf_attr *attr,
kernel/bpf/hashtab.c
2034
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2042
const union bpf_attr *attr,
kernel/bpf/hashtab.c
2043
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2051
const union bpf_attr *attr,
kernel/bpf/hashtab.c
2052
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2059
htab_lru_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr,
kernel/bpf/hashtab.c
2060
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2068
const union bpf_attr *attr,
kernel/bpf/hashtab.c
2069
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2597
static int fd_htab_map_alloc_check(union bpf_attr *attr)
kernel/bpf/hashtab.c
2669
static struct bpf_map *htab_of_map_alloc(union bpf_attr *attr)
kernel/bpf/hashtab.c
407
static int htab_map_alloc_check(union bpf_attr *attr)
kernel/bpf/hashtab.c
542
static struct bpf_map *htab_map_alloc(union bpf_attr *attr)
kernel/bpf/local_storage.c
296
static struct bpf_map *cgroup_storage_map_alloc(union bpf_attr *attr)
kernel/bpf/lpm_trie.c
571
static struct bpf_map *trie_alloc(union bpf_attr *attr)
kernel/bpf/mprog.c
395
int bpf_mprog_query(const union bpf_attr *attr, union bpf_attr __user *uattr,
kernel/bpf/net_namespace.c
245
static int __netns_bpf_prog_query(const union bpf_attr *attr,
kernel/bpf/net_namespace.c
246
union bpf_attr __user *uattr,
kernel/bpf/net_namespace.c
270
int netns_bpf_prog_query(const union bpf_attr *attr,
kernel/bpf/net_namespace.c
271
union bpf_attr __user *uattr)
kernel/bpf/net_namespace.c
296
int netns_bpf_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/net_namespace.c
382
int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype)
kernel/bpf/net_namespace.c
476
int netns_bpf_link_create(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/offload.c
219
int bpf_prog_dev_bound_init(struct bpf_prog *prog, union bpf_attr *attr)
kernel/bpf/offload.c
504
struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr)
kernel/bpf/queue_stack_maps.c
47
static int queue_stack_map_alloc_check(union bpf_attr *attr)
kernel/bpf/queue_stack_maps.c
65
static struct bpf_map *queue_stack_map_alloc(union bpf_attr *attr)
kernel/bpf/reuseport_array.c
149
static struct bpf_map *reuseport_array_alloc(union bpf_attr *attr)
kernel/bpf/reuseport_array.c
41
static int reuseport_array_alloc_check(union bpf_attr *attr)
kernel/bpf/ringbuf.c
194
static struct bpf_map *ringbuf_map_alloc(union bpf_attr *attr)
kernel/bpf/stackmap.c
92
static struct bpf_map *stack_map_alloc(union bpf_attr *attr)
kernel/bpf/syscall.c
1209
offsetof(union bpf_attr, CMD##_LAST_FIELD) - \
kernel/bpf/syscall.c
1369
static int map_create(union bpf_attr *attr, bpfptr_t uattr)
kernel/bpf/syscall.c
1711
static int map_lookup_elem(union bpf_attr *attr)
kernel/bpf/syscall.c
1773
static int map_update_elem(union bpf_attr *attr, bpfptr_t uattr)
kernel/bpf/syscall.c
1826
static int map_delete_elem(union bpf_attr *attr, bpfptr_t uattr)
kernel/bpf/syscall.c
1879
static int map_get_next_key(union bpf_attr *attr)
kernel/bpf/syscall.c
1936
const union bpf_attr *attr,
kernel/bpf/syscall.c
1937
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
1992
const union bpf_attr *attr,
kernel/bpf/syscall.c
1993
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
2050
const union bpf_attr *attr,
kernel/bpf/syscall.c
2051
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
2142
static int map_lookup_and_delete_elem(union bpf_attr *attr)
kernel/bpf/syscall.c
2233
static int map_freeze(const union bpf_attr *attr)
kernel/bpf/syscall.c
2633
static void bpf_prog_load_fixup_attach_type(union bpf_attr *attr)
kernel/bpf/syscall.c
2808
static int bpf_prog_verify_signature(struct bpf_prog *prog, union bpf_attr *attr,
kernel/bpf/syscall.c
2871
static int bpf_prog_load(union bpf_attr *attr, bpfptr_t uattr, u32 uattr_size)
kernel/bpf/syscall.c
3150
static int bpf_obj_pin(const union bpf_attr *attr)
kernel/bpf/syscall.c
3166
static int bpf_obj_get(const union bpf_attr *attr)
kernel/bpf/syscall.c
4192
static int bpf_perf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/syscall.c
4238
static int bpf_perf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/syscall.c
4317
static int bpf_raw_tracepoint_open(const union bpf_attr *attr)
kernel/bpf/syscall.c
436
void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr)
kernel/bpf/syscall.c
4518
static int bpf_prog_attach(const union bpf_attr *attr)
kernel/bpf/syscall.c
4587
static int bpf_prog_detach(const union bpf_attr *attr)
kernel/bpf/syscall.c
4657
static int bpf_prog_query(const union bpf_attr *attr,
kernel/bpf/syscall.c
4658
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
4721
static int bpf_prog_test_run(const union bpf_attr *attr,
kernel/bpf/syscall.c
4722
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
4751
static int bpf_obj_get_next_id(const union bpf_attr *attr,
kernel/bpf/syscall.c
4752
union bpf_attr __user *uattr,
kernel/bpf/syscall.c
4834
static int bpf_prog_get_fd_by_id(const union bpf_attr *attr)
kernel/bpf/syscall.c
4859
static int bpf_map_get_fd_by_id(const union bpf_attr *attr)
kernel/bpf/syscall.c
5014
const union bpf_attr *attr,
kernel/bpf/syscall.c
5015
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5303
const union bpf_attr *attr,
kernel/bpf/syscall.c
5304
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5375
const union bpf_attr *attr,
kernel/bpf/syscall.c
5376
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5391
const union bpf_attr *attr,
kernel/bpf/syscall.c
5392
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5429
const union bpf_attr *attr,
kernel/bpf/syscall.c
5430
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5444
static int bpf_obj_get_info_by_fd(const union bpf_attr *attr,
kernel/bpf/syscall.c
5445
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5473
static int bpf_btf_load(const union bpf_attr *attr, bpfptr_t uattr, __u32 uattr_size)
kernel/bpf/syscall.c
5505
static int bpf_btf_get_fd_by_id(const union bpf_attr *attr)
kernel/bpf/syscall.c
5535
static int bpf_task_fd_query_copy(const union bpf_attr *attr,
kernel/bpf/syscall.c
5536
union bpf_attr __user *uattr,
kernel/bpf/syscall.c
5573
static int bpf_task_fd_query(const union bpf_attr *attr,
kernel/bpf/syscall.c
5574
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5656
static int bpf_map_do_batch(const union bpf_attr *attr,
kernel/bpf/syscall.c
5657
union bpf_attr __user *uattr,
kernel/bpf/syscall.c
5702
static int link_create(union bpf_attr *attr, bpfptr_t uattr)
kernel/bpf/syscall.c
5806
static int link_update_map(struct bpf_link *link, union bpf_attr *attr)
kernel/bpf/syscall.c
5837
static int link_update(union bpf_attr *attr)
kernel/bpf/syscall.c
5895
static int link_detach(union bpf_attr *attr)
kernel/bpf/syscall.c
5965
static int bpf_link_get_fd_by_id(const union bpf_attr *attr)
kernel/bpf/syscall.c
6024
static int bpf_enable_stats(union bpf_attr *attr)
kernel/bpf/syscall.c
6044
static int bpf_iter_create(union bpf_attr *attr)
kernel/bpf/syscall.c
6067
static int bpf_prog_bind_map(union bpf_attr *attr)
kernel/bpf/syscall.c
6133
static int token_create(union bpf_attr *attr)
kernel/bpf/syscall.c
6147
static int prog_stream_read(union bpf_attr *attr)
kernel/bpf/syscall.c
6169
static int prog_assoc_struct_ops(union bpf_attr *attr)
kernel/bpf/syscall.c
6212
union bpf_attr attr;
kernel/bpf/syscall.c
6360
SYSCALL_DEFINE3(bpf, int, cmd, union bpf_attr __user *, uattr, unsigned int, size)
kernel/bpf/syscall.c
6377
BPF_CALL_3(bpf_sys_bpf, int, cmd, union bpf_attr *, attr, u32, attr_size)
kernel/bpf/syscall.c
6402
int kern_sys_bpf(int cmd, union bpf_attr *attr, unsigned int size);
kernel/bpf/syscall.c
6404
int kern_sys_bpf(int cmd, union bpf_attr *attr, unsigned int size)
kernel/bpf/tcx.c
10
int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/tcx.c
122
int tcx_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr)
kernel/bpf/tcx.c
300
const union bpf_attr *attr,
kernel/bpf/tcx.c
310
int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/tcx.c
59
int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/token.c
112
int bpf_token_create(union bpf_attr *attr)
kernel/bpf/token.c
198
const union bpf_attr *attr,
kernel/bpf/token.c
199
union bpf_attr __user *uattr)
kernel/bpf/verifier.c
19114
const union bpf_attr *attr,
kernel/bpf/verifier.c
19161
offsetof(union bpf_attr, func_info_rec_size),
kernel/bpf/verifier.c
19216
const union bpf_attr *attr,
kernel/bpf/verifier.c
19308
const union bpf_attr *attr,
kernel/bpf/verifier.c
19353
offsetof(union bpf_attr, line_info_rec_size),
kernel/bpf/verifier.c
19436
const union bpf_attr *attr,
kernel/bpf/verifier.c
19476
offsetof(union bpf_attr, core_relo_rec_size),
kernel/bpf/verifier.c
19505
const union bpf_attr *attr,
kernel/bpf/verifier.c
19533
const union bpf_attr *attr,
kernel/bpf/verifier.c
22417
const union bpf_attr *attr)
kernel/bpf/verifier.c
25493
static int process_fd_array(struct bpf_verifier_env *env, union bpf_attr *attr, bpfptr_t uattr)
kernel/bpf/verifier.c
25954
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr, bpfptr_t uattr, __u32 uattr_size)
kernel/bpf/verifier.c
26162
if (uattr_size >= offsetofend(union bpf_attr, log_true_size) &&
kernel/bpf/verifier.c
26163
copy_to_bpfptr_offset(uattr, offsetof(union bpf_attr, log_true_size),
kernel/trace/bpf_trace.c
1786
const union bpf_attr *kattr,
kernel/trace/bpf_trace.c
1787
union bpf_attr __user *uattr)
kernel/trace/bpf_trace.c
2733
int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/trace/bpf_trace.c
2889
int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/trace/bpf_trace.c
3172
int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/trace/bpf_trace.c
3323
int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
net/bpf/bpf_dummy_struct_ops.c
129
int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
net/bpf/bpf_dummy_struct_ops.c
130
union bpf_attr __user *uattr)
net/bpf/bpf_dummy_struct_ops.c
28
dummy_ops_init_args(const union bpf_attr *kattr, unsigned int nr)
net/bpf/test_run.c
1266
int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
net/bpf/test_run.c
1267
union bpf_attr __user *uattr)
net/bpf/test_run.c
1444
const union bpf_attr *kattr,
net/bpf/test_run.c
1445
union bpf_attr __user *uattr)
net/bpf/test_run.c
1512
int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, const union bpf_attr *kattr,
net/bpf/test_run.c
1513
union bpf_attr __user *uattr)
net/bpf/test_run.c
1613
const union bpf_attr *kattr,
net/bpf/test_run.c
1614
union bpf_attr __user *uattr)
net/bpf/test_run.c
1711
const union bpf_attr *kattr,
net/bpf/test_run.c
1712
union bpf_attr __user *uattr)
net/bpf/test_run.c
437
static int bpf_test_finish(const union bpf_attr *kattr,
net/bpf/test_run.c
438
union bpf_attr __user *uattr, const void *data,
net/bpf/test_run.c
651
static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size,
net/bpf/test_run.c
674
const union bpf_attr *kattr,
net/bpf/test_run.c
675
union bpf_attr __user *uattr)
net/bpf/test_run.c
747
const union bpf_attr *kattr,
net/bpf/test_run.c
748
union bpf_attr __user *uattr)
net/bpf/test_run.c
804
static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size)
net/bpf/test_run.c
835
static int bpf_ctx_finish(const union bpf_attr *kattr,
net/bpf/test_run.c
836
union bpf_attr __user *uattr, const void *data,
net/bpf/test_run.c
985
int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
net/bpf/test_run.c
986
union bpf_attr __user *uattr)
net/core/bpf_sk_storage.c
69
static struct bpf_map *bpf_sk_storage_map_alloc(union bpf_attr *attr)
net/core/dev.c
10675
int bpf_xdp_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
net/core/sock_map.c
1096
static struct bpf_map *sock_hash_alloc(union bpf_attr *attr)
net/core/sock_map.c
1555
int sock_map_bpf_prog_query(const union bpf_attr *attr,
net/core/sock_map.c
1556
union bpf_attr __user *uattr)
net/core/sock_map.c
1842
int sock_map_link_create(const union bpf_attr *attr, struct bpf_prog *prog)
net/core/sock_map.c
39
static struct bpf_map *sock_map_alloc(union bpf_attr *attr)
net/core/sock_map.c
68
int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog)
net/core/sock_map.c
86
int sock_map_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype)
net/netfilter/nf_bpf_link.c
180
static int bpf_nf_check_pf_and_hooks(const union bpf_attr *attr)
net/netfilter/nf_bpf_link.c
210
int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
net/xdp/xskmap.c
64
static struct bpf_map *xsk_map_alloc(union bpf_attr *attr)
security/security.c
5175
int security_bpf(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
security/security.c
5221
int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
security/security.c
5249
int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
security/security.c
5275
int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
security/selinux/hooks.c
7045
static int selinux_bpf(int cmd, union bpf_attr *attr,
security/selinux/hooks.c
7153
static int selinux_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
security/selinux/hooks.c
7171
static int selinux_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
security/selinux/hooks.c
7193
union bpf_attr *attr,
tools/bpf/bpftool/common.c
109
union bpf_attr attr;
tools/build/feature/test-bpf.c
30
union bpf_attr attr;
tools/lib/bpf/bpf.c
1029
const size_t attr_sz = offsetofend(union bpf_attr, test);
tools/lib/bpf/bpf.c
1030
union bpf_attr attr;
tools/lib/bpf/bpf.c
1064
const size_t attr_sz = offsetofend(union bpf_attr, open_flags);
tools/lib/bpf/bpf.c
1065
union bpf_attr attr;
tools/lib/bpf/bpf.c
108
const size_t attr_sz = offsetofend(union bpf_attr, prog_token_fd);
tools/lib/bpf/bpf.c
1101
const size_t attr_sz = offsetofend(union bpf_attr, open_flags);
tools/lib/bpf/bpf.c
1102
union bpf_attr attr;
tools/lib/bpf/bpf.c
1124
const size_t attr_sz = offsetofend(union bpf_attr, open_flags);
tools/lib/bpf/bpf.c
1125
union bpf_attr attr;
tools/lib/bpf/bpf.c
114
union bpf_attr attr;
tools/lib/bpf/bpf.c
1147
const size_t attr_sz = offsetofend(union bpf_attr, fd_by_id_token_fd);
tools/lib/bpf/bpf.c
1148
union bpf_attr attr;
tools/lib/bpf/bpf.c
1171
const size_t attr_sz = offsetofend(union bpf_attr, open_flags);
tools/lib/bpf/bpf.c
1172
union bpf_attr attr;
tools/lib/bpf/bpf.c
1193
const size_t attr_sz = offsetofend(union bpf_attr, info);
tools/lib/bpf/bpf.c
1194
union bpf_attr attr;
tools/lib/bpf/bpf.c
1230
const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint);
tools/lib/bpf/bpf.c
1231
union bpf_attr attr;
tools/lib/bpf/bpf.c
1255
const size_t attr_sz = offsetofend(union bpf_attr, btf_token_fd);
tools/lib/bpf/bpf.c
1256
union bpf_attr attr;
tools/lib/bpf/bpf.c
1311
const size_t attr_sz = offsetofend(union bpf_attr, task_fd_query);
tools/lib/bpf/bpf.c
1312
union bpf_attr attr;
tools/lib/bpf/bpf.c
1335
const size_t attr_sz = offsetofend(union bpf_attr, enable_stats);
tools/lib/bpf/bpf.c
1336
union bpf_attr attr;
tools/lib/bpf/bpf.c
1349
const size_t attr_sz = offsetofend(union bpf_attr, prog_bind_map);
tools/lib/bpf/bpf.c
1350
union bpf_attr attr;
tools/lib/bpf/bpf.c
1367
const size_t attr_sz = offsetofend(union bpf_attr, token_create);
tools/lib/bpf/bpf.c
1368
union bpf_attr attr;
tools/lib/bpf/bpf.c
1385
const size_t attr_sz = offsetofend(union bpf_attr, prog_stream_read);
tools/lib/bpf/bpf.c
1386
union bpf_attr attr;
tools/lib/bpf/bpf.c
1405
const size_t attr_sz = offsetofend(union bpf_attr, prog_assoc_struct_ops);
tools/lib/bpf/bpf.c
1406
union bpf_attr attr;
tools/lib/bpf/bpf.c
175
const size_t attr_sz = offsetofend(union bpf_attr, excl_prog_hash_size);
tools/lib/bpf/bpf.c
176
union bpf_attr attr;
tools/lib/bpf/bpf.c
243
const size_t attr_sz = offsetofend(union bpf_attr, keyring_id);
tools/lib/bpf/bpf.c
249
union bpf_attr attr;
tools/lib/bpf/bpf.c
393
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
394
union bpf_attr attr;
tools/lib/bpf/bpf.c
409
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
410
union bpf_attr attr;
tools/lib/bpf/bpf.c
424
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
425
union bpf_attr attr;
tools/lib/bpf/bpf.c
440
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
441
union bpf_attr attr;
tools/lib/bpf/bpf.c
455
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
456
union bpf_attr attr;
tools/lib/bpf/bpf.c
471
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
472
union bpf_attr attr;
tools/lib/bpf/bpf.c
485
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
486
union bpf_attr attr;
tools/lib/bpf/bpf.c
500
const size_t attr_sz = offsetofend(union bpf_attr, next_key);
tools/lib/bpf/bpf.c
501
union bpf_attr attr;
tools/lib/bpf/bpf.c
515
const size_t attr_sz = offsetofend(union bpf_attr, map_fd);
tools/lib/bpf/bpf.c
516
union bpf_attr attr;
tools/lib/bpf/bpf.c
531
const size_t attr_sz = offsetofend(union bpf_attr, batch);
tools/lib/bpf/bpf.c
532
union bpf_attr attr;
tools/lib/bpf/bpf.c
587
const size_t attr_sz = offsetofend(union bpf_attr, path_fd);
tools/lib/bpf/bpf.c
588
union bpf_attr attr;
tools/lib/bpf/bpf.c
616
const size_t attr_sz = offsetofend(union bpf_attr, path_fd);
tools/lib/bpf/bpf.c
617
union bpf_attr attr;
tools/lib/bpf/bpf.c
645
const size_t attr_sz = offsetofend(union bpf_attr, expected_revision);
tools/lib/bpf/bpf.c
648
union bpf_attr attr;
tools/lib/bpf/bpf.c
683
const size_t attr_sz = offsetofend(union bpf_attr, expected_revision);
tools/lib/bpf/bpf.c
686
union bpf_attr attr;
tools/lib/bpf/bpf.c
72
static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr,
tools/lib/bpf/bpf.c
731
const size_t attr_sz = offsetofend(union bpf_attr, link_create);
tools/lib/bpf/bpf.c
734
union bpf_attr attr;
tools/lib/bpf/bpf.c
78
static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr,
tools/lib/bpf/bpf.c
87
int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts)
tools/lib/bpf/bpf.c
929
const size_t attr_sz = offsetofend(union bpf_attr, link_detach);
tools/lib/bpf/bpf.c
930
union bpf_attr attr;
tools/lib/bpf/bpf.c
943
const size_t attr_sz = offsetofend(union bpf_attr, link_update);
tools/lib/bpf/bpf.c
944
union bpf_attr attr;
tools/lib/bpf/bpf.c
968
const size_t attr_sz = offsetofend(union bpf_attr, iter_create);
tools/lib/bpf/bpf.c
969
union bpf_attr attr;
tools/lib/bpf/bpf.c
982
const size_t attr_sz = offsetofend(union bpf_attr, query);
tools/lib/bpf/bpf.c
983
union bpf_attr attr;
tools/lib/bpf/features.c
24
const size_t attr_sz = offsetofend(union bpf_attr, prog_token_fd);
tools/lib/bpf/features.c
29
union bpf_attr attr;
tools/lib/bpf/gen_loader.c
1045
int attr_size = offsetofend(union bpf_attr, core_relo_rec_size);
tools/lib/bpf/gen_loader.c
1046
union bpf_attr attr;
tools/lib/bpf/gen_loader.c
1137
offsetof(union bpf_attr, attach_btf_id)));
tools/lib/bpf/gen_loader.c
1140
offsetof(union bpf_attr, attach_btf_obj_fd)));
tools/lib/bpf/gen_loader.c
1163
int attr_size = offsetofend(union bpf_attr, flags);
tools/lib/bpf/gen_loader.c
1165
union bpf_attr attr;
tools/lib/bpf/gen_loader.c
1211
int attr_size = offsetofend(union bpf_attr, flags);
tools/lib/bpf/gen_loader.c
1213
union bpf_attr attr;
tools/lib/bpf/gen_loader.c
1239
int attr_size = offsetofend(union bpf_attr, map_fd);
tools/lib/bpf/gen_loader.c
1241
union bpf_attr attr;
tools/lib/bpf/gen_loader.c
43
#define attr_field(attr, field) (attr + offsetof(union bpf_attr, field))
tools/lib/bpf/gen_loader.c
475
int attr_size = offsetofend(union bpf_attr, btf_log_level);
tools/lib/bpf/gen_loader.c
477
union bpf_attr attr;
tools/lib/bpf/gen_loader.c
510
int attr_size = offsetofend(union bpf_attr, map_extra);
tools/lib/bpf/gen_loader.c
513
union bpf_attr attr;
tools/lib/bpf/libbpf_internal.h
735
int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts);
tools/lib/bpf/skel_internal.h
237
const size_t attr_sz = offsetofend(union bpf_attr, excl_prog_hash_size);
tools/lib/bpf/skel_internal.h
238
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
257
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/skel_internal.h
258
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
271
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/skel_internal.h
272
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
283
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/skel_internal.h
284
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
294
const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint.prog_fd);
tools/lib/bpf/skel_internal.h
295
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
307
const size_t attr_sz = offsetofend(union bpf_attr, link_create.iter_info_len);
tools/lib/bpf/skel_internal.h
308
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
320
const size_t attr_sz = offsetofend(union bpf_attr, info);
tools/lib/bpf/skel_internal.h
324
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
339
const size_t attr_sz = offsetofend(union bpf_attr, map_fd);
tools/lib/bpf/skel_internal.h
340
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
355
const size_t prog_load_attr_sz = offsetofend(union bpf_attr, keyring_id);
tools/lib/bpf/skel_internal.h
356
const size_t test_run_attr_sz = offsetofend(union bpf_attr, test);
tools/lib/bpf/skel_internal.h
358
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
81
static inline int skel_sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr,
tools/testing/selftests/bpf/prog_tests/btf.c
6844
union bpf_attr attr = {};
tools/testing/selftests/bpf/prog_tests/core_reloc_raw.c
70
union bpf_attr attr;
tools/testing/selftests/bpf/prog_tests/obj_name.c
25
union bpf_attr attr;
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2461
const size_t attr_size = offsetofend(union bpf_attr, query);
tools/testing/selftests/bpf/prog_tests/tc_opts.c
2467
union bpf_attr attr;
tools/testing/selftests/bpf/progs/rcu_read_lock.c
256
int BPF_PROG(inproper_sleepable_kfunc, int cmd, union bpf_attr *attr, unsigned int size,
tools/testing/selftests/bpf/progs/syscall.c
111
static union bpf_attr map_create_attr = {
tools/testing/selftests/bpf/progs/syscall.c
118
static union bpf_attr map_update_attr = { .map_fd = 1, };
tools/testing/selftests/bpf/progs/syscall.c
121
static union bpf_attr prog_load_attr = {
tools/testing/selftests/bpf/progs/syscall.c
165
const int attr_sz = sizeof(union bpf_attr);
tools/testing/selftests/bpf/progs/syscall.c
166
union bpf_attr *attr;
tools/testing/selftests/bpf/progs/syscall.c
40
__type(value, union bpf_attr);
tools/testing/selftests/bpf/progs/syscall.c
90
static union bpf_attr btf_load_attr = {
tools/testing/selftests/bpf/progs/test_cgroup1_hierarchy.c
54
int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
tools/testing/selftests/bpf/progs/test_cgroup1_hierarchy.c
60
int BPF_PROG(lsm_s_run, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
tools/testing/selftests/bpf/progs/test_kernel_flag.c
19
int BPF_PROG(bpf, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
tools/testing/selftests/bpf/progs/test_kfunc_dynptr_param.c
39
int BPF_PROG(not_valid_dynptr, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
tools/testing/selftests/bpf/progs/test_kfunc_dynptr_param.c
49
int BPF_PROG(not_ptr_to_stack, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
tools/testing/selftests/bpf/progs/test_kfunc_dynptr_param.c
57
int BPF_PROG(dynptr_data_null, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
tools/testing/selftests/bpf/progs/test_lookup_key.c
26
int BPF_PROG(bpf, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
tools/testing/selftests/bpf/progs/test_ptr_untrusted.c
10
int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
tools/testing/selftests/bpf/progs/test_task_under_cgroup.c
52
int BPF_PROG(lsm_run, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
tools/testing/selftests/bpf/progs/test_verify_pkcs7_sig.c
40
int BPF_PROG(bpf, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
tools/testing/selftests/bpf/progs/verifier_bpf_fastcall.c
873
[btf_id]"r"(bpf_core_type_id_kernel(union bpf_attr))
tools/testing/selftests/net/psock_fanout.c
188
union bpf_attr attr;
tools/testing/selftests/net/reuseport_bpf.c
108
union bpf_attr attr;
tools/testing/selftests/net/reuseport_bpf.c
347
union bpf_attr eprog;
tools/testing/selftests/net/reuseport_bpf_numa.c
85
union bpf_attr attr;