Home
last modified time | relevance | path

Searched refs:attr_elem (Results 1 – 4 of 4) sorted by relevance

/linux-tools/ebpf/kernel-samples-bpf/
H A Dsockconn4lb_admin.c86 union bpf_attr attr_elem; in main() local
92 memset(&attr_elem, 0, sizeof(attr_elem)); in main()
93 attr_elem.flags = BPF_ANY; in main()
102 attr_elem.map_fd = root_fd; in main()
103 attr_elem.key = ptr_to_u64(&vip); in main()
104 attr_elem.value = ptr_to_u64(&value); in main()
105 rc = sys_bpf(BPF_MAP_LOOKUP_ELEM, &attr_elem, sizeof(attr_elem)); in main()
119 attr_elem.map_fd = root_fd; in main()
120 attr_elem.key = ptr_to_u64(&vip); in main()
121 attr_elem.value = ptr_to_u64(&value); in main()
[all …]
H A Dipfirewall_cmd.c49 union bpf_attr attr_pin, attr_elem; in main() local
52 memset(&attr_elem, 0, sizeof(attr_elem)); in main()
59 attr_elem.map_fd = fd; in main()
60 attr_elem.key = ptr_to_u64(&ip); in main()
61 attr_elem.value = ptr_to_u64(&value); in main()
74 rc = sys_bpf(BPF_MAP_UPDATE_ELEM, &attr_elem, sizeof(attr_elem)); in main()
87 rc = sys_bpf(BPF_MAP_UPDATE_ELEM, &attr_elem, sizeof(attr_elem)); in main()
H A Dl3lb_cmd.c52 union bpf_attr attr_pin, attr_elem; in main() local
55 memset(&attr_elem, 0, sizeof(attr_elem)); in main()
62 attr_elem.map_fd = fd; in main()
63 attr_elem.key = ptr_to_u64(&ip); in main()
64 attr_elem.value = ptr_to_u64(&value); in main()
94 rc = sys_bpf(BPF_MAP_UPDATE_ELEM, &attr_elem, sizeof(attr_elem)); in main()
/linux-tools/ebpf/libbpf-bootstrap/
H A Dkprobe_client.c33 union bpf_attr attr_elem; in main() local
41 memset(&attr_elem, 0, sizeof(attr_elem)); in main()
42 attr_elem.flags = BPF_ANY; in main()
43 attr_elem.map_fd = root_fd; in main()
44 attr_elem.key = ptr_to_u64(&key); in main()
45 attr_elem.value = ptr_to_u64(&value); in main()
47 rc = sys_bpf(BPF_MAP_LOOKUP_ELEM, &attr_elem, sizeof(attr_elem)); in main()