search for: kcov_remote_add

Displaying 3 results from an estimated 3 matches for "kcov_remote_add".

2019 Oct 23
0
[PATCH v2 1/3] kcov: remote coverage support
...ill collect coverage for each code section that is annotated > to use the common handle obtained as kcov_handle from the current > task_struct. However non common handles allow to collect coverage > selectively from different subsystems. > > ... > > +static struct kcov_remote *kcov_remote_add(struct kcov *kcov, u64 handle) > +{ > + struct kcov_remote *remote; > + > + if (kcov_remote_find(handle)) > + return ERR_PTR(-EEXIST); > + remote = kmalloc(sizeof(*remote), GFP_ATOMIC); > + if (!remote) > + return ERR_PTR(-ENOMEM); > + remote->handle = handle; > +...
2019 Oct 24
0
[PATCH v2 1/3] kcov: remote coverage support
On Wed, Oct 23, 2019 at 5:24 PM Andrey Konovalov <andreyknvl at google.com> wrote: > > This patch adds background thread coverage collection ability to kcov. ... > +static struct kcov_remote *kcov_remote_add(struct kcov *kcov, u64 handle) > +{ > + struct kcov_remote *remote; > + > + if (kcov_remote_find(handle)) > + return ERR_PTR(-EEXIST); > + remote = kmalloc(sizeof(*remote), GFP_ATOMIC); > + if (!remote) > + return ERR_PTR(-...
2019 Oct 21
0
[PATCH RFC 1/3] kcov: remote coverage support
...struct kcov_remote *remote; > + > + hash_for_each_possible(kcov_remote_map, remote, hnode, handle) { > + if (remote->handle == handle) > + return remote; > + } > + return NULL; > +} > + > +static struct kcov_remote *kcov_remote_add(struct kcov *kcov, u64 handle) > +{ > + struct kcov_remote *remote; > + > + if (kcov_remote_find(handle)) > + return ERR_PTR(-EEXIST); > + remote = kmalloc(sizeof(*remote), GFP_ATOMIC); > + if (!remote) > + return ERR_PTR(-...