lkml.org 
[lkml]   [2018]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 3/3] sched/core / kcov: avoid kcov_area during task switch
From
Date
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
>

\
 
 \ /
  Last update: 2018-05-04 16:31    [W:0.051 / U:7.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site