search for: kcov_subsystem_usb

Displaying 2 results from an estimated 2 matches for "kcov_subsystem_usb".

2019 Oct 23
0
[PATCH 3/3] vhost, kcov: collect coverage from vhost_worker
...->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); > if (IS_ERR(worker)) { > err = PTR_ERR(worker); > @@ -571,6 +575,7 @@ long vhost_dev_set_own...
2019 Oct 23
0
[PATCH 3/3] vhost, kcov: collect coverage from vhost_worker
...er function and will catch a wrong ID if caller generated it by some other means. And then ioctls should also detect bad handles passed in and return EINVAL. Then we will cover errors for both kernel and user programs. > > > 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); > > > if (IS_ERR(worker)) { > > > err = PTR_ER...