Displaying 2 results from an estimated 2 matches for "kcov_remote_handle".
2019 Oct 23
0
[PATCH 3/3] vhost, kcov: collect coverage from vhost_worker
...;
> > > + dev->kcov_handle = current->kcov_handle;
> >
> > kcov_handle is not present in task_struct if !CONFIG_KCOV
> >
> > Also this does not use KCOV_SUBSYSTEM_COMMON.
> > We discussed something along the following lines:
> >
> > u64 kcov_remote_handle(u64 subsys, u64 id)
> > {
> > WARN_ON(subsys or id has wrong bits set).
>
> Hm, we can't have warnings in kcov_remote_handle() that is exposed in
> uapi headers. What we can do is return 0 (invalid handle) if subsys/id
> have incorrect bits set. And then we can either...
2019 Oct 23
0
[PATCH 3/3] vhost, kcov: collect coverage from vhost_worker
.../* No owner, become one */
> dev->mm = get_task_mm(current);
> + dev->kcov_handle = current->kcov_handle;
kcov_handle is not present in task_struct if !CONFIG_KCOV
Also this does not use KCOV_SUBSYSTEM_COMMON.
We discussed something along the following lines:
u64 kcov_remote_handle(u64 subsys, u64 id)
{
WARN_ON(subsys or id has wrong bits set).
return ...;
}
kcov_remote_handle(KCOV_SUBSYSTEM_USB, bus);
kcov_remote_handle(KCOV_SUBSYSTEM_COMMON, current->kcov_handle);
> worker = kthread_create(vhost_worker, dev, "vhost-%d", current->pid);
>...