Lines Matching refs:remote_arg
580 struct kcov_remote_arg *remote_arg; in kcov_ioctl_locked() local
625 remote_arg = (struct kcov_remote_arg *)arg; in kcov_ioctl_locked()
626 mode = kcov_get_mode(remote_arg->trace_mode); in kcov_ioctl_locked()
629 if (remote_arg->area_size > LONG_MAX / sizeof(unsigned long)) in kcov_ioctl_locked()
635 kcov->remote_size = remote_arg->area_size; in kcov_ioctl_locked()
637 for (i = 0; i < remote_arg->num_handles; i++) { in kcov_ioctl_locked()
638 if (!kcov_check_handle(remote_arg->handles[i], in kcov_ioctl_locked()
645 remote = kcov_remote_add(kcov, remote_arg->handles[i]); in kcov_ioctl_locked()
653 if (remote_arg->common_handle) { in kcov_ioctl_locked()
654 if (!kcov_check_handle(remote_arg->common_handle, in kcov_ioctl_locked()
662 remote_arg->common_handle); in kcov_ioctl_locked()
669 t->kcov_handle = remote_arg->common_handle; in kcov_ioctl_locked()
684 struct kcov_remote_arg *remote_arg = NULL; in kcov_ioctl() local
723 remote_arg_size = struct_size(remote_arg, handles, in kcov_ioctl()
725 remote_arg = memdup_user((void __user *)arg, remote_arg_size); in kcov_ioctl()
726 if (IS_ERR(remote_arg)) in kcov_ioctl()
727 return PTR_ERR(remote_arg); in kcov_ioctl()
728 if (remote_arg->num_handles != remote_num_handles) { in kcov_ioctl()
729 kfree(remote_arg); in kcov_ioctl()
732 arg = (unsigned long)remote_arg; in kcov_ioctl()
742 kfree(remote_arg); in kcov_ioctl()