Searched refs:attr_sz (Results 1 – 6 of 6) sorted by relevance
/linux/tools/lib/bpf/ |
H A D | skel_internal.h | 225 const size_t attr_sz = offsetofend(union bpf_attr, map_extra); in skel_map_create() local 228 memset(&attr, 0, attr_sz); in skel_map_create() 236 return skel_sys_bpf(BPF_MAP_CREATE, &attr, attr_sz); in skel_map_create() 242 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_update_elem() local 245 memset(&attr, 0, attr_sz); in skel_map_update_elem() 251 return skel_sys_bpf(BPF_MAP_UPDATE_ELEM, &attr, attr_sz); in skel_map_update_elem() 256 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_delete_elem() local 259 memset(&attr, 0, attr_sz); in skel_map_delete_elem() 263 return skel_sys_bpf(BPF_MAP_DELETE_ELEM, &attr, attr_sz); in skel_map_delete_elem() 268 const size_t attr_sz = offsetofend(union bpf_attr, flags); in skel_map_get_fd_by_id() local [all …]
|
H A D | libbpf.c | 10940 const size_t attr_sz = sizeof(struct perf_event_attr); in perf_event_open_probe() local 10947 memset(&attr, 0, attr_sz); in perf_event_open_probe() 10969 attr.size = attr_sz; in perf_event_open_probe() 11091 const size_t attr_sz = sizeof(struct perf_event_attr); in perf_event_kprobe_open_legacy() local 11111 memset(&attr, 0, attr_sz); in perf_event_kprobe_open_legacy() 11112 attr.size = attr_sz; in perf_event_kprobe_open_legacy() 11793 const size_t attr_sz = sizeof(struct perf_event_attr); in perf_event_uprobe_open_legacy() local 11811 memset(&attr, 0, attr_sz); in perf_event_uprobe_open_legacy() 11812 attr.size = attr_sz; in perf_event_uprobe_open_legacy() 12417 const size_t attr_sz = sizeof(struct perf_event_attr); in perf_event_open_tracepoint() local [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 165 const int attr_sz = sizeof(union bpf_attr); in update_outer_map() local 172 memset(attr, 0, attr_sz); in update_outer_map() 174 outer_fd = bpf_sys_bpf(BPF_MAP_GET_FD_BY_ID, attr, attr_sz); in update_outer_map() 178 memset(attr, 0, attr_sz); in update_outer_map() 183 inner_fd = bpf_sys_bpf(BPF_MAP_CREATE, attr, attr_sz); in update_outer_map() 187 memset(attr, 0, attr_sz); in update_outer_map() 191 err = bpf_sys_bpf(BPF_MAP_UPDATE_ELEM, attr, attr_sz); in update_outer_map() 195 memset(attr, 0, attr_sz); in update_outer_map() 198 err = bpf_sys_bpf(BPF_MAP_DELETE_ELEM, attr, attr_sz); in update_outer_map()
|
/linux/tools/testing/selftests/x86/ |
H A D | test_shadow_stack.c | 814 const size_t attr_sz = sizeof(struct perf_event_attr); in test_uretprobe() local 842 memset(&attr, 0, attr_sz); in test_uretprobe() 843 attr.size = attr_sz; in test_uretprobe()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | sample.c | 347 u32 attr_sz = ns_to_attr_sz(MLX5_FLOW_NAMESPACE_FDB); in add_post_rule() local 375 memcpy(post_attr, attr, attr_sz); in add_post_rule()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tc.c | 3670 u32 attr_sz = ns_to_attr_sz(ns_type); in mlx5e_clone_flow_attr_for_post_act() local 3681 memcpy(attr2, attr, attr_sz); in mlx5e_clone_flow_attr_for_post_act()
|