Re: [PATCH 3/3] sched/core / kcov: avoid kcov_area during task switch

From: Andrey Ryabinin
Date: Fri May 04 2018 - 10:31:29 EST


On 05/04/2018 04:55 PM, Mark Rutland wrote:

> +#define kcov_prepare_switch(t) \
> +do { \
> + (t)->kcov_mode |= KCOV_IN_CTXSW; \
> +} while (0)
> +
> +#define kcov_finish_switch(t) \
> +do { \
> + (t)->kcov_mode &= ~KCOV_IN_CTXSW; \
> +} while (0)
> +

Why macros?

> #else
>