[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9dbd4703-5d79-0f3c-306c-5d50a757c11b@virtuozzo.com>
Date: Fri, 4 May 2018 17:32:26 +0300
From: Andrey Ryabinin <aryabinin@...tuozzo.com>
To: Mark Rutland <mark.rutland@....com>, linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org, dvyukov@...gle.com, mingo@...hat.com,
peterz@...radead.org
Subject: Re: [PATCH 3/3] sched/core / kcov: avoid kcov_area during task switch
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
>
Powered by blists - more mailing lists