/linux-6.6.21/tools/lib/bpf/ |
D | bpf.c | 67 static inline __u64 ptr_to_u64(const void *ptr) in ptr_to_u64() function 120 attr.insns = ptr_to_u64(insns); in probe_memcg_account() 122 attr.license = ptr_to_u64("GPL"); in probe_memcg_account() 267 attr.license = ptr_to_u64(license); in bpf_prog_load() 272 attr.insns = ptr_to_u64(insns); in bpf_prog_load() 297 attr.func_info = ptr_to_u64(func_info); in bpf_prog_load() 303 attr.line_info = ptr_to_u64(line_info); in bpf_prog_load() 306 attr.fd_array = ptr_to_u64(OPTS_GET(opts, fd_array, NULL)); in bpf_prog_load() 309 attr.log_buf = ptr_to_u64(log_buf); in bpf_prog_load() 336 attr.func_info = ptr_to_u64(finfo); in bpf_prog_load() [all …]
|
/linux-6.6.21/tools/testing/selftests/pidfd/ |
D | pidfd_wait.c | 22 #define ptr_to_u64(ptr) ((__u64)((uintptr_t)(ptr))) macro 45 .parent_tid = ptr_to_u64(&parent_tid), in TEST() 46 .pidfd = ptr_to_u64(&pidfd), in TEST() 93 .parent_tid = ptr_to_u64(&parent_tid), in TEST() 94 .pidfd = ptr_to_u64(&pidfd), in TEST() 155 .parent_tid = ptr_to_u64(&parent_tid), in TEST()
|
D | pidfd_setns_test.c | 80 .pidfd = ptr_to_u64(pidfd), in create_child()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_obj_id.c | 109 prog_infos[i].jited_prog_insns = ptr_to_u64(jited_insns); in serial_test_bpf_obj_id() 111 prog_infos[i].xlated_prog_insns = ptr_to_u64(xlated_insns); in serial_test_bpf_obj_id() 113 prog_infos[i].map_ids = ptr_to_u64(map_ids + i); in serial_test_bpf_obj_id() 162 link_infos[i].raw_tracepoint.tp_name = ptr_to_u64(&tp_name); in serial_test_bpf_obj_id() 169 link_infos[i].raw_tracepoint.tp_name != ptr_to_u64(&tp_name) || in serial_test_bpf_obj_id()
|
D | fill_link_info.c | 66 info.perf_event.kprobe.func_name = ptr_to_u64(&buf); in verify_perf_link_info() 78 info.perf_event.tracepoint.tp_name = ptr_to_u64(&buf); in verify_perf_link_info() 93 info.perf_event.uprobe.file_name = ptr_to_u64(&buf); in verify_perf_link_info() 220 info.kprobe_multi.addrs = ptr_to_u64(addrs); in verify_kmulti_link_info() 241 info.kprobe_multi.addrs = ptr_to_u64(addrs); in verify_kmulti_invalid_user_buffer()
|
D | obj_name.c | 35 attr.insns = ptr_to_u64(prog); in test_obj_name() 36 attr.license = ptr_to_u64(""); in test_obj_name()
|
D | module_fentry_shadow.c | 36 info.name = ptr_to_u64(name); in get_bpf_testmod_btf_fd()
|
D | metadata.c | 44 prog_info.map_ids = ptr_to_u64(map_ids); in prog_holds_map()
|
D | btf.c | 4490 info->btf = ptr_to_u64(user_btf); in test_big_btf_info() 4558 info[i].btf = ptr_to_u64(user_btf[i]); in test_btf_id() 4700 info.btf = ptr_to_u64(user_btf); in do_test_get_info() 4851 info.func_info = ptr_to_u64(func_info); in do_test_file() 6501 info.func_info = ptr_to_u64(func_info); in test_get_finfo() 6617 info.line_info = ptr_to_u64(linfo); in test_get_linfo() 6633 info.jited_line_info = ptr_to_u64(jited_linfo); in test_get_linfo() 6635 info.jited_ksyms = ptr_to_u64(jited_ksyms); in test_get_linfo() 6637 info.jited_func_lens = ptr_to_u64(jited_func_lens); in test_get_linfo() 6802 attr.insns = ptr_to_u64(test->insns); in do_test_info_raw() [all …]
|
/linux-6.6.21/tools/perf/util/ |
D | bpf-utils.c | 181 ptr_to_u64(ptr)); in get_bpf_prog_info_linear() 236 offs = addr - ptr_to_u64(info_linear->data); in bpil_addr_to_offs() 256 addr = offs + ptr_to_u64(info_linear->data); in bpil_offs_to_addr()
|
D | bpf-utils.h | 6 #define ptr_to_u64(ptr) ((__u64)(unsigned long)(ptr)) macro
|
/linux-6.6.21/tools/bpf/bpftool/ |
D | link.c | 853 info.raw_tracepoint.tp_name = ptr_to_u64(&buf); in do_show_link() 859 info.iter.target_name = ptr_to_u64(&buf); in do_show_link() 873 info.kprobe_multi.addrs = ptr_to_u64(addrs); in do_show_link() 881 info.perf_event.tracepoint.tp_name = ptr_to_u64(&buf); in do_show_link() 889 info.perf_event.kprobe.func_name = ptr_to_u64(&buf); in do_show_link() 897 info.perf_event.uprobe.file_name = ptr_to_u64(&buf); in do_show_link()
|
D | prog.c | 133 holder.jited_prog_insns = ptr_to_u64(ptr); in prep_prog_info() 136 holder.xlated_prog_insns = ptr_to_u64(ptr); in prep_prog_info() 140 holder.jited_ksyms = ptr_to_u64(ptr); in prep_prog_info() 143 holder.jited_func_lens = ptr_to_u64(ptr); in prep_prog_info() 146 holder.func_info = ptr_to_u64(ptr); in prep_prog_info() 149 holder.line_info = ptr_to_u64(ptr); in prep_prog_info() 152 holder.jited_line_info = ptr_to_u64(ptr); in prep_prog_info() 199 info.map_ids = ptr_to_u64(map_ids); in show_prog_maps() 248 prog_info.map_ids = ptr_to_u64(map_ids); in find_metadata() 2220 info.func_info = ptr_to_u64(&func_info); in profile_target_name()
|
D | common.c | 111 attr.insns = ptr_to_u64(insns); in known_to_need_rlimit() 113 attr.license = ptr_to_u64("GPL"); in known_to_need_rlimit() 357 info.func_info = ptr_to_u64(&finfo); in get_prog_full_name()
|
D | main.h | 24 static inline __u64 ptr_to_u64(const void *ptr) in ptr_to_u64() function
|
D | btf.c | 538 btf_info.name = ptr_to_u64(btf_name); in btf_is_kernel_module() 946 info.name = ptr_to_u64(name); in show_btf()
|
D | cgroup.c | 78 btf_info.name = ptr_to_u64(name); in guess_vmlinux_btf_id()
|
D | btf_dumper.c | 71 info.func_info = ptr_to_u64(&finfo); in dump_prog_id_as_func_ptr()
|
/linux-6.6.21/tools/testing/selftests/clone3/ |
D | clone3_selftests.h | 16 #define ptr_to_u64(ptr) ((__u64)((uintptr_t)(ptr))) macro
|
D | clone3_cap_checkpoint_restore.c | 49 .set_tid = ptr_to_u64(set_tid), in call_clone3_set_tid()
|
D | clone3_set_tid.c | 52 .set_tid = ptr_to_u64(set_tid), in call_clone3_set_tid()
|
/linux-6.6.21/samples/bpf/ |
D | task_fd_query_user.c | 41 static __u64 ptr_to_u64(void *ptr) in ptr_to_u64() function 146 attr.config1 = ptr_to_u64((void *)name); in test_nondebug_fs_kuprobe_common()
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | test_progs.h | 395 static inline __u64 ptr_to_u64(const void *ptr) in ptr_to_u64() function
|
D | test_verifier.c | 890 static __u64 ptr_to_u64(const void *ptr) in ptr_to_u64() function 928 info.name = ptr_to_u64(name); in btf__load_testmod_btf()
|
/linux-6.6.21/drivers/media/platform/allegro-dvt/ |
D | allegro-core.c | 414 static inline u64 ptr_to_u64(const void *ptr) in ptr_to_u64() function 1930 return ptr_to_u64(buffer); in allegro_put_buffer() 1942 if (handle == ptr_to_u64(&shadow->buf.vb)) { in allegro_get_buffer()
|