lkml.org 
[lkml]   [2019]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/10] ftrace: Add register_ftrace_direct()

> @@ -1757,6 +1761,18 @@ static bool __ftrace_hash_rec_update(struct ftrace_ops *ops,
> return false;
> rec->flags--;
>
> + if (ops->flags & FTRACE_OPS_FL_DIRECT)
> + rec->flags &= ~FTRACE_FL_DIRECT;
> +
> + /*
> + * Only the internal direct_ops should have the
> + * DIRECT flag set. Thus, if it is removing a
> + * function, then that function should no longer
> + * be direct.
> + */
> + if (ops->flags & FTRACE_OPS_FL_DIRECT)
> + rec->flags &= ~FTRACE_FL_DIRECT;
> +

The flag is dropped twice here.

Miroslav

\
 
 \ /
  Last update: 2019-11-13 15:14    [W:0.256 / U:55.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site