search for: kcov_ioctl

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

2019 Oct 23
0
[PATCH 0/3] kcov: collect coverage from usb and vhost
...h easier to review with side-by-side diffs, context and smart in-line colouring! > Changes from RFC v1: > - Remove unnecessary #ifdef's from drivers/vhost/vhost.c. > - Reset t->kcov when area allocation fails in kcov_remote_start(). > - Use struct_size to calculate array size in kcov_ioctl(). > - Add a limit on area_size in kcov_remote_arg. > - Added kcov_disable() helper. > - Changed encoding of kcov remote handle ids, see the documentation. > - Added a comment reference for kcov_sequence task_struct field. > - Change common_handle type to u32. > - Add checks for h...
2019 Oct 21
0
[PATCH RFC 1/3] kcov: remote coverage support
...check_kcov_mode(enum kcov_mode needed_mode, struct task_stru > * in_interrupt() returns false (e.g. preempt_schedule_irq()). > * READ_ONCE()/barrier() effectively provides load-acquire wrt > * interrupts, there are paired barrier()/WRITE_ONCE() in > - * kcov_ioctl_locked(). > + * kcov_start(). > */ > barrier(); > return mode == needed_mode; > @@ -227,6 +305,69 @@ void notrace __sanitizer_cov_trace_switch(u64 val, u64 *cases) > EXPORT_SYMBOL(__sanitizer_cov_trace_switch); > #endif /* ifdef CONFIG_KCOV_ENA...