Home
last modified time | relevance | path

Searched refs:ptr_to_u64 (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.6.21/tools/lib/bpf/
Dbpf.c67 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/
Dpidfd_wait.c22 #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()
Dpidfd_setns_test.c80 .pidfd = ptr_to_u64(pidfd), in create_child()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dbpf_obj_id.c109 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()
Dfill_link_info.c66 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()
Dobj_name.c35 attr.insns = ptr_to_u64(prog); in test_obj_name()
36 attr.license = ptr_to_u64(""); in test_obj_name()
Dmodule_fentry_shadow.c36 info.name = ptr_to_u64(name); in get_bpf_testmod_btf_fd()
Dmetadata.c44 prog_info.map_ids = ptr_to_u64(map_ids); in prog_holds_map()
Dbtf.c4490 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/
Dbpf-utils.c181 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()
Dbpf-utils.h6 #define ptr_to_u64(ptr) ((__u64)(unsigned long)(ptr)) macro
/linux-6.6.21/tools/bpf/bpftool/
Dlink.c853 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()
Dprog.c133 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()
Dcommon.c111 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()
Dmain.h24 static inline __u64 ptr_to_u64(const void *ptr) in ptr_to_u64() function
Dbtf.c538 btf_info.name = ptr_to_u64(btf_name); in btf_is_kernel_module()
946 info.name = ptr_to_u64(name); in show_btf()
Dcgroup.c78 btf_info.name = ptr_to_u64(name); in guess_vmlinux_btf_id()
Dbtf_dumper.c71 info.func_info = ptr_to_u64(&finfo); in dump_prog_id_as_func_ptr()
/linux-6.6.21/tools/testing/selftests/clone3/
Dclone3_selftests.h16 #define ptr_to_u64(ptr) ((__u64)((uintptr_t)(ptr))) macro
Dclone3_cap_checkpoint_restore.c49 .set_tid = ptr_to_u64(set_tid), in call_clone3_set_tid()
Dclone3_set_tid.c52 .set_tid = ptr_to_u64(set_tid), in call_clone3_set_tid()
/linux-6.6.21/samples/bpf/
Dtask_fd_query_user.c41 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/
Dtest_progs.h395 static inline __u64 ptr_to_u64(const void *ptr) in ptr_to_u64() function
Dtest_verifier.c890 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/
Dallegro-core.c414 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()

12