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
1000
int netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
drivers/net/netkit.c
745
int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog)
drivers/net/netkit.c
786
int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog)
drivers/net/netkit.c
818
int netkit_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr)
drivers/net/netkit.c
990
const union bpf_attr *attr,
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, u32 uattr_size);
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
101
const union bpf_attr *attr,
include/linux/bpf.h
102
union bpf_attr __user *uattr);
include/linux/bpf.h
104
const union bpf_attr *attr,
include/linux/bpf.h
105
union bpf_attr __user *uattr);
include/linux/bpf.h
106
int (*map_delete_batch)(struct bpf_map *map, const union bpf_attr *attr,
include/linux/bpf.h
107
union bpf_attr __user *uattr);
include/linux/bpf.h
1137
int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr,
include/linux/bpf.h
1138
union bpf_attr __user *uattr);
include/linux/bpf.h
2240
int bpf_struct_ops_link_create(union bpf_attr *attr);
include/linux/bpf.h
2262
int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
include/linux/bpf.h
2263
union bpf_attr __user *uattr);
include/linux/bpf.h
2290
static inline int bpf_struct_ops_link_create(union bpf_attr *attr)
include/linux/bpf.h
2766
void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr);
include/linux/bpf.h
2768
const union bpf_attr *attr,
include/linux/bpf.h
2769
union bpf_attr __user *uattr);
include/linux/bpf.h
2771
const union bpf_attr *attr,
include/linux/bpf.h
2772
union bpf_attr __user *uattr);
include/linux/bpf.h
2774
const union bpf_attr *attr,
include/linux/bpf.h
2775
union bpf_attr __user *uattr);
include/linux/bpf.h
2905
int bpf_token_create(union bpf_attr *attr);
include/linux/bpf.h
2908
const union bpf_attr *attr,
include/linux/bpf.h
2909
union bpf_attr __user *uattr);
include/linux/bpf.h
3011
int bpf_iter_link_attach(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_prog *prog);
include/linux/bpf.h
3047
int bpf_check(struct bpf_prog **fp, union bpf_attr *attr, bpfptr_t uattr,
include/linux/bpf.h
3088
static inline int bpf_map_attr_numa_node(const union bpf_attr *attr)
include/linux/bpf.h
3095
int array_map_alloc_check(union bpf_attr *attr);
include/linux/bpf.h
3097
int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
include/linux/bpf.h
3098
union bpf_attr __user *uattr);
include/linux/bpf.h
3099
int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
include/linux/bpf.h
3100
union bpf_attr __user *uattr);
include/linux/bpf.h
3102
const union bpf_attr *kattr,
include/linux/bpf.h
3103
union bpf_attr __user *uattr);
include/linux/bpf.h
3105
const union bpf_attr *kattr,
include/linux/bpf.h
3106
union bpf_attr __user *uattr);
include/linux/bpf.h
3108
const union bpf_attr *kattr,
include/linux/bpf.h
3109
union bpf_attr __user *uattr);
include/linux/bpf.h
3111
const union bpf_attr *kattr,
include/linux/bpf.h
3112
union bpf_attr __user *uattr);
include/linux/bpf.h
3114
const union bpf_attr *kattr,
include/linux/bpf.h
3115
union bpf_attr __user *uattr);
include/linux/bpf.h
3374
const union bpf_attr *attr,
include/linux/bpf.h
3375
union bpf_attr __user *uattr)
include/linux/bpf.h
3450
const union bpf_attr *kattr,
include/linux/bpf.h
3451
union bpf_attr __user *uattr)
include/linux/bpf.h
3457
const union bpf_attr *kattr,
include/linux/bpf.h
3458
union bpf_attr __user *uattr)
include/linux/bpf.h
3464
const union bpf_attr *kattr,
include/linux/bpf.h
3465
union bpf_attr __user *uattr)
include/linux/bpf.h
3471
const union bpf_attr *kattr,
include/linux/bpf.h
3472
union bpf_attr __user *uattr)
include/linux/bpf.h
3478
const union bpf_attr *kattr,
include/linux/bpf.h
3479
union bpf_attr __user *uattr)
include/linux/bpf.h
3630
int bpf_prog_dev_bound_init(struct bpf_prog *prog, union bpf_attr *attr);
include/linux/bpf.h
3651
struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr);
include/linux/bpf.h
3655
const union bpf_attr *kattr,
include/linux/bpf.h
3656
union bpf_attr __user *uattr);
include/linux/bpf.h
3658
int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/bpf.h
3659
int sock_map_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype);
include/linux/bpf.h
3661
int sock_map_bpf_prog_query(const union bpf_attr *attr,
include/linux/bpf.h
3662
union bpf_attr __user *uattr);
include/linux/bpf.h
3663
int sock_map_link_create(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/bpf.h
3682
union bpf_attr *attr)
include/linux/bpf.h
3717
static inline struct bpf_map *bpf_map_offload_map_alloc(union bpf_attr *attr)
include/linux/bpf.h
3732
const union bpf_attr *kattr,
include/linux/bpf.h
3733
union bpf_attr __user *uattr)
include/linux/bpf.h
3739
static inline int sock_map_get_from_fd(const union bpf_attr *attr,
include/linux/bpf.h
3745
static inline int sock_map_prog_detach(const union bpf_attr *attr,
include/linux/bpf.h
3757
static inline int sock_map_bpf_prog_query(const union bpf_attr *attr,
include/linux/bpf.h
3758
union bpf_attr __user *uattr)
include/linux/bpf.h
3763
static inline int sock_map_link_create(const union bpf_attr *attr, struct bpf_prog *prog)
include/linux/bpf.h
89
int (*map_alloc_check)(union bpf_attr *attr);
include/linux/bpf.h
90
struct bpf_map *(*map_alloc)(union bpf_attr *attr);
include/linux/bpf.h
96
int (*map_lookup_batch)(struct bpf_map *map, const union bpf_attr *attr,
include/linux/bpf.h
97
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
133
int bpf_local_storage_map_alloc_check(union bpf_attr *attr);
include/linux/bpf_local_storage.h
136
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/bpf_verifier.h
1160
const union bpf_attr *attr, bpfptr_t uattr);
include/linux/bpf_verifier.h
1162
const union bpf_attr *attr, bpfptr_t uattr);
include/linux/bpf_verifier.h
1605
int bpf_opt_subreg_zext_lo32_rnd_hi32(struct bpf_verifier_env *env, const union bpf_attr *attr);
include/linux/btf.h
114
union bpf_attr;
include/linux/btf.h
149
int btf_new_fd(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_log_attr *attr_log);
include/linux/btf.h
152
const union bpf_attr *attr,
include/linux/btf.h
153
union bpf_attr __user *uattr);
include/linux/lsm_hook_defs.h
441
LSM_HOOK(int, 0, bpf, int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
include/linux/lsm_hook_defs.h
444
LSM_HOOK(int, 0, bpf_map_create, struct bpf_map *map, union bpf_attr *attr,
include/linux/lsm_hook_defs.h
447
LSM_HOOK(int, 0, bpf_prog_load, struct bpf_prog *prog, union bpf_attr *attr,
include/linux/lsm_hook_defs.h
450
LSM_HOOK(int, 0, bpf_token_create, struct bpf_token *token, union bpf_attr *attr,
include/linux/netdevice.h
4388
int bpf_xdp_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/security.h
2296
union bpf_attr;
include/linux/security.h
2301
extern int security_bpf(int cmd, union bpf_attr *attr, unsigned int size, bool kernel);
include/linux/security.h
2304
extern int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
include/linux/security.h
2307
extern int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
include/linux/security.h
2310
extern int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
include/linux/security.h
2316
static inline int security_bpf(int cmd, union bpf_attr *attr,
include/linux/security.h
2332
static inline int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
include/linux/security.h
2341
static inline int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
include/linux/security.h
2350
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
943
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
788
int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/trace_events.h
789
int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog);
include/linux/trace_events.h
790
int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr);
include/linux/trace_events.h
839
bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
include/linux/trace_events.h
844
bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
include/linux/trace_events.h
849
bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr)
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
262
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
849
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
179
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
702
int bpf_local_storage_map_alloc_check(union bpf_attr *attr)
kernel/bpf/bpf_local_storage.c
773
bpf_local_storage_map_alloc(union bpf_attr *attr,
kernel/bpf/bpf_struct_ops.c
1022
static int bpf_struct_ops_map_alloc_check(union bpf_attr *attr)
kernel/bpf/bpf_struct_ops.c
1044
static struct bpf_map *bpf_struct_ops_map_alloc(union bpf_attr *attr)
kernel/bpf/bpf_struct_ops.c
1397
int bpf_struct_ops_link_create(union bpf_attr *attr)
kernel/bpf/bpf_task_storage.c
212
static struct bpf_map *task_storage_map_alloc(union bpf_attr *attr)
kernel/bpf/btf.c
5948
static struct btf *btf_parse(const union bpf_attr *attr, bpfptr_t uattr,
kernel/bpf/btf.c
8322
int btf_new_fd(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_log_attr *attr_log)
kernel/bpf/btf.c
8363
const union bpf_attr *attr,
kernel/bpf/btf.c
8364
union bpf_attr __user *uattr)
kernel/bpf/cgroup.c
1247
static int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
kernel/bpf/cgroup.c
1248
union bpf_attr __user *uattr, u32 uattr_size)
kernel/bpf/cgroup.c
1299
if (uattr_size >= offsetofend(union bpf_attr, query.revision) &&
kernel/bpf/cgroup.c
1352
static int cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr,
kernel/bpf/cgroup.c
1353
union bpf_attr __user *uattr, u32 uattr_size)
kernel/bpf/cgroup.c
1363
int cgroup_bpf_prog_attach(const union bpf_attr *attr,
kernel/bpf/cgroup.c
1393
int cgroup_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype)
kernel/bpf/cgroup.c
1515
int cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/cgroup.c
1560
int cgroup_bpf_prog_query(const union bpf_attr *attr,
kernel/bpf/cgroup.c
1561
union bpf_attr __user *uattr, u32 uattr_size)
kernel/bpf/check_btf.c
134
const union bpf_attr *attr,
kernel/bpf/check_btf.c
214
const union bpf_attr *attr,
kernel/bpf/check_btf.c
259
offsetof(union bpf_attr, line_info_rec_size),
kernel/bpf/check_btf.c
32
const union bpf_attr *attr,
kernel/bpf/check_btf.c
342
const union bpf_attr *attr,
kernel/bpf/check_btf.c
382
offsetof(union bpf_attr, core_relo_rec_size),
kernel/bpf/check_btf.c
411
const union bpf_attr *attr,
kernel/bpf/check_btf.c
439
const union bpf_attr *attr,
kernel/bpf/check_btf.c
79
offsetof(union bpf_attr, func_info_rec_size),
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/fixups.c
583
const union bpf_attr *attr)
kernel/bpf/hashtab.c
1774
const union bpf_attr *attr,
kernel/bpf/hashtab.c
1775
union bpf_attr __user *uattr,
kernel/bpf/hashtab.c
2014
htab_percpu_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr,
kernel/bpf/hashtab.c
2015
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2023
const union bpf_attr *attr,
kernel/bpf/hashtab.c
2024
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2031
htab_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr,
kernel/bpf/hashtab.c
2032
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2040
const union bpf_attr *attr,
kernel/bpf/hashtab.c
2041
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2049
const union bpf_attr *attr,
kernel/bpf/hashtab.c
2050
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2058
const union bpf_attr *attr,
kernel/bpf/hashtab.c
2059
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2066
htab_lru_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr,
kernel/bpf/hashtab.c
2067
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2075
const union bpf_attr *attr,
kernel/bpf/hashtab.c
2076
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
2604
static int fd_htab_map_alloc_check(union bpf_attr *attr)
kernel/bpf/hashtab.c
2676
static struct bpf_map *htab_of_map_alloc(union bpf_attr *attr)
kernel/bpf/hashtab.c
2795
static struct bpf_map *rhtab_map_alloc(union bpf_attr *attr)
kernel/bpf/hashtab.c
2845
static int rhtab_map_alloc_check(union bpf_attr *attr)
kernel/bpf/hashtab.c
3246
const union bpf_attr *attr,
kernel/bpf/hashtab.c
3247
union bpf_attr __user *uattr,
kernel/bpf/hashtab.c
3381
static int rhtab_map_lookup_batch(struct bpf_map *map, const union bpf_attr *attr,
kernel/bpf/hashtab.c
3382
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
3387
static int rhtab_map_lookup_and_delete_batch(struct bpf_map *map, const union bpf_attr *attr,
kernel/bpf/hashtab.c
3388
union bpf_attr __user *uattr)
kernel/bpf/hashtab.c
412
static int htab_map_alloc_check(union bpf_attr *attr)
kernel/bpf/hashtab.c
545
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
503
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
93
static struct bpf_map *stack_map_alloc(union bpf_attr *attr)
kernel/bpf/syscall.c
1208
offsetof(union bpf_attr, CMD##_LAST_FIELD) - \
kernel/bpf/syscall.c
1371
static int map_create_alloc(union bpf_attr *attr, bpfptr_t uattr, struct bpf_verifier_log *log,
kernel/bpf/syscall.c
1626
static int map_create(union bpf_attr *attr, bpfptr_t uattr, struct bpf_common_attr *attr_common,
kernel/bpf/syscall.c
1782
static int map_lookup_elem(union bpf_attr *attr)
kernel/bpf/syscall.c
1844
static int map_update_elem(union bpf_attr *attr, bpfptr_t uattr)
kernel/bpf/syscall.c
1897
static int map_delete_elem(union bpf_attr *attr, bpfptr_t uattr)
kernel/bpf/syscall.c
1950
static int map_get_next_key(union bpf_attr *attr)
kernel/bpf/syscall.c
2007
const union bpf_attr *attr,
kernel/bpf/syscall.c
2008
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
2063
const union bpf_attr *attr,
kernel/bpf/syscall.c
2064
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
2121
const union bpf_attr *attr,
kernel/bpf/syscall.c
2122
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
2213
static int map_lookup_and_delete_elem(union bpf_attr *attr)
kernel/bpf/syscall.c
2305
static int map_freeze(const union bpf_attr *attr)
kernel/bpf/syscall.c
2705
static void bpf_prog_load_fixup_attach_type(union bpf_attr *attr)
kernel/bpf/syscall.c
2903
static int bpf_prog_verify_signature(struct bpf_prog *prog, union bpf_attr *attr,
kernel/bpf/syscall.c
2972
static int bpf_prog_load(union bpf_attr *attr, bpfptr_t uattr, struct bpf_log_attr *attr_log)
kernel/bpf/syscall.c
3252
static int bpf_obj_pin(const union bpf_attr *attr)
kernel/bpf/syscall.c
3268
static int bpf_obj_get(const union bpf_attr *attr)
kernel/bpf/syscall.c
4300
static int bpf_perf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/syscall.c
4346
static int bpf_perf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/bpf/syscall.c
437
void bpf_map_init_from_attr(struct bpf_map *map, union bpf_attr *attr)
kernel/bpf/syscall.c
4430
static int bpf_raw_tracepoint_open(const union bpf_attr *attr)
kernel/bpf/syscall.c
4634
static int bpf_prog_attach(const union bpf_attr *attr)
kernel/bpf/syscall.c
4703
static int bpf_prog_detach(const union bpf_attr *attr)
kernel/bpf/syscall.c
4773
static int bpf_prog_query(const union bpf_attr *attr,
kernel/bpf/syscall.c
4774
union bpf_attr __user *uattr, u32 uattr_size)
kernel/bpf/syscall.c
4837
static int bpf_prog_test_run(const union bpf_attr *attr,
kernel/bpf/syscall.c
4838
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
4867
static int bpf_obj_get_next_id(const union bpf_attr *attr,
kernel/bpf/syscall.c
4868
union bpf_attr __user *uattr,
kernel/bpf/syscall.c
4950
static int bpf_prog_get_fd_by_id(const union bpf_attr *attr)
kernel/bpf/syscall.c
4975
static int bpf_map_get_fd_by_id(const union bpf_attr *attr)
kernel/bpf/syscall.c
5156
const union bpf_attr *attr,
kernel/bpf/syscall.c
5157
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5446
const union bpf_attr *attr,
kernel/bpf/syscall.c
5447
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5517
const union bpf_attr *attr,
kernel/bpf/syscall.c
5518
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5533
const union bpf_attr *attr,
kernel/bpf/syscall.c
5534
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5571
const union bpf_attr *attr,
kernel/bpf/syscall.c
5572
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5586
static int bpf_obj_get_info_by_fd(const union bpf_attr *attr,
kernel/bpf/syscall.c
5587
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5615
static int bpf_btf_load(const union bpf_attr *attr, bpfptr_t uattr, struct bpf_log_attr *attr_log)
kernel/bpf/syscall.c
5647
static int bpf_btf_get_fd_by_id(const union bpf_attr *attr)
kernel/bpf/syscall.c
5677
static int bpf_task_fd_query_copy(const union bpf_attr *attr,
kernel/bpf/syscall.c
5678
union bpf_attr __user *uattr,
kernel/bpf/syscall.c
5715
static int bpf_task_fd_query(const union bpf_attr *attr,
kernel/bpf/syscall.c
5716
union bpf_attr __user *uattr)
kernel/bpf/syscall.c
5798
static int bpf_map_do_batch(const union bpf_attr *attr,
kernel/bpf/syscall.c
5799
union bpf_attr __user *uattr,
kernel/bpf/syscall.c
5844
static int link_create(union bpf_attr *attr, bpfptr_t uattr)
kernel/bpf/syscall.c
5950
static int link_update_map(struct bpf_link *link, union bpf_attr *attr)
kernel/bpf/syscall.c
5981
static int link_update(union bpf_attr *attr)
kernel/bpf/syscall.c
6039
static int link_detach(union bpf_attr *attr)
kernel/bpf/syscall.c
6109
static int bpf_link_get_fd_by_id(const union bpf_attr *attr)
kernel/bpf/syscall.c
6168
static int bpf_enable_stats(union bpf_attr *attr)
kernel/bpf/syscall.c
6188
static int bpf_iter_create(union bpf_attr *attr)
kernel/bpf/syscall.c
6211
static int bpf_prog_bind_map(union bpf_attr *attr)
kernel/bpf/syscall.c
6277
static int token_create(union bpf_attr *attr)
kernel/bpf/syscall.c
6291
static int prog_stream_read(union bpf_attr *attr)
kernel/bpf/syscall.c
6313
static int prog_assoc_struct_ops(union bpf_attr *attr)
kernel/bpf/syscall.c
6360
union bpf_attr attr;
kernel/bpf/syscall.c
6413
if (size >= offsetofend(union bpf_attr, log_true_size))
kernel/bpf/syscall.c
6414
offsetof_log_true_size = offsetof(union bpf_attr, log_true_size);
kernel/bpf/syscall.c
6463
if (size >= offsetofend(union bpf_attr, btf_log_true_size))
kernel/bpf/syscall.c
6464
offsetof_log_true_size = offsetof(union bpf_attr, btf_log_true_size);
kernel/bpf/syscall.c
6534
SYSCALL_DEFINE5(bpf, int, cmd, union bpf_attr __user *, uattr, unsigned int, size,
kernel/bpf/syscall.c
6551
BPF_CALL_3(bpf_sys_bpf, int, cmd, union bpf_attr *, attr, u32, attr_size)
kernel/bpf/syscall.c
6576
int kern_sys_bpf(int cmd, union bpf_attr *attr, unsigned int size);
kernel/bpf/syscall.c
6578
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
19526
static int process_fd_array(struct bpf_verifier_env *env, union bpf_attr *attr, bpfptr_t uattr)
kernel/bpf/verifier.c
19772
int bpf_check(struct bpf_prog **prog, union bpf_attr *attr, bpfptr_t uattr,
kernel/trace/bpf_trace.c
1817
const union bpf_attr *kattr,
kernel/trace/bpf_trace.c
1818
union bpf_attr __user *uattr)
kernel/trace/bpf_trace.c
2780
int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/trace/bpf_trace.c
2936
int bpf_kprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/trace/bpf_trace.c
3219
static int bpf_uprobe_multi_get_path(const union bpf_attr *attr, struct path *path)
kernel/trace/bpf_trace.c
3251
int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/trace/bpf_trace.c
3403
int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
kernel/trace/bpf_trace.c
3785
int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr)
kernel/trace/bpf_trace.c
3875
int bpf_tracing_multi_attach(struct bpf_prog *prog, const union bpf_attr *attr)
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
1035
int bpf_prog_test_run_skb(struct bpf_prog *prog, const union bpf_attr *kattr,
net/bpf/test_run.c
1036
union bpf_attr __user *uattr)
net/bpf/test_run.c
1332
int bpf_prog_test_run_xdp(struct bpf_prog *prog, const union bpf_attr *kattr,
net/bpf/test_run.c
1333
union bpf_attr __user *uattr)
net/bpf/test_run.c
1510
const union bpf_attr *kattr,
net/bpf/test_run.c
1511
union bpf_attr __user *uattr)
net/bpf/test_run.c
1578
int bpf_prog_test_run_sk_lookup(struct bpf_prog *prog, const union bpf_attr *kattr,
net/bpf/test_run.c
1579
union bpf_attr __user *uattr)
net/bpf/test_run.c
1679
const union bpf_attr *kattr,
net/bpf/test_run.c
1680
union bpf_attr __user *uattr)
net/bpf/test_run.c
1777
const union bpf_attr *kattr,
net/bpf/test_run.c
1778
union bpf_attr __user *uattr)
net/bpf/test_run.c
436
static int bpf_test_finish(const union bpf_attr *kattr,
net/bpf/test_run.c
437
union bpf_attr __user *uattr, const void *data,
net/bpf/test_run.c
663
static void *bpf_test_init(const union bpf_attr *kattr, u32 user_size,
net/bpf/test_run.c
686
const union bpf_attr *kattr,
net/bpf/test_run.c
687
union bpf_attr __user *uattr)
net/bpf/test_run.c
783
const union bpf_attr *kattr,
net/bpf/test_run.c
784
union bpf_attr __user *uattr)
net/bpf/test_run.c
854
static void *bpf_ctx_init(const union bpf_attr *kattr, u32 max_size)
net/bpf/test_run.c
885
static int bpf_ctx_finish(const union bpf_attr *kattr,
net/bpf/test_run.c
886
union bpf_attr __user *uattr, const void *data,
net/core/bpf_sk_storage.c
69
static struct bpf_map *bpf_sk_storage_map_alloc(union bpf_attr *attr)
net/core/dev.c
10674
int bpf_xdp_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
net/core/sock_map.c
1098
static struct bpf_map *sock_hash_alloc(union bpf_attr *attr)
net/core/sock_map.c
1572
int sock_map_bpf_prog_query(const union bpf_attr *attr,
net/core/sock_map.c
1573
union bpf_attr __user *uattr)
net/core/sock_map.c
1875
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
5297
int security_bpf(int cmd, union bpf_attr *attr, unsigned int size, bool kernel)
security/security.c
5343
int security_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
security/security.c
5371
int security_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
security/security.c
5397
int security_bpf_token_create(struct bpf_token *token, union bpf_attr *attr,
security/selinux/hooks.c
7173
static int selinux_bpf(int cmd, union bpf_attr *attr,
security/selinux/hooks.c
7281
static int selinux_bpf_map_create(struct bpf_map *map, union bpf_attr *attr,
security/selinux/hooks.c
7299
static int selinux_bpf_prog_load(struct bpf_prog *prog, union bpf_attr *attr,
security/selinux/hooks.c
7321
union bpf_attr *attr,
tools/bpf/bpftool/common.c
109
union bpf_attr attr;
tools/build/feature/test-bpf.c
32
union bpf_attr attr;
tools/lib/bpf/bpf.c
1008
const size_t attr_sz = offsetofend(union bpf_attr, link_update);
tools/lib/bpf/bpf.c
1009
union bpf_attr attr;
tools/lib/bpf/bpf.c
1033
const size_t attr_sz = offsetofend(union bpf_attr, iter_create);
tools/lib/bpf/bpf.c
1034
union bpf_attr attr;
tools/lib/bpf/bpf.c
1047
const size_t attr_sz = offsetofend(union bpf_attr, query);
tools/lib/bpf/bpf.c
1048
union bpf_attr attr;
tools/lib/bpf/bpf.c
1094
const size_t attr_sz = offsetofend(union bpf_attr, test);
tools/lib/bpf/bpf.c
1095
union bpf_attr attr;
tools/lib/bpf/bpf.c
110
static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr,
tools/lib/bpf/bpf.c
1129
const size_t attr_sz = offsetofend(union bpf_attr, open_flags);
tools/lib/bpf/bpf.c
1130
union bpf_attr attr;
tools/lib/bpf/bpf.c
116
static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr,
tools/lib/bpf/bpf.c
1166
const size_t attr_sz = offsetofend(union bpf_attr, open_flags);
tools/lib/bpf/bpf.c
1167
union bpf_attr attr;
tools/lib/bpf/bpf.c
1189
const size_t attr_sz = offsetofend(union bpf_attr, open_flags);
tools/lib/bpf/bpf.c
1190
union bpf_attr attr;
tools/lib/bpf/bpf.c
1212
const size_t attr_sz = offsetofend(union bpf_attr, fd_by_id_token_fd);
tools/lib/bpf/bpf.c
1213
union bpf_attr attr;
tools/lib/bpf/bpf.c
1236
const size_t attr_sz = offsetofend(union bpf_attr, open_flags);
tools/lib/bpf/bpf.c
1237
union bpf_attr attr;
tools/lib/bpf/bpf.c
125
int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts)
tools/lib/bpf/bpf.c
1258
const size_t attr_sz = offsetofend(union bpf_attr, info);
tools/lib/bpf/bpf.c
1259
union bpf_attr attr;
tools/lib/bpf/bpf.c
1295
const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint);
tools/lib/bpf/bpf.c
1296
union bpf_attr attr;
tools/lib/bpf/bpf.c
1320
const size_t attr_sz = offsetofend(union bpf_attr, btf_token_fd);
tools/lib/bpf/bpf.c
1321
union bpf_attr attr;
tools/lib/bpf/bpf.c
1376
const size_t attr_sz = offsetofend(union bpf_attr, task_fd_query);
tools/lib/bpf/bpf.c
1377
union bpf_attr attr;
tools/lib/bpf/bpf.c
1400
const size_t attr_sz = offsetofend(union bpf_attr, enable_stats);
tools/lib/bpf/bpf.c
1401
union bpf_attr attr;
tools/lib/bpf/bpf.c
1414
const size_t attr_sz = offsetofend(union bpf_attr, prog_bind_map);
tools/lib/bpf/bpf.c
1415
union bpf_attr attr;
tools/lib/bpf/bpf.c
1432
const size_t attr_sz = offsetofend(union bpf_attr, token_create);
tools/lib/bpf/bpf.c
1433
union bpf_attr attr;
tools/lib/bpf/bpf.c
1450
const size_t attr_sz = offsetofend(union bpf_attr, prog_stream_read);
tools/lib/bpf/bpf.c
1451
union bpf_attr attr;
tools/lib/bpf/bpf.c
146
const size_t attr_sz = offsetofend(union bpf_attr, prog_token_fd);
tools/lib/bpf/bpf.c
1470
const size_t attr_sz = offsetofend(union bpf_attr, prog_assoc_struct_ops);
tools/lib/bpf/bpf.c
1471
union bpf_attr attr;
tools/lib/bpf/bpf.c
152
union bpf_attr attr;
tools/lib/bpf/bpf.c
213
const size_t attr_sz = offsetofend(union bpf_attr, excl_prog_hash_size);
tools/lib/bpf/bpf.c
217
union bpf_attr attr;
tools/lib/bpf/bpf.c
298
const size_t attr_sz = offsetofend(union bpf_attr, keyring_id);
tools/lib/bpf/bpf.c
304
union bpf_attr attr;
tools/lib/bpf/bpf.c
448
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
449
union bpf_attr attr;
tools/lib/bpf/bpf.c
464
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
465
union bpf_attr attr;
tools/lib/bpf/bpf.c
479
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
480
union bpf_attr attr;
tools/lib/bpf/bpf.c
495
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
496
union bpf_attr attr;
tools/lib/bpf/bpf.c
510
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
511
union bpf_attr attr;
tools/lib/bpf/bpf.c
526
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
527
union bpf_attr attr;
tools/lib/bpf/bpf.c
540
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/bpf.c
541
union bpf_attr attr;
tools/lib/bpf/bpf.c
555
const size_t attr_sz = offsetofend(union bpf_attr, next_key);
tools/lib/bpf/bpf.c
556
union bpf_attr attr;
tools/lib/bpf/bpf.c
570
const size_t attr_sz = offsetofend(union bpf_attr, map_fd);
tools/lib/bpf/bpf.c
571
union bpf_attr attr;
tools/lib/bpf/bpf.c
586
const size_t attr_sz = offsetofend(union bpf_attr, batch);
tools/lib/bpf/bpf.c
587
union bpf_attr attr;
tools/lib/bpf/bpf.c
642
const size_t attr_sz = offsetofend(union bpf_attr, path_fd);
tools/lib/bpf/bpf.c
643
union bpf_attr attr;
tools/lib/bpf/bpf.c
671
const size_t attr_sz = offsetofend(union bpf_attr, path_fd);
tools/lib/bpf/bpf.c
672
union bpf_attr attr;
tools/lib/bpf/bpf.c
700
const size_t attr_sz = offsetofend(union bpf_attr, expected_revision);
tools/lib/bpf/bpf.c
703
union bpf_attr attr;
tools/lib/bpf/bpf.c
738
const size_t attr_sz = offsetofend(union bpf_attr, expected_revision);
tools/lib/bpf/bpf.c
74
static inline int sys_bpf_ext(enum bpf_cmd cmd, union bpf_attr *attr,
tools/lib/bpf/bpf.c
741
union bpf_attr attr;
tools/lib/bpf/bpf.c
786
const size_t attr_sz = offsetofend(union bpf_attr, link_create);
tools/lib/bpf/bpf.c
789
union bpf_attr attr;
tools/lib/bpf/bpf.c
83
static inline int sys_bpf_ext_fd(enum bpf_cmd cmd, union bpf_attr *attr,
tools/lib/bpf/bpf.c
96
const size_t attr_sz = offsetofend(union bpf_attr, prog_token_fd);
tools/lib/bpf/bpf.c
97
union bpf_attr attr;
tools/lib/bpf/bpf.c
994
const size_t attr_sz = offsetofend(union bpf_attr, link_detach);
tools/lib/bpf/bpf.c
995
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
1077
int attr_size = offsetofend(union bpf_attr, core_relo_rec_size);
tools/lib/bpf/gen_loader.c
1078
union bpf_attr attr;
tools/lib/bpf/gen_loader.c
1169
offsetof(union bpf_attr, attach_btf_id)));
tools/lib/bpf/gen_loader.c
1172
offsetof(union bpf_attr, attach_btf_obj_fd)));
tools/lib/bpf/gen_loader.c
1195
int attr_size = offsetofend(union bpf_attr, flags);
tools/lib/bpf/gen_loader.c
1197
union bpf_attr attr;
tools/lib/bpf/gen_loader.c
1252
int attr_size = offsetofend(union bpf_attr, flags);
tools/lib/bpf/gen_loader.c
1254
union bpf_attr attr;
tools/lib/bpf/gen_loader.c
1280
int attr_size = offsetofend(union bpf_attr, map_fd);
tools/lib/bpf/gen_loader.c
1282
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
482
int attr_size = offsetofend(union bpf_attr, btf_log_level);
tools/lib/bpf/gen_loader.c
484
union bpf_attr attr;
tools/lib/bpf/gen_loader.c
517
int attr_size = offsetofend(union bpf_attr, map_extra);
tools/lib/bpf/gen_loader.c
520
union bpf_attr attr;
tools/lib/bpf/libbpf_internal.h
747
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
262
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/skel_internal.h
263
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
276
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/skel_internal.h
277
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
288
const size_t attr_sz = offsetofend(union bpf_attr, flags);
tools/lib/bpf/skel_internal.h
289
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
299
const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint.prog_fd);
tools/lib/bpf/skel_internal.h
300
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
312
const size_t attr_sz = offsetofend(union bpf_attr, link_create.iter_info_len);
tools/lib/bpf/skel_internal.h
313
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
325
const size_t attr_sz = offsetofend(union bpf_attr, info);
tools/lib/bpf/skel_internal.h
329
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
344
const size_t attr_sz = offsetofend(union bpf_attr, map_fd);
tools/lib/bpf/skel_internal.h
345
union bpf_attr attr;
tools/lib/bpf/skel_internal.h
360
const size_t prog_load_attr_sz = offsetofend(union bpf_attr, keyring_id);
tools/lib/bpf/skel_internal.h
361
const size_t test_run_attr_sz = offsetofend(union bpf_attr, test);
tools/lib/bpf/skel_internal.h
363
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/bpf_attr_size.c
10
#define OLD_QUERY_SIZE offsetofend(union bpf_attr, query.prog_cnt)
tools/testing/selftests/bpf/prog_tests/bpf_attr_size.c
11
#define FULL_QUERY_SIZE offsetofend(union bpf_attr, query.revision)
tools/testing/selftests/bpf/prog_tests/bpf_attr_size.c
17
union bpf_attr attr;
tools/testing/selftests/bpf/prog_tests/btf.c
6873
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/map_init.c
364
union bpf_attr attr = {
tools/testing/selftests/bpf/prog_tests/obj_name.c
25
union bpf_attr attr;
tools/testing/selftests/bpf/prog_tests/signed_loader.c
114
offsetofend(union bpf_attr, keyring_id));
tools/testing/selftests/bpf/prog_tests/signed_loader.c
125
offsetofend(union bpf_attr, test)) < 0) {
tools/testing/selftests/bpf/prog_tests/signed_loader.c
40
union bpf_attr attr;
tools/testing/selftests/bpf/prog_tests/signed_loader.c
57
offsetofend(union bpf_attr, keyring_id));
tools/testing/selftests/bpf/prog_tests/signed_loader.c
73
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
34
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
44
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
52
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_signed_loader_lsm.c
17
int BPF_PROG(inspect_prog_load, struct bpf_prog *prog, union bpf_attr *attr,
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
872
[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
109
union bpf_attr attr;
tools/testing/selftests/net/reuseport_bpf.c
348
union bpf_attr eprog;
tools/testing/selftests/net/reuseport_bpf_numa.c
85
union bpf_attr attr;