search for: kcov_task_exit

Displaying 4 results from an estimated 4 matches for "kcov_task_exit".

2019 Oct 21
0
[PATCH RFC 1/3] kcov: remote coverage support
...return 0; > + } > diff --git a/include/linux/kcov.h b/include/linux/kcov.h > index b76a1807028d..702672d98d35 100644 > --- a/include/linux/kcov.h > +++ b/include/linux/kcov.h > @@ -27,6 +27,13 @@ enum kcov_mode { > void kcov_task_init(struct task_struct *t); > void kcov_task_exit(struct task_struct *t); > > +/* > + * Reserved handle ranges: > + * 0000000000000000 - 0000ffffffffffff : common handles > + */ It can make sense to make this scheme slightly more generic and officially reserve high bits for "subsystem id" and low bits for "id within...
2019 Oct 24
0
[PATCH v2 1/3] kcov: remote coverage support
...remote->kcov = kcov; > + hash_add(kcov_remote_map, &remote->hnode, handle); I think it will make sense to check that there is no existing kcov with the same handle registered. Such condition will be extremely hard to debug based on episodically missing coverage. ... > void kcov_task_exit(struct task_struct *t) > { > struct kcov *kcov; > @@ -256,15 +401,23 @@ void kcov_task_exit(struct task_struct *t) > kcov = t->kcov; > if (kcov == NULL) > return; > + > spin_lock(&kcov->lock); > + kcov_debug...
2019 Oct 17
0
[PATCH RFC 2/3] usb, kcov: collect coverage from hub_event
...> + kcov_remote_stop(); > } > > static const struct usb_device_id hub_id_table[] = { > diff --git a/include/linux/kcov.h b/include/linux/kcov.h > index 702672d98d35..38a47e0b67c2 100644 > --- a/include/linux/kcov.h > +++ b/include/linux/kcov.h > @@ -30,6 +30,7 @@ void kcov_task_exit(struct task_struct *t); > /* > * Reserved handle ranges: > * 0000000000000000 - 0000ffffffffffff : common handles > + * 0001000000000000 - 0001ffffffffffff : USB subsystem handles So how many bits are you going to have for any in-kernel tasks? Aren't you going to run out quic...
2019 Oct 17
0
[PATCH RFC 2/3] usb, kcov: collect coverage from hub_event
...atic const struct usb_device_id hub_id_table[] = { > > > diff --git a/include/linux/kcov.h b/include/linux/kcov.h > > > index 702672d98d35..38a47e0b67c2 100644 > > > --- a/include/linux/kcov.h > > > +++ b/include/linux/kcov.h > > > @@ -30,6 +30,7 @@ void kcov_task_exit(struct task_struct *t); > > > /* > > > * Reserved handle ranges: > > > * 0000000000000000 - 0000ffffffffffff : common handles > > > + * 0001000000000000 - 0001ffffffffffff : USB subsystem handles > > > > So how many bits are you going to have for...