Home
last modified time | relevance | path

Searched refs:map_ids (Results 1 – 17 of 17) sorted by relevance

/external/bcc/introspection/
Dbps.c183 uint32_t *map_ids = NULL; in print_one_prog() local
202 prog_info.map_ids = ptr_to_u64(realloc(map_ids, in print_one_prog()
203 nr_map_ids * sizeof(*map_ids))); in print_one_prog()
204 if (!prog_info.map_ids) { in print_one_prog()
209 free(map_ids); in print_one_prog()
213 map_ids = u64_to_ptr(prog_info.map_ids); in print_one_prog()
221 free(map_ids); in print_one_prog()
244 map_fd = bpf_map_get_fd_by_id(map_ids[i]); in print_one_prog()
251 map_ids[i], strerror(errno), errno); in print_one_prog()
260 map_ids[i], strerror(errno), errno); in print_one_prog()
[all …]
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/
Dbpf_obj_id.c22 __u32 map_ids[nr_iters + 1]; in test_bpf_obj_id() local
97 prog_infos[i].map_ids = ptr_to_u64(map_ids + i); in test_bpf_obj_id()
120 *(int *)(long)prog_infos[i].map_ids != map_infos[i].id || in test_bpf_obj_id()
135 *(int *)(long)prog_infos[i].map_ids, map_infos[i].id, in test_bpf_obj_id()
181 saved_map_id = *(int *)((long)prog_infos[i].map_ids); in test_bpf_obj_id()
182 prog_info.map_ids = prog_infos[i].map_ids; in test_bpf_obj_id()
189 *(int *)(long)prog_info.map_ids != saved_map_id, in test_bpf_obj_id()
194 *(int *)(long)prog_info.map_ids, saved_map_id); in test_bpf_obj_id()
/external/strace/tests/
Dbpf-obj_get_info_by_fd.c355 uint32_t *map_ids = tail_alloc(sizeof(*map_ids) * 2); in main() local
370 prog_info->map_ids = (uintptr_t) (map_ids + 2); in main()
377 prog_info->map_ids = (uintptr_t) map_ids; in main()
383 prog_info->map_ids = (uintptr_t) map_ids; in main()
446 offsetof(struct bpf_prog_info_struct, map_ids)) { in main()
456 map_ids + 2); in main()
/external/strace/tests-m32/
Dbpf-obj_get_info_by_fd.c355 uint32_t *map_ids = tail_alloc(sizeof(*map_ids) * 2); in main() local
370 prog_info->map_ids = (uintptr_t) (map_ids + 2); in main()
377 prog_info->map_ids = (uintptr_t) map_ids; in main()
383 prog_info->map_ids = (uintptr_t) map_ids; in main()
446 offsetof(struct bpf_prog_info_struct, map_ids)) { in main()
456 map_ids + 2); in main()
/external/strace/tests-mx32/
Dbpf-obj_get_info_by_fd.c355 uint32_t *map_ids = tail_alloc(sizeof(*map_ids) * 2); in main() local
370 prog_info->map_ids = (uintptr_t) (map_ids + 2); in main()
377 prog_info->map_ids = (uintptr_t) map_ids; in main()
383 prog_info->map_ids = (uintptr_t) map_ids; in main()
446 offsetof(struct bpf_prog_info_struct, map_ids)) { in main()
456 map_ids + 2); in main()
/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_skb_cgroup_id_user.c84 __u32 map_ids[1]; in get_map_fd_by_prog_id() local
95 info.map_ids = (__u64) (unsigned long) map_ids; in get_map_fd_by_prog_id()
107 map_fd = bpf_map_get_fd_by_id(map_ids[0]); in get_map_fd_by_prog_id()
109 log_err("Failed to get fd by map id %d", map_ids[0]); in get_map_fd_by_prog_id()
Dtest_tcp_check_syncookie_user.c85 __u32 map_ids[1]; in get_map_fd_by_prog_id() local
96 info.map_ids = (__u64)(unsigned long)map_ids; in get_map_fd_by_prog_id()
110 map_fd = bpf_map_get_fd_by_id(map_ids[0]); in get_map_fd_by_prog_id()
112 log_err("Failed to get fd by map id %d", map_ids[0]); in get_map_fd_by_prog_id()
/external/strace/
Dbpf_attr_check.c685 static_assert(SoM(struct bpf_prog_info_struct, map_ids) == SoM(struct bpf_prog_info, map_ids),
687 …tatic_assert(offsetof(struct bpf_prog_info_struct, map_ids) == offsetof(struct bpf_prog_info, map_…
Dbpf_attr.h279 uint64_t ATTRIBUTE_ALIGNED(8) map_ids;
Dbpf.c542 print_big_u64_addr(info.map_ids); in print_bpf_prog_info()
543 print_array(tcp, info.map_ids, MIN(saved->nr_map_ids, info.nr_map_ids), in print_bpf_prog_info()
Dconfig.h.in1061 /* Define to 1 if `map_ids' is a member of `struct bpf_prog_info'. */
Dconfigure10875 ac_fn_c_check_member "$LINENO" "struct bpf_prog_info" "map_ids" "ac_cv_member_struct_bpf_prog_info_…
DChangeLog2137 and exiting syscall as the size of map_ids array to be decoded.
2144 (print_bpf_prog_info): Likewise. Print map_ids field as an array
/external/strace/m4/
Dbpf_attr.m418 struct bpf_prog_info.map_ids,
/external/bcc/src/cc/includes/compat/linux/
Dbpf.h2709 __aligned_u64 map_ids; member
/external/bcc/src/cc/compat/linux/
Dbpf.h2709 __aligned_u64 map_ids; member
/external/kernel-headers/original/uapi/linux/
Dbpf.h4559 __aligned_u64 map_ids; member