Lines Matching refs:cookies

2523 	u64 *cookies;  member
2612 kvfree(kmulti_link->cookies); in bpf_kprobe_multi_link_dealloc()
2620 u64 __user *ucookies = u64_to_user_ptr(info->kprobe_multi.cookies); in bpf_kprobe_multi_link_fill_link_info()
2644 if (kmulti_link->cookies) { in bpf_kprobe_multi_link_fill_link_info()
2645 if (copy_to_user(ucookies, kmulti_link->cookies, ucount * sizeof(u64))) in bpf_kprobe_multi_link_fill_link_info()
2679 cookie_a = link->cookies + (addr_a - link->addrs); in bpf_kprobe_multi_cookie_swap()
2680 cookie_b = link->cookies + (addr_b - link->addrs); in bpf_kprobe_multi_cookie_swap()
2713 if (!link->cookies) in bpf_kprobe_multi_cookie()
2720 cookie = link->cookies + (addr - link->addrs); in bpf_kprobe_multi_cookie()
2802 u64 *cookies; member
2813 if (data->cookies) { in symbols_swap_r()
2816 cookie_a = data->cookies + (name_a - data->funcs); in symbols_swap_r()
2817 cookie_b = data->cookies + (name_b - data->funcs); in symbols_swap_r()
2914 u64 *cookies = NULL; in bpf_kprobe_multi_link_attach() local
2945 ucookies = u64_to_user_ptr(attr->link_create.kprobe_multi.cookies); in bpf_kprobe_multi_link_attach()
2947 cookies = kvmalloc_array(cnt, sizeof(*addrs), GFP_KERNEL); in bpf_kprobe_multi_link_attach()
2948 if (!cookies) { in bpf_kprobe_multi_link_attach()
2952 if (copy_from_user(cookies, ucookies, size)) { in bpf_kprobe_multi_link_attach()
2965 .cookies = cookies, in bpf_kprobe_multi_link_attach()
2973 if (cookies) in bpf_kprobe_multi_link_attach()
3011 link->cookies = cookies; in bpf_kprobe_multi_link_attach()
3015 if (cookies) { in bpf_kprobe_multi_link_attach()
3047 kvfree(cookies); in bpf_kprobe_multi_link_attach()
3127 u64 __user *ucookies = u64_to_user_ptr(info->uprobe_multi.cookies); in bpf_uprobe_multi_link_fill_link_info()
3318 ucookies = u64_to_user_ptr(attr->link_create.uprobe_multi.cookies); in bpf_uprobe_multi_link_attach()