Home
last modified time | relevance | path

Searched refs:attr_sz (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dsyscall.c165 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/lib/bpf/
H A Dfeatures.c24 const size_t attr_sz = offsetofend(union bpf_attr, prog_token_fd); in probe_kern_prog_name() local
32 memset(&attr, 0, attr_sz); in probe_kern_prog_name()
43 ret = sys_bpf_prog_load(&attr, attr_sz, PROG_LOAD_ATTEMPTS); in probe_kern_prog_name()
H A Dlibbpf.c11404 const size_t attr_sz = sizeof(struct perf_event_attr); in perf_event_open_probe() local
11411 memset(&attr, 0, attr_sz); in perf_event_open_probe()
11433 attr.size = attr_sz; in perf_event_open_probe()
11555 const size_t attr_sz = sizeof(struct perf_event_attr); in perf_event_kprobe_open_legacy() local
11575 memset(&attr, 0, attr_sz); in perf_event_kprobe_open_legacy()
11576 attr.size = attr_sz; in perf_event_kprobe_open_legacy()
12277 const size_t attr_sz = sizeof(struct perf_event_attr); in perf_event_uprobe_open_legacy() local
12295 memset(&attr, 0, attr_sz); in perf_event_uprobe_open_legacy()
12296 attr.size = attr_sz; in perf_event_uprobe_open_legacy()
12900 const size_t attr_sz = sizeof(struct perf_event_attr); in perf_event_open_tracepoint() local
[all …]
/linux/tools/testing/selftests/x86/
H A Dtest_shadow_stack.c814 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 Dsample.c347 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/tools/testing/selftests/mm/
H A Dmerge.c514 const size_t attr_sz = sizeof(struct perf_event_attr); in TEST_F() local
531 memset(&attr, 0, attr_sz); in TEST_F()
532 attr.size = attr_sz; in TEST_F()
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c5153 const size_t attr_sz = sizeof(struct perf_event_attr); in FIXTURE_SETUP() local
5165 memset(&attr, 0, attr_sz); in FIXTURE_SETUP()
5180 attr.size = attr_sz; in FIXTURE_SETUP()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c3670 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()