Searched refs:attr_sz (Results 1 - 7 of 7) sorted by relevance

/linux-master/tools/lib/bpf/
H A Dbpf.c108 const size_t attr_sz = offsetofend(union bpf_attr, attach_btf_obj_fd); local
118 memset(&attr, 0, attr_sz);
127 prog_fd = sys_bpf_fd(BPF_PROG_LOAD, &attr, attr_sz);
175 const size_t attr_sz = offsetofend(union bpf_attr, map_token_fd); local
181 memset(&attr, 0, attr_sz);
207 fd = sys_bpf_fd(BPF_MAP_CREATE, &attr, attr_sz);
241 const size_t attr_sz = offsetofend(union bpf_attr, prog_token_fd); local
261 memset(&attr, 0, attr_sz);
321 fd = sys_bpf_prog_load(&attr, attr_sz, attempts);
362 fd = sys_bpf_prog_load(&attr, attr_sz, attempt
390 const size_t attr_sz = offsetofend(union bpf_attr, flags); local
406 const size_t attr_sz = offsetofend(union bpf_attr, flags); local
421 const size_t attr_sz = offsetofend(union bpf_attr, flags); local
437 const size_t attr_sz = offsetofend(union bpf_attr, flags); local
452 const size_t attr_sz = offsetofend(union bpf_attr, flags); local
468 const size_t attr_sz = offsetofend(union bpf_attr, flags); local
482 const size_t attr_sz = offsetofend(union bpf_attr, flags); local
497 const size_t attr_sz = offsetofend(union bpf_attr, next_key); local
512 const size_t attr_sz = offsetofend(union bpf_attr, map_fd); local
528 const size_t attr_sz = offsetofend(union bpf_attr, batch); local
584 const size_t attr_sz = offsetofend(union bpf_attr, path_fd); local
613 const size_t attr_sz = offsetofend(union bpf_attr, path_fd); local
642 const size_t attr_sz = offsetofend(union bpf_attr, expected_revision); local
680 const size_t attr_sz = offsetofend(union bpf_attr, expected_revision); local
728 const size_t attr_sz = offsetofend(union bpf_attr, link_create); local
878 const size_t attr_sz = offsetofend(union bpf_attr, link_detach); local
892 const size_t attr_sz = offsetofend(union bpf_attr, link_update); local
917 const size_t attr_sz = offsetofend(union bpf_attr, iter_create); local
931 const size_t attr_sz = offsetofend(union bpf_attr, query); local
978 const size_t attr_sz = offsetofend(union bpf_attr, test); local
1013 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); local
1050 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); local
1073 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); local
1096 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); local
1119 const size_t attr_sz = offsetofend(union bpf_attr, open_flags); local
1141 const size_t attr_sz = offsetofend(union bpf_attr, info); local
1178 const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint); local
1192 const size_t attr_sz = offsetofend(union bpf_attr, btf_token_fd); local
1248 const size_t attr_sz = offsetofend(union bpf_attr, task_fd_query); local
1272 const size_t attr_sz = offsetofend(union bpf_attr, enable_stats); local
1286 const size_t attr_sz = offsetofend(union bpf_attr, prog_bind_map); local
1304 const size_t attr_sz = offsetofend(union bpf_attr, token_create); local
[all...]
H A Dskel_internal.h225 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); local
228 memset(&attr, 0, attr_sz);
236 return skel_sys_bpf(BPF_MAP_CREATE, &attr, attr_sz);
242 const size_t attr_sz = offsetofend(union bpf_attr, flags); local
245 memset(&attr, 0, attr_sz);
251 return skel_sys_bpf(BPF_MAP_UPDATE_ELEM, &attr, attr_sz);
256 const size_t attr_sz = offsetofend(union bpf_attr, flags); local
259 memset(&attr, 0, attr_sz);
263 return skel_sys_bpf(BPF_MAP_DELETE_ELEM, &attr, attr_sz);
268 const size_t attr_sz local
279 const size_t attr_sz = offsetofend(union bpf_attr, raw_tracepoint.prog_fd); local
292 const size_t attr_sz = offsetofend(union bpf_attr, link_create.iter_info_len); local
[all...]
H A Dfeatures.c25 const size_t attr_sz = offsetofend(union bpf_attr, prog_name); local
33 memset(&attr, 0, attr_sz);
44 ret = sys_bpf_prog_load(&attr, attr_sz, PROG_LOAD_ATTEMPTS);
H A Dlibbpf.c10745 const size_t attr_sz = sizeof(struct perf_event_attr); local
10753 memset(&attr, 0, attr_sz);
10775 attr.size = attr_sz;
10897 const size_t attr_sz = sizeof(struct perf_event_attr); local
10918 memset(&attr, 0, attr_sz);
10919 attr.size = attr_sz;
11561 const size_t attr_sz = sizeof(struct perf_event_attr); local
11579 memset(&attr, 0, attr_sz);
11580 attr.size = attr_sz;
12171 const size_t attr_sz local
12970 const size_t attr_sz = sizeof(struct perf_event_attr); local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dsyscall.c164 const int attr_sz = sizeof(union bpf_attr); local
171 memset(attr, 0, attr_sz);
173 outer_fd = bpf_sys_bpf(BPF_MAP_GET_FD_BY_ID, attr, attr_sz);
177 memset(attr, 0, attr_sz);
182 inner_fd = bpf_sys_bpf(BPF_MAP_CREATE, attr, attr_sz);
186 memset(attr, 0, attr_sz);
190 err = bpf_sys_bpf(BPF_MAP_UPDATE_ELEM, attr, attr_sz);
194 memset(attr, 0, attr_sz);
197 err = bpf_sys_bpf(BPF_MAP_DELETE_ELEM, attr, attr_sz);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dsample.c347 u32 attr_sz = ns_to_attr_sz(MLX5_FLOW_NAMESPACE_FDB); local
375 memcpy(post_attr, attr, attr_sz);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c3553 u32 attr_sz = ns_to_attr_sz(ns_type); local
3564 memcpy(attr2, attr, attr_sz);

Completed in 225 milliseconds