Home
last modified time | relevance | path

Searched refs:attr_sz (Results 1 – 7 of 7) 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.c11564 const size_t attr_sz = sizeof(struct perf_event_attr); in perf_event_kprobe_open_legacy()
11571 memset(&attr, 0, attr_sz); in perf_event_kprobe_open_legacy()
11593 attr.size = attr_sz; in perf_event_kprobe_open_legacy()
11715 const size_t attr_sz = sizeof(struct perf_event_attr); in bpf_program__attach_kprobe_opts()
11735 memset(&attr, 0, attr_sz); in bpf_program__attach_kprobe_opts()
11736 attr.size = attr_sz; in bpf_program__attach_kprobe_opts()
12456 const size_t attr_sz = sizeof(struct perf_event_attr);
12474 memset(&attr, 0, attr_sz); in bpf_program__attach_uprobe_multi()
12475 attr.size = attr_sz; in bpf_program__attach_uprobe_multi()
13079 const size_t attr_sz in attach_raw_tp()
11404 const size_t attr_sz = sizeof(struct perf_event_attr); perf_event_open_probe() local
11555 const size_t attr_sz = sizeof(struct perf_event_attr); perf_event_kprobe_open_legacy() local
12277 const size_t attr_sz = sizeof(struct perf_event_attr); perf_event_uprobe_open_legacy() local
12900 const size_t attr_sz = sizeof(struct perf_event_attr); perf_event_open_tracepoint() local
13756 const size_t attr_sz = sizeof(struct perf_event_attr); perf_buffer__new() 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.c527 const size_t attr_sz = sizeof(struct perf_event_attr); in TEST_F()
544 memset(&attr, 0, attr_sz); in TEST_F()
545 attr.size = attr_sz; in TEST_F()
514 const size_t attr_sz = sizeof(struct perf_event_attr); TEST_F() local
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c5159 const size_t attr_sz = sizeof(struct perf_event_attr); in FIXTURE_SETUP()
5171 memset(&attr, 0, attr_sz); in FIXTURE_SETUP()
5186 attr.size = attr_sz; in FIXTURE_SETUP()
5153 const size_t attr_sz = sizeof(struct perf_event_attr); FIXTURE_SETUP() local