Re: [PATCH V4 8/9] jump_label: Batch updates if arch supports it

2019-02-14 Thread Borislav Petkov
On Mon, Feb 04, 2019 at 08:59:01PM +0100, Daniel Bristot de Oliveira wrote: > If the architecture supports the batching of jump label updates, use it! > > An easy way to see the benefits of this patch is switching the > schedstats on and off. For instance: > > -- %< --

Re: [PATCH V4 8/9] jump_label: Batch updates if arch supports it

2019-02-06 Thread Daniel Bristot de Oliveira
On 2/6/19 7:34 AM, Masami Hiramatsu wrote: > On Mon, 4 Feb 2019 20:59:01 +0100 > Daniel Bristot de Oliveira wrote: > >> --- a/kernel/jump_label.c >> +++ b/kernel/jump_label.c >> @@ -407,6 +407,7 @@ bool jump_label_can_update_check(struct jump_entry >> *entry, bool init) >> return 0; >> }

Re: [PATCH V4 8/9] jump_label: Batch updates if arch supports it

2019-02-05 Thread Masami Hiramatsu
On Mon, 4 Feb 2019 20:59:01 +0100 Daniel Bristot de Oliveira wrote: > --- a/kernel/jump_label.c > +++ b/kernel/jump_label.c > @@ -407,6 +407,7 @@ bool jump_label_can_update_check(struct jump_entry > *entry, bool init) > return 0; > } > > +#ifndef HAVE_JUMP_LABEL_BATCH > static void __

[PATCH V4 8/9] jump_label: Batch updates if arch supports it

2019-02-04 Thread Daniel Bristot de Oliveira
If the architecture supports the batching of jump label updates, use it! An easy way to see the benefits of this patch is switching the schedstats on and off. For instance: -- %< #!/bin/bash while [ true ]; do sysctl -w kernel.sched_scheds