search for: kcov_debug

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

Did you mean: cog_debug
2019 Oct 21
0
[PATCH RFC 1/3] kcov: remote coverage support
...gt; #include <linux/fs.h> > +#include <linux/hashtable.h> > #include <linux/init.h> > #include <linux/mm.h> > #include <linux/preempt.h> > @@ -23,6 +24,8 @@ > #include <linux/refcount.h> > #include <asm/setup.h> > > +#define kcov_debug(fmt, ...) pr_debug("%s: " fmt, __func__, ##__VA_ARGS__) > + > /* Number of 64-bit words written per one comparison: */ > #define KCOV_WORDS_PER_CMP 4 > > @@ -44,19 +47,94 @@ struct kcov { > * Reference counter. We keep one for: > * - opened file d...
2019 Oct 24
0
[PATCH v2 1/3] kcov: remote coverage support
..._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("t = %px, kcov->t = %px\n", t, kcov->t); > + /* > + * If !kcov->remote, this checks that t->kcov->t == t. > + * If kcov->remote == true then the exiting task is either: > + * 1. a remote task between kcov_remote_start() and kcov_rem...
2019 Oct 23
0
[PATCH v2 1/3] kcov: remote coverage support
...> + remote->handle = handle; > + remote->kcov = kcov; > + hash_add(kcov_remote_map, &remote->hnode, handle); > + return remote; > +} > + > > ... > > + spin_lock(&kcov_remote_lock); > + for (i = 0; i < remote_arg->num_handles; i++) { > + kcov_debug("handle %llx\n", remote_arg->handles[i]); > + if (!kcov_check_handle(remote_arg->handles[i], > + false, true, false)) { > + spin_unlock(&kcov_remote_lock); > + kcov_disable(t, kcov); > + return -EINVAL; > + } > + remote = kcov_remote_add(...